cleanup
[linux-2.4.git] / arch / ppc / platforms / ep405.h
1 /*
2  *    Copyright 2000 MontaVista Software Inc.
3  *      http://www.mvista.com
4  *      <mlocke@mvista.com>
5  *
6  *         Embedded Planet 405GP board
7  *         http://www.embeddedplanet.com
8  *
9  * Please read the COPYING file for all license details.
10  */
11
12 #ifdef __KERNEL__
13 #ifndef __ASM_EP405_H__
14 #define __ASM_EP405_H__
15
16 /* We have a 405GP core */
17 #include <platforms/ibm405gp.h>
18
19 #ifndef __ASSEMBLY__
20 typedef struct board_info {
21         unsigned int     bi_memsize;            /* DRAM installed, in bytes */
22         unsigned char    bi_enetaddr[6];        /* Local Ethernet MAC address */
23         unsigned int     bi_intfreq;            /* Processor speed, in Hz */
24         unsigned int     bi_busfreq;            /* PLB Bus speed, in Hz */
25         unsigned int     bi_pci_busfreq;        /* PCI Bus speed, in Hz */
26         unsigned int     bi_nvramsize;          /* Size of the NVRAM/RTC */
27         unsigned int     bi_opb_busfreq;        /* OPB Bus speed, in Hz */
28         int              bi_iic_fast[1];        /* Use fast i2c mode */
29 } bd_t;
30
31 /* Some 4xx parts use a different timebase frequency from the internal clock.
32 */
33 #define bi_tbfreq bi_intfreq
34
35 extern u8 *ep405_bcsr;
36 extern u8 *ep405_nvram;
37
38 /* Map for the BCSR and NVRAM space */
39 #define EP405_BCSR_PADDR        ((uint)0xf4000000)
40 #define EP405_BCSR_SIZE         ((uint)16)
41 #define EP405_NVRAM_PADDR       ((uint)0xf4200000)
42
43 /* serial defines */
44 #define BASE_BAUD               399193
45
46 #define PPC4xx_MACHINE_NAME "Embedded Planet 405GP"
47
48 #endif /* !__ASSEMBLY__ */
49 #endif /* __ASM_EP405_H__ */
50 #endif /* __KERNEL__ */