2 * arch/ppc/platforms/pal4.h
4 * Definitions for SBS Palomar IV board
8 * 2002 (c) MontaVista, Software, Inc. This file is licensed under
9 * the terms of the GNU General Public License version 2. This program
10 * is licensed "as is" without any warranty of any kind, whether express
14 #ifndef __PPC_PLATFORMS_PAL4_H
15 #define __PPC_PLATFORMS_PAL4_H
19 #define CPC700_MEM_CFGADDR 0xff500008
20 #define CPC700_MEM_CFGDATA 0xff50000c
22 #define CPC700_MB0SA 0x38
23 #define CPC700_MB0EA 0x58
24 #define CPC700_MB1SA 0x3c
25 #define CPC700_MB1EA 0x5c
26 #define CPC700_MB2SA 0x40
27 #define CPC700_MB2EA 0x60
28 #define CPC700_MB3SA 0x44
29 #define CPC700_MB3EA 0x64
30 #define CPC700_MB4SA 0x48
31 #define CPC700_MB4EA 0x68
34 cpc700_read_memreg(int reg)
36 out_be32((volatile unsigned int *) CPC700_MEM_CFGADDR, reg);
37 return in_be32((volatile unsigned int *) CPC700_MEM_CFGDATA);
41 #define PAL4_NVRAM 0xfffc0000
42 #define PAL4_NVRAM_SIZE 0x8000
44 #define PAL4_DRAM 0xfff80000
45 #define PAL4_DRAM_BR_MASK 0xc0
46 #define PAL4_DRAM_BR_SHIFT 6
47 #define PAL4_DRAM_RESET 0x10
48 #define PAL4_DRAM_EREADY 0x40
50 #define PAL4_MISC 0xfff80004
51 #define PAL4_MISC_FB_MASK 0xc0
52 #define PAL4_MISC_FLASH 0x40 /* StratFlash mapping: 1->0xff80, 0->0xfff0 */
53 #define PAL4_MISC_MISC 0x08
54 #define PAL4_MISC_BITF 0x02
55 #define PAL4_MISC_NVKS 0x01
57 #define PAL4_L2 0xfff80008
58 #define PAL4_L2_MASK 0x07
60 #define PAL4_PLDR 0xfff8000c
62 /* Only two Ethernet devices on the board... */
66 #endif /* __PPC_PLATFORMS_PAL4_H */