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