Go to the documentation of this file. 1 #ifndef __ASM_SH_HD64461
2 #define __ASM_SH_HD64461
13 #define HD64461_PCC_WINDOW 0x01000000
16 #define HD64461_IOBASE 0xb0000000
17 #define HD64461_IO_OFFSET(x) (HD64461_IOBASE + (x))
18 #define HD64461_PCC0_BASE HD64461_IO_OFFSET(0x8000000)
19 #define HD64461_PCC0_ATTR (HD64461_PCC0_BASE)
20 #define HD64461_PCC0_COMM (HD64461_PCC0_BASE+HD64461_PCC_WINDOW)
21 #define HD64461_PCC0_IO (HD64461_PCC0_BASE+2*HD64461_PCC_WINDOW)
24 #define HD64461_PCC1_BASE HD64461_IO_OFFSET(0x4000000)
25 #define HD64461_PCC1_ATTR (HD64461_PCC1_BASE)
26 #define HD64461_PCC1_COMM (HD64461_PCC1_BASE+HD64461_PCC_WINDOW)
29 #define HD64461_STBCR HD64461_IO_OFFSET(0x00000000)
30 #define HD64461_STBCR_CKIO_STBY 0x2000
31 #define HD64461_STBCR_SAFECKE_IST 0x1000
32 #define HD64461_STBCR_SLCKE_IST 0x0800
33 #define HD64461_STBCR_SAFECKE_OST 0x0400
34 #define HD64461_STBCR_SLCKE_OST 0x0200
35 #define HD64461_STBCR_SMIAST 0x0100
36 #define HD64461_STBCR_SLCDST 0x0080
37 #define HD64461_STBCR_SPC0ST 0x0040
38 #define HD64461_STBCR_SPC1ST 0x0020
39 #define HD64461_STBCR_SAFEST 0x0010
40 #define HD64461_STBCR_STM0ST 0x0008
41 #define HD64461_STBCR_STM1ST 0x0004
42 #define HD64461_STBCR_SIRST 0x0002
43 #define HD64461_STBCR_SURTST 0x0001
46 #define HD64461_SYSCR HD64461_IO_OFFSET(0x02)
49 #define HD64461_SCPUCR HD64461_IO_OFFSET(0x04)
52 #define HD64461_LCDCBAR HD64461_IO_OFFSET(0x1000)
55 #define HD64461_LCDCLOR HD64461_IO_OFFSET(0x1002)
58 #define HD64461_LCDCCR HD64461_IO_OFFSET(0x1004)
61 #define HD64461_LCDCCR_STBACK 0x0400
62 #define HD64461_LCDCCR_STREQ 0x0100
63 #define HD64461_LCDCCR_MOFF 0x0080
64 #define HD64461_LCDCCR_REFSEL 0x0040
65 #define HD64461_LCDCCR_EPON 0x0020
66 #define HD64461_LCDCCR_SPON 0x0010
69 #define HD64461_LDR1 HD64461_IO_OFFSET(0x1010)
70 #define HD64461_LDR1_DON 0x01
71 #define HD64461_LDR1_DINV 0x80
74 #define HD64461_LDR2 HD64461_IO_OFFSET(0x1012)
75 #define HD64461_LDHNCR HD64461_IO_OFFSET(0x1014)
76 #define HD64461_LDHNSR HD64461_IO_OFFSET(0x1016)
77 #define HD64461_LDVNTR HD64461_IO_OFFSET(0x1018)
78 #define HD64461_LDVNDR HD64461_IO_OFFSET(0x101a)
79 #define HD64461_LDVSPR HD64461_IO_OFFSET(0x101c)
82 #define HD64461_LDR3 HD64461_IO_OFFSET(0x101e)
85 #define HD64461_CPTWAR HD64461_IO_OFFSET(0x1030)
86 #define HD64461_CPTWDR HD64461_IO_OFFSET(0x1032)
87 #define HD64461_CPTRAR HD64461_IO_OFFSET(0x1034)
88 #define HD64461_CPTRDR HD64461_IO_OFFSET(0x1036)
90 #define HD64461_GRDOR HD64461_IO_OFFSET(0x1040)
91 #define HD64461_GRSCR HD64461_IO_OFFSET(0x1042)
92 #define HD64461_GRCFGR HD64461_IO_OFFSET(0x1044)
94 #define HD64461_GRCFGR_ACCSTATUS 0x10
95 #define HD64461_GRCFGR_ACCRESET 0x08
96 #define HD64461_GRCFGR_ACCSTART_BITBLT 0x06
97 #define HD64461_GRCFGR_ACCSTART_LINE 0x04
98 #define HD64461_GRCFGR_COLORDEPTH16 0x01
99 #define HD64461_GRCFGR_COLORDEPTH8 0x01
102 #define HD64461_LNSARH HD64461_IO_OFFSET(0x1046)
103 #define HD64461_LNSARL HD64461_IO_OFFSET(0x1048)
104 #define HD64461_LNAXLR HD64461_IO_OFFSET(0x104a)
105 #define HD64461_LNDGR HD64461_IO_OFFSET(0x104c)
106 #define HD64461_LNAXR HD64461_IO_OFFSET(0x104e)
107 #define HD64461_LNERTR HD64461_IO_OFFSET(0x1050)
108 #define HD64461_LNMDR HD64461_IO_OFFSET(0x1052)
111 #define HD64461_BBTSSARH HD64461_IO_OFFSET(0x1054)
112 #define HD64461_BBTSSARL HD64461_IO_OFFSET(0x1056)
113 #define HD64461_BBTDSARH HD64461_IO_OFFSET(0x1058)
114 #define HD64461_BBTDSARL HD64461_IO_OFFSET(0x105a)
115 #define HD64461_BBTDWR HD64461_IO_OFFSET(0x105c)
116 #define HD64461_BBTDHR HD64461_IO_OFFSET(0x105e)
117 #define HD64461_BBTPARH HD64461_IO_OFFSET(0x1060)
118 #define HD64461_BBTPARL HD64461_IO_OFFSET(0x1062)
119 #define HD64461_BBTMARH HD64461_IO_OFFSET(0x1064)
120 #define HD64461_BBTMARL HD64461_IO_OFFSET(0x1066)
121 #define HD64461_BBTROPR HD64461_IO_OFFSET(0x1068)
122 #define HD64461_BBTMDR HD64461_IO_OFFSET(0x106a)
126 #define HD64461_PCC0ISR HD64461_IO_OFFSET(0x2000)
127 #define HD64461_PCC0GCR HD64461_IO_OFFSET(0x2002)
128 #define HD64461_PCC0CSCR HD64461_IO_OFFSET(0x2004)
129 #define HD64461_PCC0CSCIER HD64461_IO_OFFSET(0x2006)
130 #define HD64461_PCC0SCR HD64461_IO_OFFSET(0x2008)
132 #define HD64461_PCC1ISR HD64461_IO_OFFSET(0x2010)
133 #define HD64461_PCC1GCR HD64461_IO_OFFSET(0x2012)
134 #define HD64461_PCC1CSCR HD64461_IO_OFFSET(0x2014)
135 #define HD64461_PCC1CSCIER HD64461_IO_OFFSET(0x2016)
136 #define HD64461_PCC1SCR HD64461_IO_OFFSET(0x2018)
139 #define HD64461_PCCISR_READY 0x80
140 #define HD64461_PCCISR_MWP 0x40
141 #define HD64461_PCCISR_VS2 0x20
142 #define HD64461_PCCISR_VS1 0x10
143 #define HD64461_PCCISR_CD2 0x08
144 #define HD64461_PCCISR_CD1 0x04
145 #define HD64461_PCCISR_BVD2 0x02
146 #define HD64461_PCCISR_BVD1 0x01
148 #define HD64461_PCCISR_PCD_MASK 0x0c
149 #define HD64461_PCCISR_BVD_MASK 0x03
150 #define HD64461_PCCISR_BVD_BATGOOD 0x03
151 #define HD64461_PCCISR_BVD_BATWARN 0x01
152 #define HD64461_PCCISR_BVD_BATDEAD1 0x02
153 #define HD64461_PCCISR_BVD_BATDEAD2 0x00
156 #define HD64461_PCCGCR_DRVE 0x80
157 #define HD64461_PCCGCR_PCCR 0x40
158 #define HD64461_PCCGCR_PCCT 0x20
159 #define HD64461_PCCGCR_VCC0 0x10
160 #define HD64461_PCCGCR_PMMOD 0x08
161 #define HD64461_PCCGCR_PA25 0x04
162 #define HD64461_PCCGCR_PA24 0x02
163 #define HD64461_PCCGCR_REG 0x01
166 #define HD64461_PCCCSCR_SCDI 0x80
167 #define HD64461_PCCCSCR_SRV1 0x40
168 #define HD64461_PCCCSCR_IREQ 0x20
169 #define HD64461_PCCCSCR_SC 0x10
170 #define HD64461_PCCCSCR_CDC 0x08
171 #define HD64461_PCCCSCR_RC 0x04
172 #define HD64461_PCCCSCR_BW 0x02
173 #define HD64461_PCCCSCR_BD 0x01
176 #define HD64461_PCCCSCIER_CRE 0x80
177 #define HD64461_PCCCSCIER_IREQE_MASK 0x60
178 #define HD64461_PCCCSCIER_IREQE_DISABLED 0x00
179 #define HD64461_PCCCSCIER_IREQE_LEVEL 0x20
180 #define HD64461_PCCCSCIER_IREQE_FALLING 0x40
181 #define HD64461_PCCCSCIER_IREQE_RISING 0x60
183 #define HD64461_PCCCSCIER_SCE 0x10
184 #define HD64461_PCCCSCIER_CDE 0x08
185 #define HD64461_PCCCSCIER_RE 0x04
186 #define HD64461_PCCCSCIER_BWE 0x02
187 #define HD64461_PCCCSCIER_BDE 0x01
190 #define HD64461_PCCSCR_VCC1 0x02
191 #define HD64461_PCCSCR_SWP 0x01
194 #define HD64461_P0OCR HD64461_IO_OFFSET(0x202a)
197 #define HD64461_P1OCR HD64461_IO_OFFSET(0x202c)
200 #define HD64461_PGCR HD64461_IO_OFFSET(0x202e)
203 #define HD64461_GPACR HD64461_IO_OFFSET(0x4000)
204 #define HD64461_GPBCR HD64461_IO_OFFSET(0x4002)
205 #define HD64461_GPCCR HD64461_IO_OFFSET(0x4004)
206 #define HD64461_GPDCR HD64461_IO_OFFSET(0x4006)
209 #define HD64461_GPADR HD64461_IO_OFFSET(0x4010)
210 #define HD64461_GPBDR HD64461_IO_OFFSET(0x4012)
211 #define HD64461_GPCDR HD64461_IO_OFFSET(0x4014)
212 #define HD64461_GPDDR HD64461_IO_OFFSET(0x4016)
215 #define HD64461_GPAICR HD64461_IO_OFFSET(0x4020)
216 #define HD64461_GPBICR HD64461_IO_OFFSET(0x4022)
217 #define HD64461_GPCICR HD64461_IO_OFFSET(0x4024)
218 #define HD64461_GPDICR HD64461_IO_OFFSET(0x4026)
221 #define HD64461_GPAISR HD64461_IO_OFFSET(0x4040)
222 #define HD64461_GPBISR HD64461_IO_OFFSET(0x4042)
223 #define HD64461_GPCISR HD64461_IO_OFFSET(0x4044)
224 #define HD64461_GPDISR HD64461_IO_OFFSET(0x4046)
227 #define HD64461_NIRR HD64461_IO_OFFSET(0x5000)
228 #define HD64461_NIMR HD64461_IO_OFFSET(0x5002)
230 #define HD64461_IRQBASE OFFCHIP_IRQ_BASE
231 #define OFFCHIP_IRQ_BASE 64
232 #define HD64461_IRQ_NUM 16
234 #define HD64461_IRQ_UART (HD64461_IRQBASE+5)
235 #define HD64461_IRQ_IRDA (HD64461_IRQBASE+6)
236 #define HD64461_IRQ_TMU1 (HD64461_IRQBASE+9)
237 #define HD64461_IRQ_TMU0 (HD64461_IRQBASE+10)
238 #define HD64461_IRQ_GPIO (HD64461_IRQBASE+11)
239 #define HD64461_IRQ_AFE (HD64461_IRQBASE+12)
240 #define HD64461_IRQ_PCC1 (HD64461_IRQBASE+13)
241 #define HD64461_IRQ_PCC0 (HD64461_IRQBASE+14)
243 #define __IO_PREFIX hd64461
248 int (*demux) (
int irq,
void *
dev),
void *dev);