Go to the documentation of this file. 1 #ifndef __MACH_MOTHERBOARD_H
2 #define __MACH_MOTHERBOARD_H
9 #define V2M_NOR0 (V2M_PA_CS0)
10 #define V2M_NOR1 (V2M_PA_CS1)
11 #define V2M_SRAM (V2M_PA_CS2)
12 #define V2M_VIDEO_SRAM (V2M_PA_CS3 + 0x00000000)
13 #define V2M_LAN9118 (V2M_PA_CS3 + 0x02000000)
14 #define V2M_ISP1761 (V2M_PA_CS3 + 0x03000000)
19 #define V2M_SYSREGS (V2M_PA_CS7 + 0x00000000)
20 #define V2M_SYSCTL (V2M_PA_CS7 + 0x00001000)
21 #define V2M_SERIAL_BUS_PCI (V2M_PA_CS7 + 0x00002000)
23 #define V2M_AACI (V2M_PA_CS7 + 0x00004000)
24 #define V2M_MMCI (V2M_PA_CS7 + 0x00005000)
25 #define V2M_KMI0 (V2M_PA_CS7 + 0x00006000)
26 #define V2M_KMI1 (V2M_PA_CS7 + 0x00007000)
28 #define V2M_UART0 (V2M_PA_CS7 + 0x00009000)
29 #define V2M_UART1 (V2M_PA_CS7 + 0x0000a000)
30 #define V2M_UART2 (V2M_PA_CS7 + 0x0000b000)
31 #define V2M_UART3 (V2M_PA_CS7 + 0x0000c000)
33 #define V2M_WDT (V2M_PA_CS7 + 0x0000f000)
35 #define V2M_TIMER01 (V2M_PA_CS7 + 0x00011000)
36 #define V2M_TIMER23 (V2M_PA_CS7 + 0x00012000)
38 #define V2M_SERIAL_BUS_DVI (V2M_PA_CS7 + 0x00016000)
39 #define V2M_RTC (V2M_PA_CS7 + 0x00017000)
41 #define V2M_CF (V2M_PA_CS7 + 0x0001a000)
42 #define V2M_CLCD (V2M_PA_CS7 + 0x0001f000)
47 #define V2M_SYS_ID 0x000
48 #define V2M_SYS_SW 0x004
49 #define V2M_SYS_LED 0x008
50 #define V2M_SYS_100HZ 0x024
51 #define V2M_SYS_FLAGS 0x030
52 #define V2M_SYS_FLAGSSET 0x030
53 #define V2M_SYS_FLAGSCLR 0x034
54 #define V2M_SYS_NVFLAGS 0x038
55 #define V2M_SYS_NVFLAGSSET 0x038
56 #define V2M_SYS_NVFLAGSCLR 0x03c
57 #define V2M_SYS_MCI 0x048
58 #define V2M_SYS_FLASH 0x03c
59 #define V2M_SYS_CFGSW 0x058
60 #define V2M_SYS_24MHZ 0x05c
61 #define V2M_SYS_MISC 0x060
62 #define V2M_SYS_DMA 0x064
63 #define V2M_SYS_PROCID0 0x084
64 #define V2M_SYS_PROCID1 0x088
65 #define V2M_SYS_CFGDATA 0x0a0
66 #define V2M_SYS_CFGCTRL 0x0a4
67 #define V2M_SYS_CFGSTAT 0x0a8
73 #define IRQ_V2M_WDT { (32 + 0) }
74 #define IRQ_V2M_TIMER0 (32 + 2)
75 #define IRQ_V2M_TIMER1 (32 + 2)
76 #define IRQ_V2M_TIMER2 (32 + 3)
77 #define IRQ_V2M_TIMER3 (32 + 3)
78 #define IRQ_V2M_RTC { (32 + 4) }
79 #define IRQ_V2M_UART0 { (32 + 5) }
80 #define IRQ_V2M_UART1 { (32 + 6) }
81 #define IRQ_V2M_UART2 { (32 + 7) }
82 #define IRQ_V2M_UART3 { (32 + 8) }
83 #define IRQ_V2M_MMCI { (32 + 9), (32 + 10) }
84 #define IRQ_V2M_AACI { (32 + 11) }
85 #define IRQ_V2M_KMI0 { (32 + 12) }
86 #define IRQ_V2M_KMI1 { (32 + 13) }
87 #define IRQ_V2M_CLCD { (32 + 14) }
88 #define IRQ_V2M_LAN9118 (32 + 15)
89 #define IRQ_V2M_ISP1761 (32 + 16)
90 #define IRQ_V2M_PCIE (32 + 17)
96 #define SYS_CFG_START (1 << 31)
97 #define SYS_CFG_WRITE (1 << 30)
98 #define SYS_CFG_OSC (1 << 20)
99 #define SYS_CFG_VOLT (2 << 20)
100 #define SYS_CFG_AMP (3 << 20)
101 #define SYS_CFG_TEMP (4 << 20)
102 #define SYS_CFG_RESET (5 << 20)
103 #define SYS_CFG_SCC (6 << 20)
104 #define SYS_CFG_MUXFPGA (7 << 20)
105 #define SYS_CFG_SHUTDOWN (8 << 20)
106 #define SYS_CFG_REBOOT (9 << 20)
107 #define SYS_CFG_DVIMODE (11 << 20)
108 #define SYS_CFG_POWER (12 << 20)
109 #define SYS_CFG_SITE(n) ((n) << 16)
110 #define SYS_CFG_SITE_MB 0
111 #define SYS_CFG_SITE_DB1 1
112 #define SYS_CFG_SITE_DB2 2
113 #define SYS_CFG_STACK(n) ((n) << 12)
115 #define SYS_CFG_ERR (1 << 1)
116 #define SYS_CFG_COMPLETE (1 << 0)
125 #define SYS_MISC_MASTERSITE (1 << 14)
126 #define SYS_PROCIDx_HBI_MASK 0xfff
133 #define V2M_CT_ID_CA9 0x0c000191
134 #define V2M_CT_ID_UNSUPPORTED 0xff000191
135 #define V2M_CT_ID_MASK 0xff000fff
146 void (*smp_enable)(
unsigned int);
165 #define to_v2m_osc(osc) container_of(osc, struct v2m_osc, hw)