Go to the documentation of this file.
13 #ifndef ASM_ARCH_MAINSTONE_H
14 #define ASM_ARCH_MAINSTONE_H
16 #include <mach/irqs.h>
18 #define MST_ETH_PHYS PXA_CS4_PHYS
20 #define MST_FPGA_PHYS PXA_CS2_PHYS
21 #define MST_FPGA_VIRT (0xf0000000)
22 #define MST_P2V(x) ((x) - MST_FPGA_PHYS + MST_FPGA_VIRT)
23 #define MST_V2P(x) ((x) - MST_FPGA_VIRT + MST_FPGA_PHYS)
26 # define __MST_REG(x) (*((volatile unsigned long *)MST_P2V(x)))
28 # define __MST_REG(x) MST_P2V(x)
33 #define MST_LEDDAT1 __MST_REG(0x08000010)
34 #define MST_LEDDAT2 __MST_REG(0x08000014)
35 #define MST_LEDCTRL __MST_REG(0x08000040)
36 #define MST_GPSWR __MST_REG(0x08000060)
37 #define MST_MSCWR1 __MST_REG(0x08000080)
38 #define MST_MSCWR2 __MST_REG(0x08000084)
39 #define MST_MSCWR3 __MST_REG(0x08000088)
40 #define MST_MSCRD __MST_REG(0x08000090)
41 #define MST_INTMSKENA __MST_REG(0x080000c0)
42 #define MST_INTSETCLR __MST_REG(0x080000d0)
43 #define MST_PCMCIA0 __MST_REG(0x080000e0)
44 #define MST_PCMCIA1 __MST_REG(0x080000e4)
46 #define MST_MSCWR1_CAMERA_ON (1 << 15)
47 #define MST_MSCWR1_CAMERA_SEL (1 << 14)
48 #define MST_MSCWR1_LCD_CTL (1 << 13)
49 #define MST_MSCWR1_MS_ON (1 << 12)
50 #define MST_MSCWR1_MMC_ON (1 << 11)
51 #define MST_MSCWR1_MS_SEL (1 << 10)
52 #define MST_MSCWR1_BB_SEL (1 << 9)
53 #define MST_MSCWR1_BT_ON (1 << 8)
54 #define MST_MSCWR1_BTDTR (1 << 7)
56 #define MST_MSCWR1_IRDA_MASK (3 << 5)
57 #define MST_MSCWR1_IRDA_FULL (0 << 5)
58 #define MST_MSCWR1_IRDA_OFF (1 << 5)
59 #define MST_MSCWR1_IRDA_MED (2 << 5)
60 #define MST_MSCWR1_IRDA_LOW (3 << 5)
62 #define MST_MSCWR1_IRDA_FIR (1 << 4)
63 #define MST_MSCWR1_GREENLED (1 << 3)
64 #define MST_MSCWR1_PDC_CTL (1 << 2)
65 #define MST_MSCWR1_MTR_ON (1 << 1)
66 #define MST_MSCWR1_SYSRESET (1 << 0)
68 #define MST_MSCWR2_USB_OTG_RST (1 << 6)
69 #define MST_MSCWR2_USB_OTG_SEL (1 << 5)
70 #define MST_MSCWR2_nUSBC_SC (1 << 4)
71 #define MST_MSCWR2_I2S_SPKROFF (1 << 3)
72 #define MST_MSCWR2_AC97_SPKROFF (1 << 2)
73 #define MST_MSCWR2_RADIO_PWR (1 << 1)
74 #define MST_MSCWR2_RADIO_WAKE (1 << 0)
76 #define MST_MSCWR3_GPIO_RESET_EN (1 << 2)
77 #define MST_MSCWR3_GPIO_RESET (1 << 1)
78 #define MST_MSCWR3_COMMS_SW_RESET (1 << 0)
80 #define MST_MSCRD_nPENIRQ (1 << 9)
81 #define MST_MSCRD_nMEMSTK_CD (1 << 8)
82 #define MST_MSCRD_nMMC_CD (1 << 7)
83 #define MST_MSCRD_nUSIM_CD (1 << 6)
84 #define MST_MSCRD_USB_CBL (1 << 5)
85 #define MST_MSCRD_TS_BUSY (1 << 4)
86 #define MST_MSCRD_BTDSR (1 << 3)
87 #define MST_MSCRD_BTRI (1 << 2)
88 #define MST_MSCRD_BTDCD (1 << 1)
89 #define MST_MSCRD_nMMC_WP (1 << 0)
91 #define MST_INT_S1_IRQ (1 << 15)
92 #define MST_INT_S1_STSCHG (1 << 14)
93 #define MST_INT_S1_CD (1 << 13)
94 #define MST_INT_S0_IRQ (1 << 11)
95 #define MST_INT_S0_STSCHG (1 << 10)
96 #define MST_INT_S0_CD (1 << 9)
97 #define MST_INT_nEXBRD_INT (1 << 7)
98 #define MST_INT_MSINS (1 << 6)
99 #define MST_INT_PENIRQ (1 << 5)
100 #define MST_INT_AC97 (1 << 4)
101 #define MST_INT_ETHERNET (1 << 3)
102 #define MST_INT_USBC (1 << 2)
103 #define MST_INT_USIM (1 << 1)
104 #define MST_INT_MMC (1 << 0)
106 #define MST_PCMCIA_nIRQ (1 << 10)
107 #define MST_PCMCIA_nSPKR_BVD2 (1 << 9)
108 #define MST_PCMCIA_nSTSCHG_BVD1 (1 << 8)
109 #define MST_PCMCIA_nVS2 (1 << 7)
110 #define MST_PCMCIA_nVS1 (1 << 6)
111 #define MST_PCMCIA_nCD (1 << 5)
112 #define MST_PCMCIA_RESET (1 << 4)
113 #define MST_PCMCIA_PWR_MASK (0x000f)
115 #define MST_PCMCIA_PWR_VPP_0 0x0
116 #define MST_PCMCIA_PWR_VPP_120 0x2
117 #define MST_PCMCIA_PWR_VPP_VCC 0x1
118 #define MST_PCMCIA_PWR_VCC_0 0x0
119 #define MST_PCMCIA_PWR_VCC_33 0x8
120 #define MST_PCMCIA_PWR_VCC_50 0x4
123 #define MAINSTONE_IRQ(x) (IRQ_BOARD_START + (x))
124 #define MAINSTONE_MMC_IRQ MAINSTONE_IRQ(0)
125 #define MAINSTONE_USIM_IRQ MAINSTONE_IRQ(1)
126 #define MAINSTONE_USBC_IRQ MAINSTONE_IRQ(2)
127 #define MAINSTONE_ETHERNET_IRQ MAINSTONE_IRQ(3)
128 #define MAINSTONE_AC97_IRQ MAINSTONE_IRQ(4)
129 #define MAINSTONE_PEN_IRQ MAINSTONE_IRQ(5)
130 #define MAINSTONE_MSINS_IRQ MAINSTONE_IRQ(6)
131 #define MAINSTONE_EXBRD_IRQ MAINSTONE_IRQ(7)
132 #define MAINSTONE_S0_CD_IRQ MAINSTONE_IRQ(9)
133 #define MAINSTONE_S0_STSCHG_IRQ MAINSTONE_IRQ(10)
134 #define MAINSTONE_S0_IRQ MAINSTONE_IRQ(11)
135 #define MAINSTONE_S1_CD_IRQ MAINSTONE_IRQ(13)
136 #define MAINSTONE_S1_STSCHG_IRQ MAINSTONE_IRQ(14)
137 #define MAINSTONE_S1_IRQ MAINSTONE_IRQ(15)
139 #define MAINSTONE_NR_IRQS (IRQ_BOARD_START + 16)