fix to allow usb modules to compile
[linux-2.4.21-pre4.git] / arch / ppc / platforms / pal4.h
1 /*
2  * arch/ppc/platforms/pal4.h
3  * 
4  * Definitions for SBS Palomar IV board
5  *
6  * Author: Dan Cox
7  *
8  * Copyright 2002 MontaVista Software Inc.
9  *
10  * This program is free software; you can redistribute  it and/or modify it
11  * under  the terms of  the GNU General Public License as published by the
12  * Free Software Foundation;  either version 2 of the  License, or (at your
13  * option) any later version.
14  */
15
16 #ifndef __PPC_PLATFORMS_PAL4_H
17 #define __PPC_PLATFORMS_PAL4_H
18
19 #include <asm/io.h>
20
21 #define CPC700_MEM_CFGADDR    0xff500008
22 #define CPC700_MEM_CFGDATA    0xff50000c
23
24 #define CPC700_MB0SA            0x38
25 #define CPC700_MB0EA            0x58
26 #define CPC700_MB1SA            0x3c
27 #define CPC700_MB1EA            0x5c
28 #define CPC700_MB2SA            0x40
29 #define CPC700_MB2EA            0x60
30 #define CPC700_MB3SA            0x44
31 #define CPC700_MB3EA            0x64
32 #define CPC700_MB4SA            0x48
33 #define CPC700_MB4EA            0x68
34
35 extern inline long
36 cpc700_read_memreg(int reg)
37 {
38         out_be32((volatile unsigned int *) CPC700_MEM_CFGADDR, reg);
39         return in_be32((volatile unsigned int *) CPC700_MEM_CFGDATA);
40 }
41
42
43 #define PAL4_NVRAM             0xfffc0000
44 #define PAL4_NVRAM_SIZE        0x8000
45
46 #define PAL4_DRAM              0xfff80000
47 #define  PAL4_DRAM_BR_MASK     0xc0
48 #define  PAL4_DRAM_BR_SHIFT    6
49 #define  PAL4_DRAM_RESET       0x10
50 #define  PAL4_DRAM_EREADY      0x40
51
52 #define PAL4_MISC              0xfff80004
53 #define  PAL4_MISC_FB_MASK     0xc0
54 #define  PAL4_MISC_FLASH       0x40  /* StratFlash mapping: 1->0xff80, 0->0xfff0 */
55 #define  PAL4_MISC_MISC        0x08
56 #define  PAL4_MISC_BITF        0x02
57 #define  PAL4_MISC_NVKS        0x01
58
59 #define PAL4_L2                0xfff80008
60 #define  PAL4_L2_MASK          0x07
61
62 #define PAL4_PLDR              0xfff8000c
63
64 /* Only two Ethernet devices on the board... */
65 #define PAL4_ETH               31
66 #define PAL4_INTA              20
67
68 #endif /* __PPC_PLATFORMS_PAL4_H */