RT-AC66 3.0.0.4.374.130 core
[tomato.git] / release / src-rt-6.x / linux / linux-2.6 / arch / ppc / platforms / 4xx / ep405.h
blob9814fc431725545204de79e567f0fa70e7330ec8
1 /*
2 * Embedded Planet 405GP board
3 * http://www.embeddedplanet.com
5 * Author: Matthew Locke <mlocke@mvista.com>
7 * 2000 (c) MontaVista, Software, Inc. This file is licensed under
8 * the terms of the GNU General Public License version 2. This program
9 * is licensed "as is" without any warranty of any kind, whether express
10 * or implied.
13 #ifdef __KERNEL__
14 #ifndef __ASM_EP405_H__
15 #define __ASM_EP405_H__
17 /* We have a 405GP core */
18 #include <platforms/4xx/ibm405gp.h>
20 #ifndef __ASSEMBLY__
22 #include <linux/types.h>
24 typedef struct board_info {
25 unsigned int bi_memsize; /* DRAM installed, in bytes */
26 unsigned char bi_enetaddr[6]; /* Local Ethernet MAC address */
27 unsigned int bi_intfreq; /* Processor speed, in Hz */
28 unsigned int bi_busfreq; /* PLB Bus speed, in Hz */
29 unsigned int bi_pci_busfreq; /* PCI Bus speed, in Hz */
30 unsigned int bi_nvramsize; /* Size of the NVRAM/RTC */
31 } bd_t;
33 /* Some 4xx parts use a different timebase frequency from the internal clock.
35 #define bi_tbfreq bi_intfreq
37 extern u8 *ep405_bcsr;
38 extern u8 *ep405_nvram;
40 /* Map for the BCSR and NVRAM space */
41 #define EP405_BCSR_PADDR ((uint)0xf4000000)
42 #define EP405_BCSR_SIZE ((uint)16)
43 #define EP405_NVRAM_PADDR ((uint)0xf4200000)
45 /* serial defines */
46 #define BASE_BAUD 399193
48 #define PPC4xx_MACHINE_NAME "Embedded Planet 405GP"
50 #endif /* !__ASSEMBLY__ */
51 #endif /* __ASM_EP405_H__ */
52 #endif /* __KERNEL__ */