]> git.karo-electronics.de Git - karo-tx-linux.git/blob - arch/powerpc/platforms/8xx/mpc86xads.h
Merge git://git.linux-nfs.org/pub/linux/nfs-2.6
[karo-tx-linux.git] / arch / powerpc / platforms / 8xx / mpc86xads.h
1 /*
2  * A collection of structures, addresses, and values associated with
3  * the Freescale MPC86xADS board.
4  * Copied from the FADS stuff.
5  *
6  * Author: MontaVista Software, Inc.
7  *         source@mvista.com
8  *
9  * 2005 (c) MontaVista Software, Inc.  This file is licensed under the
10  * terms of the GNU General Public License version 2.  This program is licensed
11  * "as is" without any warranty of any kind, whether express or implied.
12  */
13
14 #ifdef __KERNEL__
15 #ifndef __ASM_MPC86XADS_H__
16 #define __ASM_MPC86XADS_H__
17
18 #include <sysdev/fsl_soc.h>
19
20 /* U-Boot maps BCSR to 0xff080000 */
21 #define BCSR_ADDR               ((uint)0xff080000)
22 #define BCSR_SIZE               ((uint)32)
23 #define BCSR0                   ((uint)(BCSR_ADDR + 0x00))
24 #define BCSR1                   ((uint)(BCSR_ADDR + 0x04))
25 #define BCSR2                   ((uint)(BCSR_ADDR + 0x08))
26 #define BCSR3                   ((uint)(BCSR_ADDR + 0x0c))
27 #define BCSR4                   ((uint)(BCSR_ADDR + 0x10))
28
29 #define CFG_PHYDEV_ADDR         ((uint)0xff0a0000)
30 #define BCSR5                   ((uint)(CFG_PHYDEV_ADDR + 0x300))
31
32 #define MPC8xx_CPM_OFFSET       (0x9c0)
33 #define CPM_MAP_ADDR            (get_immrbase() + MPC8xx_CPM_OFFSET)
34 #define CPM_IRQ_OFFSET          16     // for compability with cpm_uart driver
35
36 #define PCMCIA_MEM_ADDR         ((uint)0xff020000)
37 #define PCMCIA_MEM_SIZE         ((uint)(64 * 1024))
38
39 /* Bits of interest in the BCSRs.
40  */
41 #define BCSR1_ETHEN             ((uint)0x20000000)
42 #define BCSR1_IRDAEN            ((uint)0x10000000)
43 #define BCSR1_RS232EN_1         ((uint)0x01000000)
44 #define BCSR1_PCCEN             ((uint)0x00800000)
45 #define BCSR1_PCCVCC0           ((uint)0x00400000)
46 #define BCSR1_PCCVPP0           ((uint)0x00200000)
47 #define BCSR1_PCCVPP1           ((uint)0x00100000)
48 #define BCSR1_PCCVPP_MASK       (BCSR1_PCCVPP0 | BCSR1_PCCVPP1)
49 #define BCSR1_RS232EN_2         ((uint)0x00040000)
50 #define BCSR1_PCCVCC1           ((uint)0x00010000)
51 #define BCSR1_PCCVCC_MASK       (BCSR1_PCCVCC0 | BCSR1_PCCVCC1)
52
53 #define BCSR4_ETH10_RST         ((uint)0x80000000)      /* 10Base-T PHY reset*/
54 #define BCSR4_USB_LO_SPD        ((uint)0x04000000)
55 #define BCSR4_USB_VCC           ((uint)0x02000000)
56 #define BCSR4_USB_FULL_SPD      ((uint)0x00040000)
57 #define BCSR4_USB_EN            ((uint)0x00020000)
58
59 #define BCSR5_MII2_EN           0x40
60 #define BCSR5_MII2_RST          0x20
61 #define BCSR5_T1_RST            0x10
62 #define BCSR5_ATM155_RST        0x08
63 #define BCSR5_ATM25_RST         0x04
64 #define BCSR5_MII1_EN           0x02
65 #define BCSR5_MII1_RST          0x01
66
67 /* Interrupt level assignments */
68 #define PHY_INTERRUPT   SIU_IRQ7        /* PHY link change interrupt */
69 #define SIU_INT_FEC1    SIU_LEVEL1      /* FEC1 interrupt */
70 #define FEC_INTERRUPT   SIU_INT_FEC1    /* FEC interrupt */
71
72 /* We don't use the 8259 */
73 #define NR_8259_INTS    0
74
75 /* CPM Ethernet through SCC1 */
76 #define PA_ENET_RXD     ((ushort)0x0001)
77 #define PA_ENET_TXD     ((ushort)0x0002)
78 #define PA_ENET_TCLK    ((ushort)0x0100)
79 #define PA_ENET_RCLK    ((ushort)0x0200)
80 #define PB_ENET_TENA    ((uint)0x00001000)
81 #define PC_ENET_CLSN    ((ushort)0x0010)
82 #define PC_ENET_RENA    ((ushort)0x0020)
83
84 /* Control bits in the SICR to route TCLK (CLK1) and RCLK (CLK2) to
85  * SCC1.  Also, make sure GR1 (bit 24) and SC1 (bit 25) are zero.
86  */
87 #define SICR_ENET_MASK  ((uint)0x000000ff)
88 #define SICR_ENET_CLKRT ((uint)0x0000002c)
89
90 #endif /* __ASM_MPC86XADS_H__ */
91 #endif /* __KERNEL__ */