1 /* 2 * arch/ppc/platforms/pal4.h 3 * 4 * Definitions for SBS Palomar IV board 5 * 6 * Author: Dan Cox 7 * 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 11 * or implied. 12 */ 13 14 #ifndef __PPC_PLATFORMS_PAL4_H 15 #define __PPC_PLATFORMS_PAL4_H 16 17 #include <asm/io.h> 18 19 #define CPC700_MEM_CFGADDR 0xff500008 20 #define CPC700_MEM_CFGDATA 0xff50000c 21 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 32 33 extern inline long cpc700_read_memreg(int reg)34cpc700_read_memreg(int reg) 35 { 36 out_be32((volatile unsigned int *) CPC700_MEM_CFGADDR, reg); 37 return in_be32((volatile unsigned int *) CPC700_MEM_CFGDATA); 38 } 39 40 41 #define PAL4_NVRAM 0xfffc0000 42 #define PAL4_NVRAM_SIZE 0x8000 43 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 49 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 56 57 #define PAL4_L2 0xfff80008 58 #define PAL4_L2_MASK 0x07 59 60 #define PAL4_PLDR 0xfff8000c 61 62 /* Only two Ethernet devices on the board... */ 63 #define PAL4_ETH 31 64 #define PAL4_INTA 20 65 66 #endif /* __PPC_PLATFORMS_PAL4_H */ 67