Merge with Linux 2.5.59.
[linux-2.6/linux-mips.git] / arch / ppc / platforms / 4xx / cedar.h
blobe0289a3241b0b7880a6e6ea4efcec3e75d65a521
1 /*
2 * arch/ppc/platforms/4xx/cedar.h
4 * Macros, definitions, and data structures specific to the IBM PowerPC
5 * Cedar eval board.
7 * Author: Armin Kuster <akuster@mvista.com>
9 * 2000 (c) MontaVista, Software, Inc. This file is licensed under
10 * the terms of the GNU General Public License version 2.1. This program
11 * is licensed "as is" without any warranty of any kind, whether express
12 * or implied.
15 #ifdef __KERNEL__
16 #ifndef __ASM_CEDAR_H__
17 #define __ASM_CEDAR_H__
18 #include <platforms/4xx/ibmnp405l.h>
20 #ifndef __ASSEMBLY__
22 * Data structure defining board information maintained by the boot
23 * ROM on IBM's "Cedar" evaluation board. An effort has been made to
24 * keep the field names consistent with the 8xx 'bd_t' board info
25 * structures.
28 typedef struct board_info {
29 unsigned char bi_s_version[4]; /* Version of this structure */
30 unsigned char bi_r_version[30]; /* Version of the IBM ROM */
31 unsigned int bi_memsize; /* DRAM installed, in bytes */
32 unsigned char bi_enetaddr[2][6]; /* Local Ethernet MAC address */
33 unsigned char bi_pci_mac[6];
34 unsigned int bi_intfreq; /* Processor speed, in Hz */
35 unsigned int bi_busfreq; /* PLB Bus speed, in Hz */
36 unsigned int bi_pci_busfreq; /* PCI speed in Hz */
37 } bd_t;
39 /* Some 4xx parts use a different timebase frequency from the internal clock.
41 #define bi_tbfreq bi_intfreq
43 /* Memory map for the IBM "Cedar" NP405 evaluation board.
46 extern void *cedar_rtc_base;
47 #define CEDAR_RTC_PADDR ((uint)0xf0000000)
48 #define CEDAR_RTC_VADDR CEDAR_RTC_PADDR
49 #define CEDAR_RTC_SIZE ((uint)8*1024)
52 /* Early initialization address mapping for block_io.
53 * Standard 405GP map.
55 #define PPC4xx_ONB_IO_PADDR ((uint)0xef600000)
56 #define PPC4xx_ONB_IO_VADDR PPC4xx_ONB_IO_PADDR
57 #define PPC4xx_ONB_IO_SIZE ((uint)4*1024)
60 #ifdef CONFIG_PPC405GP_INTERNAL_CLOCK
61 #define BASE_BAUD 201600
62 #else
63 #define BASE_BAUD 691200
64 #endif
66 #define PPC4xx_MACHINE_NAME "IBM NP405L Cedar"
71 #endif /* !__ASSEMBLY__ */
72 #endif /* __ASM_CEDAR_H__ */
73 #endif /* __KERNEL__ */