diff options
author | Manuel Lauss <manuel.lauss@googlemail.com> | 2011-08-12 05:39:45 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2011-10-24 18:34:24 -0400 |
commit | 3766386037827fe7064f57f9aec27b3b5e9417aa (patch) | |
tree | 306a7b1ccf3100469fd711af37963801d8d387c0 /arch/mips/alchemy | |
parent | 50d5676ebac57c187ac347bae24290f0dc16fdbe (diff) |
MIPS: Alchemy: remove all CONFIG_SOC_AU1??? defines
Now that no driver any longer depends on the CONFIG_SOC_AU1??? symbols,
it's time to get rid of them: Move some of the platform devices to the
boards which can use them, Rename a few (unused) constants in the header,
Replace them with MIPS_ALCHEMY in the various Kconfig files. Finally
delete them altogether from the Alchemy Kconfig file.
Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com>
To: Linux-MIPS <linux-mips@linux-mips.org>
Patchwork: https://patchwork.linux-mips.org/patch/2707/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/alchemy')
-rw-r--r-- | arch/mips/alchemy/Kconfig | 50 | ||||
-rw-r--r-- | arch/mips/alchemy/common/platform.c | 175 | ||||
-rw-r--r-- | arch/mips/alchemy/devboards/db1200/platform.c | 78 | ||||
-rw-r--r-- | arch/mips/alchemy/devboards/db1x00/board_setup.c | 4 | ||||
-rw-r--r-- | arch/mips/alchemy/devboards/db1x00/platform.c | 32 | ||||
-rw-r--r-- | arch/mips/alchemy/devboards/pb1100/platform.c | 29 | ||||
-rw-r--r-- | arch/mips/alchemy/devboards/pb1200/platform.c | 137 | ||||
-rw-r--r-- | arch/mips/alchemy/devboards/pb1500/platform.c | 1 | ||||
-rw-r--r-- | arch/mips/alchemy/devboards/pb1550/platform.c | 33 |
9 files changed, 319 insertions, 220 deletions
diff --git a/arch/mips/alchemy/Kconfig b/arch/mips/alchemy/Kconfig index 2ccfd4a135bc..2a68be6a1b97 100644 --- a/arch/mips/alchemy/Kconfig +++ b/arch/mips/alchemy/Kconfig | |||
@@ -18,20 +18,20 @@ config MIPS_MTX1 | |||
18 | bool "4G Systems MTX-1 board" | 18 | bool "4G Systems MTX-1 board" |
19 | select DMA_NONCOHERENT | 19 | select DMA_NONCOHERENT |
20 | select HW_HAS_PCI | 20 | select HW_HAS_PCI |
21 | select SOC_AU1500 | 21 | select ALCHEMY_GPIOINT_AU1000 |
22 | select SYS_SUPPORTS_LITTLE_ENDIAN | 22 | select SYS_SUPPORTS_LITTLE_ENDIAN |
23 | select SYS_HAS_EARLY_PRINTK | 23 | select SYS_HAS_EARLY_PRINTK |
24 | 24 | ||
25 | config MIPS_BOSPORUS | 25 | config MIPS_BOSPORUS |
26 | bool "Alchemy Bosporus board" | 26 | bool "Alchemy Bosporus board" |
27 | select SOC_AU1500 | 27 | select ALCHEMY_GPIOINT_AU1000 |
28 | select DMA_NONCOHERENT | 28 | select DMA_NONCOHERENT |
29 | select SYS_SUPPORTS_LITTLE_ENDIAN | 29 | select SYS_SUPPORTS_LITTLE_ENDIAN |
30 | select SYS_HAS_EARLY_PRINTK | 30 | select SYS_HAS_EARLY_PRINTK |
31 | 31 | ||
32 | config MIPS_DB1000 | 32 | config MIPS_DB1000 |
33 | bool "Alchemy DB1000 board" | 33 | bool "Alchemy DB1000 board" |
34 | select SOC_AU1000 | 34 | select ALCHEMY_GPIOINT_AU1000 |
35 | select DMA_NONCOHERENT | 35 | select DMA_NONCOHERENT |
36 | select HW_HAS_PCI | 36 | select HW_HAS_PCI |
37 | select SYS_SUPPORTS_LITTLE_ENDIAN | 37 | select SYS_SUPPORTS_LITTLE_ENDIAN |
@@ -39,14 +39,14 @@ config MIPS_DB1000 | |||
39 | 39 | ||
40 | config MIPS_DB1100 | 40 | config MIPS_DB1100 |
41 | bool "Alchemy DB1100 board" | 41 | bool "Alchemy DB1100 board" |
42 | select SOC_AU1100 | 42 | select ALCHEMY_GPIOINT_AU1000 |
43 | select DMA_NONCOHERENT | 43 | select DMA_NONCOHERENT |
44 | select SYS_SUPPORTS_LITTLE_ENDIAN | 44 | select SYS_SUPPORTS_LITTLE_ENDIAN |
45 | select SYS_HAS_EARLY_PRINTK | 45 | select SYS_HAS_EARLY_PRINTK |
46 | 46 | ||
47 | config MIPS_DB1200 | 47 | config MIPS_DB1200 |
48 | bool "Alchemy DB1200 board" | 48 | bool "Alchemy DB1200 board" |
49 | select SOC_AU1200 | 49 | select ALCHEMY_GPIOINT_AU1000 |
50 | select DMA_COHERENT | 50 | select DMA_COHERENT |
51 | select MIPS_DISABLE_OBSOLETE_IDE | 51 | select MIPS_DISABLE_OBSOLETE_IDE |
52 | select SYS_SUPPORTS_LITTLE_ENDIAN | 52 | select SYS_SUPPORTS_LITTLE_ENDIAN |
@@ -54,7 +54,7 @@ config MIPS_DB1200 | |||
54 | 54 | ||
55 | config MIPS_DB1500 | 55 | config MIPS_DB1500 |
56 | bool "Alchemy DB1500 board" | 56 | bool "Alchemy DB1500 board" |
57 | select SOC_AU1500 | 57 | select ALCHEMY_GPIOINT_AU1000 |
58 | select DMA_NONCOHERENT | 58 | select DMA_NONCOHERENT |
59 | select HW_HAS_PCI | 59 | select HW_HAS_PCI |
60 | select MIPS_DISABLE_OBSOLETE_IDE | 60 | select MIPS_DISABLE_OBSOLETE_IDE |
@@ -64,7 +64,7 @@ config MIPS_DB1500 | |||
64 | 64 | ||
65 | config MIPS_DB1550 | 65 | config MIPS_DB1550 |
66 | bool "Alchemy DB1550 board" | 66 | bool "Alchemy DB1550 board" |
67 | select SOC_AU1550 | 67 | select ALCHEMY_GPIOINT_AU1000 |
68 | select HW_HAS_PCI | 68 | select HW_HAS_PCI |
69 | select DMA_NONCOHERENT | 69 | select DMA_NONCOHERENT |
70 | select MIPS_DISABLE_OBSOLETE_IDE | 70 | select MIPS_DISABLE_OBSOLETE_IDE |
@@ -74,13 +74,13 @@ config MIPS_DB1550 | |||
74 | config MIPS_MIRAGE | 74 | config MIPS_MIRAGE |
75 | bool "Alchemy Mirage board" | 75 | bool "Alchemy Mirage board" |
76 | select DMA_NONCOHERENT | 76 | select DMA_NONCOHERENT |
77 | select SOC_AU1500 | 77 | select ALCHEMY_GPIOINT_AU1000 |
78 | select SYS_SUPPORTS_LITTLE_ENDIAN | 78 | select SYS_SUPPORTS_LITTLE_ENDIAN |
79 | select SYS_HAS_EARLY_PRINTK | 79 | select SYS_HAS_EARLY_PRINTK |
80 | 80 | ||
81 | config MIPS_PB1000 | 81 | config MIPS_PB1000 |
82 | bool "Alchemy PB1000 board" | 82 | bool "Alchemy PB1000 board" |
83 | select SOC_AU1000 | 83 | select ALCHEMY_GPIOINT_AU1000 |
84 | select DMA_NONCOHERENT | 84 | select DMA_NONCOHERENT |
85 | select HW_HAS_PCI | 85 | select HW_HAS_PCI |
86 | select SWAP_IO_SPACE | 86 | select SWAP_IO_SPACE |
@@ -89,7 +89,7 @@ config MIPS_PB1000 | |||
89 | 89 | ||
90 | config MIPS_PB1100 | 90 | config MIPS_PB1100 |
91 | bool "Alchemy PB1100 board" | 91 | bool "Alchemy PB1100 board" |
92 | select SOC_AU1100 | 92 | select ALCHEMY_GPIOINT_AU1000 |
93 | select DMA_NONCOHERENT | 93 | select DMA_NONCOHERENT |
94 | select HW_HAS_PCI | 94 | select HW_HAS_PCI |
95 | select SWAP_IO_SPACE | 95 | select SWAP_IO_SPACE |
@@ -98,7 +98,7 @@ config MIPS_PB1100 | |||
98 | 98 | ||
99 | config MIPS_PB1200 | 99 | config MIPS_PB1200 |
100 | bool "Alchemy PB1200 board" | 100 | bool "Alchemy PB1200 board" |
101 | select SOC_AU1200 | 101 | select ALCHEMY_GPIOINT_AU1000 |
102 | select DMA_NONCOHERENT | 102 | select DMA_NONCOHERENT |
103 | select MIPS_DISABLE_OBSOLETE_IDE | 103 | select MIPS_DISABLE_OBSOLETE_IDE |
104 | select SYS_SUPPORTS_LITTLE_ENDIAN | 104 | select SYS_SUPPORTS_LITTLE_ENDIAN |
@@ -106,7 +106,7 @@ config MIPS_PB1200 | |||
106 | 106 | ||
107 | config MIPS_PB1500 | 107 | config MIPS_PB1500 |
108 | bool "Alchemy PB1500 board" | 108 | bool "Alchemy PB1500 board" |
109 | select SOC_AU1500 | 109 | select ALCHEMY_GPIOINT_AU1000 |
110 | select DMA_NONCOHERENT | 110 | select DMA_NONCOHERENT |
111 | select HW_HAS_PCI | 111 | select HW_HAS_PCI |
112 | select SYS_SUPPORTS_LITTLE_ENDIAN | 112 | select SYS_SUPPORTS_LITTLE_ENDIAN |
@@ -114,7 +114,7 @@ config MIPS_PB1500 | |||
114 | 114 | ||
115 | config MIPS_PB1550 | 115 | config MIPS_PB1550 |
116 | bool "Alchemy PB1550 board" | 116 | bool "Alchemy PB1550 board" |
117 | select SOC_AU1550 | 117 | select ALCHEMY_GPIOINT_AU1000 |
118 | select DMA_NONCOHERENT | 118 | select DMA_NONCOHERENT |
119 | select HW_HAS_PCI | 119 | select HW_HAS_PCI |
120 | select MIPS_DISABLE_OBSOLETE_IDE | 120 | select MIPS_DISABLE_OBSOLETE_IDE |
@@ -124,13 +124,13 @@ config MIPS_PB1550 | |||
124 | config MIPS_XXS1500 | 124 | config MIPS_XXS1500 |
125 | bool "MyCable XXS1500 board" | 125 | bool "MyCable XXS1500 board" |
126 | select DMA_NONCOHERENT | 126 | select DMA_NONCOHERENT |
127 | select SOC_AU1500 | 127 | select ALCHEMY_GPIOINT_AU1000 |
128 | select SYS_SUPPORTS_LITTLE_ENDIAN | 128 | select SYS_SUPPORTS_LITTLE_ENDIAN |
129 | select SYS_HAS_EARLY_PRINTK | 129 | select SYS_HAS_EARLY_PRINTK |
130 | 130 | ||
131 | config MIPS_GPR | 131 | config MIPS_GPR |
132 | bool "Trapeze ITS GPR board" | 132 | bool "Trapeze ITS GPR board" |
133 | select SOC_AU1550 | 133 | select ALCHEMY_GPIOINT_AU1000 |
134 | select HW_HAS_PCI | 134 | select HW_HAS_PCI |
135 | select DMA_NONCOHERENT | 135 | select DMA_NONCOHERENT |
136 | select MIPS_DISABLE_OBSOLETE_IDE | 136 | select MIPS_DISABLE_OBSOLETE_IDE |
@@ -138,23 +138,3 @@ config MIPS_GPR | |||
138 | select SYS_HAS_EARLY_PRINTK | 138 | select SYS_HAS_EARLY_PRINTK |
139 | 139 | ||
140 | endchoice | 140 | endchoice |
141 | |||
142 | config SOC_AU1000 | ||
143 | bool | ||
144 | select ALCHEMY_GPIOINT_AU1000 | ||
145 | |||
146 | config SOC_AU1100 | ||
147 | bool | ||
148 | select ALCHEMY_GPIOINT_AU1000 | ||
149 | |||
150 | config SOC_AU1500 | ||
151 | bool | ||
152 | select ALCHEMY_GPIOINT_AU1000 | ||
153 | |||
154 | config SOC_AU1550 | ||
155 | bool | ||
156 | select ALCHEMY_GPIOINT_AU1000 | ||
157 | |||
158 | config SOC_AU1200 | ||
159 | bool | ||
160 | select ALCHEMY_GPIOINT_AU1000 | ||
diff --git a/arch/mips/alchemy/common/platform.c b/arch/mips/alchemy/common/platform.c index 657ae2778374..c8e5d72a5826 100644 --- a/arch/mips/alchemy/common/platform.c +++ b/arch/mips/alchemy/common/platform.c | |||
@@ -189,159 +189,6 @@ static void __init alchemy_setup_usb(int ctype) | |||
189 | } | 189 | } |
190 | } | 190 | } |
191 | 191 | ||
192 | /*** AU1100 LCD controller ***/ | ||
193 | |||
194 | #ifdef CONFIG_FB_AU1100 | ||
195 | static struct resource au1100_lcd_resources[] = { | ||
196 | [0] = { | ||
197 | .start = AU1100_LCD_PHYS_ADDR, | ||
198 | .end = AU1100_LCD_PHYS_ADDR + 0x800 - 1, | ||
199 | .flags = IORESOURCE_MEM, | ||
200 | }, | ||
201 | [1] = { | ||
202 | .start = AU1100_LCD_INT, | ||
203 | .end = AU1100_LCD_INT, | ||
204 | .flags = IORESOURCE_IRQ, | ||
205 | } | ||
206 | }; | ||
207 | |||
208 | static u64 au1100_lcd_dmamask = DMA_BIT_MASK(32); | ||
209 | |||
210 | static struct platform_device au1100_lcd_device = { | ||
211 | .name = "au1100-lcd", | ||
212 | .id = 0, | ||
213 | .dev = { | ||
214 | .dma_mask = &au1100_lcd_dmamask, | ||
215 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
216 | }, | ||
217 | .num_resources = ARRAY_SIZE(au1100_lcd_resources), | ||
218 | .resource = au1100_lcd_resources, | ||
219 | }; | ||
220 | #endif | ||
221 | |||
222 | #ifdef CONFIG_SOC_AU1200 | ||
223 | |||
224 | static struct resource au1200_lcd_resources[] = { | ||
225 | [0] = { | ||
226 | .start = AU1200_LCD_PHYS_ADDR, | ||
227 | .end = AU1200_LCD_PHYS_ADDR + 0x800 - 1, | ||
228 | .flags = IORESOURCE_MEM, | ||
229 | }, | ||
230 | [1] = { | ||
231 | .start = AU1200_LCD_INT, | ||
232 | .end = AU1200_LCD_INT, | ||
233 | .flags = IORESOURCE_IRQ, | ||
234 | } | ||
235 | }; | ||
236 | |||
237 | static u64 au1200_lcd_dmamask = DMA_BIT_MASK(32); | ||
238 | |||
239 | static struct platform_device au1200_lcd_device = { | ||
240 | .name = "au1200-lcd", | ||
241 | .id = 0, | ||
242 | .dev = { | ||
243 | .dma_mask = &au1200_lcd_dmamask, | ||
244 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
245 | }, | ||
246 | .num_resources = ARRAY_SIZE(au1200_lcd_resources), | ||
247 | .resource = au1200_lcd_resources, | ||
248 | }; | ||
249 | |||
250 | static u64 au1xxx_mmc_dmamask = DMA_BIT_MASK(32); | ||
251 | |||
252 | extern struct au1xmmc_platform_data au1xmmc_platdata[2]; | ||
253 | |||
254 | static struct resource au1200_mmc0_resources[] = { | ||
255 | [0] = { | ||
256 | .start = AU1100_SD0_PHYS_ADDR, | ||
257 | .end = AU1100_SD0_PHYS_ADDR + 0xfff, | ||
258 | .flags = IORESOURCE_MEM, | ||
259 | }, | ||
260 | [1] = { | ||
261 | .start = AU1200_SD_INT, | ||
262 | .end = AU1200_SD_INT, | ||
263 | .flags = IORESOURCE_IRQ, | ||
264 | }, | ||
265 | [2] = { | ||
266 | .start = AU1200_DSCR_CMD0_SDMS_TX0, | ||
267 | .end = AU1200_DSCR_CMD0_SDMS_TX0, | ||
268 | .flags = IORESOURCE_DMA, | ||
269 | }, | ||
270 | [3] = { | ||
271 | .start = AU1200_DSCR_CMD0_SDMS_RX0, | ||
272 | .end = AU1200_DSCR_CMD0_SDMS_RX0, | ||
273 | .flags = IORESOURCE_DMA, | ||
274 | } | ||
275 | }; | ||
276 | |||
277 | static struct platform_device au1200_mmc0_device = { | ||
278 | .name = "au1xxx-mmc", | ||
279 | .id = 0, | ||
280 | .dev = { | ||
281 | .dma_mask = &au1xxx_mmc_dmamask, | ||
282 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
283 | .platform_data = &au1xmmc_platdata[0], | ||
284 | }, | ||
285 | .num_resources = ARRAY_SIZE(au1200_mmc0_resources), | ||
286 | .resource = au1200_mmc0_resources, | ||
287 | }; | ||
288 | |||
289 | #ifndef CONFIG_MIPS_DB1200 | ||
290 | static struct resource au1200_mmc1_resources[] = { | ||
291 | [0] = { | ||
292 | .start = AU1100_SD1_PHYS_ADDR, | ||
293 | .end = AU1100_SD1_PHYS_ADDR + 0xfff, | ||
294 | .flags = IORESOURCE_MEM, | ||
295 | }, | ||
296 | [1] = { | ||
297 | .start = AU1200_SD_INT, | ||
298 | .end = AU1200_SD_INT, | ||
299 | .flags = IORESOURCE_IRQ, | ||
300 | }, | ||
301 | [2] = { | ||
302 | .start = AU1200_DSCR_CMD0_SDMS_TX1, | ||
303 | .end = AU1200_DSCR_CMD0_SDMS_TX1, | ||
304 | .flags = IORESOURCE_DMA, | ||
305 | }, | ||
306 | [3] = { | ||
307 | .start = AU1200_DSCR_CMD0_SDMS_RX1, | ||
308 | .end = AU1200_DSCR_CMD0_SDMS_RX1, | ||
309 | .flags = IORESOURCE_DMA, | ||
310 | } | ||
311 | }; | ||
312 | |||
313 | static struct platform_device au1200_mmc1_device = { | ||
314 | .name = "au1xxx-mmc", | ||
315 | .id = 1, | ||
316 | .dev = { | ||
317 | .dma_mask = &au1xxx_mmc_dmamask, | ||
318 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
319 | .platform_data = &au1xmmc_platdata[1], | ||
320 | }, | ||
321 | .num_resources = ARRAY_SIZE(au1200_mmc1_resources), | ||
322 | .resource = au1200_mmc1_resources, | ||
323 | }; | ||
324 | #endif /* #ifndef CONFIG_MIPS_DB1200 */ | ||
325 | #endif /* #ifdef CONFIG_SOC_AU1200 */ | ||
326 | |||
327 | /* All Alchemy demoboards with I2C have this #define in their headers */ | ||
328 | #ifdef SMBUS_PSC_BASE | ||
329 | static struct resource pbdb_smbus_resources[] = { | ||
330 | { | ||
331 | .start = SMBUS_PSC_BASE, | ||
332 | .end = SMBUS_PSC_BASE + 0xfff, | ||
333 | .flags = IORESOURCE_MEM, | ||
334 | }, | ||
335 | }; | ||
336 | |||
337 | static struct platform_device pbdb_smbus_device = { | ||
338 | .name = "au1xpsc_smbus", | ||
339 | .id = 0, /* bus number */ | ||
340 | .num_resources = ARRAY_SIZE(pbdb_smbus_resources), | ||
341 | .resource = pbdb_smbus_resources, | ||
342 | }; | ||
343 | #endif | ||
344 | |||
345 | /* Macro to help defining the Ethernet MAC resources */ | 192 | /* Macro to help defining the Ethernet MAC resources */ |
346 | #define MAC_RES_COUNT 4 /* MAC regs, MAC en, MAC INT, MACDMA regs */ | 193 | #define MAC_RES_COUNT 4 /* MAC regs, MAC en, MAC INT, MACDMA regs */ |
347 | #define MAC_RES(_base, _enable, _irq, _macdma) \ | 194 | #define MAC_RES(_base, _enable, _irq, _macdma) \ |
@@ -503,33 +350,15 @@ static void __init alchemy_setup_macs(int ctype) | |||
503 | } | 350 | } |
504 | } | 351 | } |
505 | 352 | ||
506 | static struct platform_device *au1xxx_platform_devices[] __initdata = { | ||
507 | #ifdef CONFIG_FB_AU1100 | ||
508 | &au1100_lcd_device, | ||
509 | #endif | ||
510 | #ifdef CONFIG_SOC_AU1200 | ||
511 | &au1200_lcd_device, | ||
512 | &au1200_mmc0_device, | ||
513 | #ifndef CONFIG_MIPS_DB1200 | ||
514 | &au1200_mmc1_device, | ||
515 | #endif | ||
516 | #endif | ||
517 | #ifdef SMBUS_PSC_BASE | ||
518 | &pbdb_smbus_device, | ||
519 | #endif | ||
520 | }; | ||
521 | |||
522 | static int __init au1xxx_platform_init(void) | 353 | static int __init au1xxx_platform_init(void) |
523 | { | 354 | { |
524 | int err, ctype = alchemy_get_cputype(); | 355 | int ctype = alchemy_get_cputype(); |
525 | 356 | ||
526 | alchemy_setup_uarts(ctype); | 357 | alchemy_setup_uarts(ctype); |
527 | alchemy_setup_macs(ctype); | 358 | alchemy_setup_macs(ctype); |
528 | alchemy_setup_usb(ctype); | 359 | alchemy_setup_usb(ctype); |
529 | 360 | ||
530 | err = platform_add_devices(au1xxx_platform_devices, | 361 | return 0; |
531 | ARRAY_SIZE(au1xxx_platform_devices)); | ||
532 | return err; | ||
533 | } | 362 | } |
534 | 363 | ||
535 | arch_initcall(au1xxx_platform_init); | 364 | arch_initcall(au1xxx_platform_init); |
diff --git a/arch/mips/alchemy/devboards/db1200/platform.c b/arch/mips/alchemy/devboards/db1200/platform.c index 1bc16f0e3651..aae08c1e876e 100644 --- a/arch/mips/alchemy/devboards/db1200/platform.c +++ b/arch/mips/alchemy/devboards/db1200/platform.c | |||
@@ -333,15 +333,77 @@ static struct led_classdev db1200_mmc_led = { | |||
333 | .brightness_set = db1200_mmcled_set, | 333 | .brightness_set = db1200_mmcled_set, |
334 | }; | 334 | }; |
335 | 335 | ||
336 | /* needed by arch/mips/alchemy/common/platform.c */ | 336 | static struct au1xmmc_platform_data db1200mmc_platdata = { |
337 | struct au1xmmc_platform_data au1xmmc_platdata[] = { | 337 | .cd_setup = db1200_mmc_cd_setup, |
338 | .set_power = db1200_mmc_set_power, | ||
339 | .card_inserted = db1200_mmc_card_inserted, | ||
340 | .card_readonly = db1200_mmc_card_readonly, | ||
341 | .led = &db1200_mmc_led, | ||
342 | }; | ||
343 | |||
344 | static struct resource au1200_mmc0_resources[] = { | ||
345 | [0] = { | ||
346 | .start = AU1100_SD0_PHYS_ADDR, | ||
347 | .end = AU1100_SD0_PHYS_ADDR + 0xfff, | ||
348 | .flags = IORESOURCE_MEM, | ||
349 | }, | ||
350 | [1] = { | ||
351 | .start = AU1200_SD_INT, | ||
352 | .end = AU1200_SD_INT, | ||
353 | .flags = IORESOURCE_IRQ, | ||
354 | }, | ||
355 | [2] = { | ||
356 | .start = AU1200_DSCR_CMD0_SDMS_TX0, | ||
357 | .end = AU1200_DSCR_CMD0_SDMS_TX0, | ||
358 | .flags = IORESOURCE_DMA, | ||
359 | }, | ||
360 | [3] = { | ||
361 | .start = AU1200_DSCR_CMD0_SDMS_RX0, | ||
362 | .end = AU1200_DSCR_CMD0_SDMS_RX0, | ||
363 | .flags = IORESOURCE_DMA, | ||
364 | } | ||
365 | }; | ||
366 | |||
367 | static u64 au1xxx_mmc_dmamask = DMA_BIT_MASK(32); | ||
368 | |||
369 | static struct platform_device db1200_mmc0_dev = { | ||
370 | .name = "au1xxx-mmc", | ||
371 | .id = 0, | ||
372 | .dev = { | ||
373 | .dma_mask = &au1xxx_mmc_dmamask, | ||
374 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
375 | .platform_data = &db1200mmc_platdata, | ||
376 | }, | ||
377 | .num_resources = ARRAY_SIZE(au1200_mmc0_resources), | ||
378 | .resource = au1200_mmc0_resources, | ||
379 | }; | ||
380 | |||
381 | /**********************************************************************/ | ||
382 | |||
383 | static struct resource au1200_lcd_res[] = { | ||
338 | [0] = { | 384 | [0] = { |
339 | .cd_setup = db1200_mmc_cd_setup, | 385 | .start = AU1200_LCD_PHYS_ADDR, |
340 | .set_power = db1200_mmc_set_power, | 386 | .end = AU1200_LCD_PHYS_ADDR + 0x800 - 1, |
341 | .card_inserted = db1200_mmc_card_inserted, | 387 | .flags = IORESOURCE_MEM, |
342 | .card_readonly = db1200_mmc_card_readonly, | 388 | }, |
343 | .led = &db1200_mmc_led, | 389 | [1] = { |
390 | .start = AU1200_LCD_INT, | ||
391 | .end = AU1200_LCD_INT, | ||
392 | .flags = IORESOURCE_IRQ, | ||
393 | } | ||
394 | }; | ||
395 | |||
396 | static u64 au1200_lcd_dmamask = DMA_BIT_MASK(32); | ||
397 | |||
398 | static struct platform_device au1200_lcd_dev = { | ||
399 | .name = "au1200-lcd", | ||
400 | .id = 0, | ||
401 | .dev = { | ||
402 | .dma_mask = &au1200_lcd_dmamask, | ||
403 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
344 | }, | 404 | }, |
405 | .num_resources = ARRAY_SIZE(au1200_lcd_res), | ||
406 | .resource = au1200_lcd_res, | ||
345 | }; | 407 | }; |
346 | 408 | ||
347 | /**********************************************************************/ | 409 | /**********************************************************************/ |
@@ -442,6 +504,8 @@ static struct platform_device db1200_stac_dev = { | |||
442 | static struct platform_device *db1200_devs[] __initdata = { | 504 | static struct platform_device *db1200_devs[] __initdata = { |
443 | NULL, /* PSC0, selected by S6.8 */ | 505 | NULL, /* PSC0, selected by S6.8 */ |
444 | &db1200_ide_dev, | 506 | &db1200_ide_dev, |
507 | &db1200_mmc0_dev, | ||
508 | &au1200_lcd_dev, | ||
445 | &db1200_eth_dev, | 509 | &db1200_eth_dev, |
446 | &db1200_rtc_dev, | 510 | &db1200_rtc_dev, |
447 | &db1200_nand_dev, | 511 | &db1200_nand_dev, |
diff --git a/arch/mips/alchemy/devboards/db1x00/board_setup.c b/arch/mips/alchemy/devboards/db1x00/board_setup.c index 2b2178f3f30b..7cd36e631f6c 100644 --- a/arch/mips/alchemy/devboards/db1x00/board_setup.c +++ b/arch/mips/alchemy/devboards/db1x00/board_setup.c | |||
@@ -134,9 +134,7 @@ void __init board_setup(void) | |||
134 | /* initialize board register space */ | 134 | /* initialize board register space */ |
135 | bcsr_init(bcsr1, bcsr2); | 135 | bcsr_init(bcsr1, bcsr2); |
136 | 136 | ||
137 | /* Not valid for Au1550 */ | 137 | #if defined(CONFIG_IRDA) && defined(CONFIG_AU1000_FIR) |
138 | #if defined(CONFIG_IRDA) && \ | ||
139 | (defined(CONFIG_SOC_AU1000) || defined(CONFIG_SOC_AU1100)) | ||
140 | { | 138 | { |
141 | u32 pin_func; | 139 | u32 pin_func; |
142 | 140 | ||
diff --git a/arch/mips/alchemy/devboards/db1x00/platform.c b/arch/mips/alchemy/devboards/db1x00/platform.c index 990367f8401d..8704865306a5 100644 --- a/arch/mips/alchemy/devboards/db1x00/platform.c +++ b/arch/mips/alchemy/devboards/db1x00/platform.c | |||
@@ -19,6 +19,7 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include <linux/init.h> | 21 | #include <linux/init.h> |
22 | #include <linux/dma-mapping.h> | ||
22 | #include <linux/platform_device.h> | 23 | #include <linux/platform_device.h> |
23 | 24 | ||
24 | #include <asm/mach-au1x00/au1000.h> | 25 | #include <asm/mach-au1x00/au1000.h> |
@@ -208,6 +209,34 @@ static int __init db15x0_pci_init(void) | |||
208 | arch_initcall(db15x0_pci_init); | 209 | arch_initcall(db15x0_pci_init); |
209 | #endif | 210 | #endif |
210 | 211 | ||
212 | #ifdef CONFIG_MIPS_DB1100 | ||
213 | static struct resource au1100_lcd_resources[] = { | ||
214 | [0] = { | ||
215 | .start = AU1100_LCD_PHYS_ADDR, | ||
216 | .end = AU1100_LCD_PHYS_ADDR + 0x800 - 1, | ||
217 | .flags = IORESOURCE_MEM, | ||
218 | }, | ||
219 | [1] = { | ||
220 | .start = AU1100_LCD_INT, | ||
221 | .end = AU1100_LCD_INT, | ||
222 | .flags = IORESOURCE_IRQ, | ||
223 | } | ||
224 | }; | ||
225 | |||
226 | static u64 au1100_lcd_dmamask = DMA_BIT_MASK(32); | ||
227 | |||
228 | static struct platform_device au1100_lcd_device = { | ||
229 | .name = "au1100-lcd", | ||
230 | .id = 0, | ||
231 | .dev = { | ||
232 | .dma_mask = &au1100_lcd_dmamask, | ||
233 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
234 | }, | ||
235 | .num_resources = ARRAY_SIZE(au1100_lcd_resources), | ||
236 | .resource = au1100_lcd_resources, | ||
237 | }; | ||
238 | #endif | ||
239 | |||
211 | static int __init db1xxx_dev_init(void) | 240 | static int __init db1xxx_dev_init(void) |
212 | { | 241 | { |
213 | #ifdef DB1XXX_HAS_PCMCIA | 242 | #ifdef DB1XXX_HAS_PCMCIA |
@@ -231,6 +260,9 @@ static int __init db1xxx_dev_init(void) | |||
231 | DB1XXX_PCMCIA_CARD1, DB1XXX_PCMCIA_CD1, | 260 | DB1XXX_PCMCIA_CARD1, DB1XXX_PCMCIA_CD1, |
232 | /*DB1XXX_PCMCIA_STSCHG1*/0, 0, 1); | 261 | /*DB1XXX_PCMCIA_STSCHG1*/0, 0, 1); |
233 | #endif | 262 | #endif |
263 | #ifdef CONFIG_MIPS_DB1100 | ||
264 | platform_device_register(&au1100_lcd_device); | ||
265 | #endif | ||
234 | db1x_register_norflash(BOARD_FLASH_SIZE, BOARD_FLASH_WIDTH, F_SWAPPED); | 266 | db1x_register_norflash(BOARD_FLASH_SIZE, BOARD_FLASH_WIDTH, F_SWAPPED); |
235 | return 0; | 267 | return 0; |
236 | } | 268 | } |
diff --git a/arch/mips/alchemy/devboards/pb1100/platform.c b/arch/mips/alchemy/devboards/pb1100/platform.c index 8a4e733f0f9f..9c57c01a68c4 100644 --- a/arch/mips/alchemy/devboards/pb1100/platform.c +++ b/arch/mips/alchemy/devboards/pb1100/platform.c | |||
@@ -19,12 +19,40 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include <linux/init.h> | 21 | #include <linux/init.h> |
22 | #include <linux/dma-mapping.h> | ||
23 | #include <linux/platform_device.h> | ||
22 | 24 | ||
23 | #include <asm/mach-au1x00/au1000.h> | 25 | #include <asm/mach-au1x00/au1000.h> |
24 | #include <asm/mach-db1x00/bcsr.h> | 26 | #include <asm/mach-db1x00/bcsr.h> |
25 | 27 | ||
26 | #include "../platform.h" | 28 | #include "../platform.h" |
27 | 29 | ||
30 | static struct resource au1100_lcd_resources[] = { | ||
31 | [0] = { | ||
32 | .start = AU1100_LCD_PHYS_ADDR, | ||
33 | .end = AU1100_LCD_PHYS_ADDR + 0x800 - 1, | ||
34 | .flags = IORESOURCE_MEM, | ||
35 | }, | ||
36 | [1] = { | ||
37 | .start = AU1100_LCD_INT, | ||
38 | .end = AU1100_LCD_INT, | ||
39 | .flags = IORESOURCE_IRQ, | ||
40 | } | ||
41 | }; | ||
42 | |||
43 | static u64 au1100_lcd_dmamask = DMA_BIT_MASK(32); | ||
44 | |||
45 | static struct platform_device au1100_lcd_device = { | ||
46 | .name = "au1100-lcd", | ||
47 | .id = 0, | ||
48 | .dev = { | ||
49 | .dma_mask = &au1100_lcd_dmamask, | ||
50 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
51 | }, | ||
52 | .num_resources = ARRAY_SIZE(au1100_lcd_resources), | ||
53 | .resource = au1100_lcd_resources, | ||
54 | }; | ||
55 | |||
28 | static int __init pb1100_dev_init(void) | 56 | static int __init pb1100_dev_init(void) |
29 | { | 57 | { |
30 | int swapped; | 58 | int swapped; |
@@ -42,6 +70,7 @@ static int __init pb1100_dev_init(void) | |||
42 | 70 | ||
43 | swapped = bcsr_read(BCSR_STATUS) & BCSR_STATUS_DB1000_SWAPBOOT; | 71 | swapped = bcsr_read(BCSR_STATUS) & BCSR_STATUS_DB1000_SWAPBOOT; |
44 | db1x_register_norflash(64 * 1024 * 1024, 4, swapped); | 72 | db1x_register_norflash(64 * 1024 * 1024, 4, swapped); |
73 | platform_device_register(&au1100_lcd_device); | ||
45 | 74 | ||
46 | return 0; | 75 | return 0; |
47 | } | 76 | } |
diff --git a/arch/mips/alchemy/devboards/pb1200/platform.c b/arch/mips/alchemy/devboards/pb1200/platform.c index d7915b054be7..54f7f7b0676e 100644 --- a/arch/mips/alchemy/devboards/pb1200/platform.c +++ b/arch/mips/alchemy/devboards/pb1200/platform.c | |||
@@ -90,7 +90,7 @@ static int pb1200mmc1_card_inserted(void *mmc_host) | |||
90 | return (bcsr_read(BCSR_SIGSTAT) & BCSR_INT_SD1INSERT) ? 1 : 0; | 90 | return (bcsr_read(BCSR_SIGSTAT) & BCSR_INT_SD1INSERT) ? 1 : 0; |
91 | } | 91 | } |
92 | 92 | ||
93 | const struct au1xmmc_platform_data au1xmmc_platdata[2] = { | 93 | static struct au1xmmc_platform_data pb1200mmc_platdata[2] = { |
94 | [0] = { | 94 | [0] = { |
95 | .set_power = pb1200mmc0_set_power, | 95 | .set_power = pb1200mmc0_set_power, |
96 | .card_inserted = pb1200mmc0_card_inserted, | 96 | .card_inserted = pb1200mmc0_card_inserted, |
@@ -107,6 +107,79 @@ const struct au1xmmc_platform_data au1xmmc_platdata[2] = { | |||
107 | }, | 107 | }, |
108 | }; | 108 | }; |
109 | 109 | ||
110 | static u64 au1xxx_mmc_dmamask = DMA_BIT_MASK(32); | ||
111 | |||
112 | static struct resource au1200_mmc0_res[] = { | ||
113 | [0] = { | ||
114 | .start = AU1100_SD0_PHYS_ADDR, | ||
115 | .end = AU1100_SD0_PHYS_ADDR + 0xfff, | ||
116 | .flags = IORESOURCE_MEM, | ||
117 | }, | ||
118 | [1] = { | ||
119 | .start = AU1200_SD_INT, | ||
120 | .end = AU1200_SD_INT, | ||
121 | .flags = IORESOURCE_IRQ, | ||
122 | }, | ||
123 | [2] = { | ||
124 | .start = AU1200_DSCR_CMD0_SDMS_TX0, | ||
125 | .end = AU1200_DSCR_CMD0_SDMS_TX0, | ||
126 | .flags = IORESOURCE_DMA, | ||
127 | }, | ||
128 | [3] = { | ||
129 | .start = AU1200_DSCR_CMD0_SDMS_RX0, | ||
130 | .end = AU1200_DSCR_CMD0_SDMS_RX0, | ||
131 | .flags = IORESOURCE_DMA, | ||
132 | } | ||
133 | }; | ||
134 | |||
135 | static struct platform_device pb1200_mmc0_dev = { | ||
136 | .name = "au1xxx-mmc", | ||
137 | .id = 0, | ||
138 | .dev = { | ||
139 | .dma_mask = &au1xxx_mmc_dmamask, | ||
140 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
141 | .platform_data = &pb1200mmc_platdata[0], | ||
142 | }, | ||
143 | .num_resources = ARRAY_SIZE(au1200_mmc0_res), | ||
144 | .resource = au1200_mmc0_res, | ||
145 | }; | ||
146 | |||
147 | static struct resource au1200_mmc1_res[] = { | ||
148 | [0] = { | ||
149 | .start = AU1100_SD1_PHYS_ADDR, | ||
150 | .end = AU1100_SD1_PHYS_ADDR + 0xfff, | ||
151 | .flags = IORESOURCE_MEM, | ||
152 | }, | ||
153 | [1] = { | ||
154 | .start = AU1200_SD_INT, | ||
155 | .end = AU1200_SD_INT, | ||
156 | .flags = IORESOURCE_IRQ, | ||
157 | }, | ||
158 | [2] = { | ||
159 | .start = AU1200_DSCR_CMD0_SDMS_TX1, | ||
160 | .end = AU1200_DSCR_CMD0_SDMS_TX1, | ||
161 | .flags = IORESOURCE_DMA, | ||
162 | }, | ||
163 | [3] = { | ||
164 | .start = AU1200_DSCR_CMD0_SDMS_RX1, | ||
165 | .end = AU1200_DSCR_CMD0_SDMS_RX1, | ||
166 | .flags = IORESOURCE_DMA, | ||
167 | } | ||
168 | }; | ||
169 | |||
170 | static struct platform_device pb1200_mmc1_dev = { | ||
171 | .name = "au1xxx-mmc", | ||
172 | .id = 1, | ||
173 | .dev = { | ||
174 | .dma_mask = &au1xxx_mmc_dmamask, | ||
175 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
176 | .platform_data = &pb1200mmc_platdata[1], | ||
177 | }, | ||
178 | .num_resources = ARRAY_SIZE(au1200_mmc1_res), | ||
179 | .resource = au1200_mmc1_res, | ||
180 | }; | ||
181 | |||
182 | |||
110 | static struct resource ide_resources[] = { | 183 | static struct resource ide_resources[] = { |
111 | [0] = { | 184 | [0] = { |
112 | .start = IDE_PHYS_ADDR, | 185 | .start = IDE_PHYS_ADDR, |
@@ -168,9 +241,69 @@ static struct platform_device smc91c111_device = { | |||
168 | .resource = smc91c111_resources | 241 | .resource = smc91c111_resources |
169 | }; | 242 | }; |
170 | 243 | ||
244 | static struct resource au1200_psc0_res[] = { | ||
245 | [0] = { | ||
246 | .start = AU1550_PSC0_PHYS_ADDR, | ||
247 | .end = AU1550_PSC0_PHYS_ADDR + 0xfff, | ||
248 | .flags = IORESOURCE_MEM, | ||
249 | }, | ||
250 | [1] = { | ||
251 | .start = AU1200_PSC0_INT, | ||
252 | .end = AU1200_PSC0_INT, | ||
253 | .flags = IORESOURCE_IRQ, | ||
254 | }, | ||
255 | [2] = { | ||
256 | .start = AU1200_DSCR_CMD0_PSC0_TX, | ||
257 | .end = AU1200_DSCR_CMD0_PSC0_TX, | ||
258 | .flags = IORESOURCE_DMA, | ||
259 | }, | ||
260 | [3] = { | ||
261 | .start = AU1200_DSCR_CMD0_PSC0_RX, | ||
262 | .end = AU1200_DSCR_CMD0_PSC0_RX, | ||
263 | .flags = IORESOURCE_DMA, | ||
264 | }, | ||
265 | }; | ||
266 | |||
267 | static struct platform_device pb1200_i2c_dev = { | ||
268 | .name = "au1xpsc_smbus", | ||
269 | .id = 0, /* bus number */ | ||
270 | .num_resources = ARRAY_SIZE(au1200_psc0_res), | ||
271 | .resource = au1200_psc0_res, | ||
272 | }; | ||
273 | |||
274 | static struct resource au1200_lcd_res[] = { | ||
275 | [0] = { | ||
276 | .start = AU1200_LCD_PHYS_ADDR, | ||
277 | .end = AU1200_LCD_PHYS_ADDR + 0x800 - 1, | ||
278 | .flags = IORESOURCE_MEM, | ||
279 | }, | ||
280 | [1] = { | ||
281 | .start = AU1200_LCD_INT, | ||
282 | .end = AU1200_LCD_INT, | ||
283 | .flags = IORESOURCE_IRQ, | ||
284 | } | ||
285 | }; | ||
286 | |||
287 | static u64 au1200_lcd_dmamask = DMA_BIT_MASK(32); | ||
288 | |||
289 | static struct platform_device au1200_lcd_dev = { | ||
290 | .name = "au1200-lcd", | ||
291 | .id = 0, | ||
292 | .dev = { | ||
293 | .dma_mask = &au1200_lcd_dmamask, | ||
294 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
295 | }, | ||
296 | .num_resources = ARRAY_SIZE(au1200_lcd_res), | ||
297 | .resource = au1200_lcd_res, | ||
298 | }; | ||
299 | |||
171 | static struct platform_device *board_platform_devices[] __initdata = { | 300 | static struct platform_device *board_platform_devices[] __initdata = { |
172 | &ide_device, | 301 | &ide_device, |
173 | &smc91c111_device | 302 | &smc91c111_device, |
303 | &pb1200_i2c_dev, | ||
304 | &pb1200_mmc0_dev, | ||
305 | &pb1200_mmc1_dev, | ||
306 | &au1200_lcd_dev, | ||
174 | }; | 307 | }; |
175 | 308 | ||
176 | static int __init board_register_devices(void) | 309 | static int __init board_register_devices(void) |
diff --git a/arch/mips/alchemy/devboards/pb1500/platform.c b/arch/mips/alchemy/devboards/pb1500/platform.c index 9f0b5a0b4795..1e52a01bac00 100644 --- a/arch/mips/alchemy/devboards/pb1500/platform.c +++ b/arch/mips/alchemy/devboards/pb1500/platform.c | |||
@@ -18,6 +18,7 @@ | |||
18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include <linux/dma-mapping.h> | ||
21 | #include <linux/init.h> | 22 | #include <linux/init.h> |
22 | #include <linux/platform_device.h> | 23 | #include <linux/platform_device.h> |
23 | #include <asm/mach-au1x00/au1000.h> | 24 | #include <asm/mach-au1x00/au1000.h> |
diff --git a/arch/mips/alchemy/devboards/pb1550/platform.c b/arch/mips/alchemy/devboards/pb1550/platform.c index 0c5711fa0734..a4604b8a349e 100644 --- a/arch/mips/alchemy/devboards/pb1550/platform.c +++ b/arch/mips/alchemy/devboards/pb1550/platform.c | |||
@@ -18,9 +18,11 @@ | |||
18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include <linux/dma-mapping.h> | ||
21 | #include <linux/init.h> | 22 | #include <linux/init.h> |
22 | #include <linux/platform_device.h> | 23 | #include <linux/platform_device.h> |
23 | #include <asm/mach-au1x00/au1000.h> | 24 | #include <asm/mach-au1x00/au1000.h> |
25 | #include <asm/mach-au1x00/au1xxx_dbdma.h> | ||
24 | #include <asm/mach-pb1x00/pb1550.h> | 26 | #include <asm/mach-pb1x00/pb1550.h> |
25 | #include <asm/mach-db1x00/bcsr.h> | 27 | #include <asm/mach-db1x00/bcsr.h> |
26 | 28 | ||
@@ -69,6 +71,36 @@ static struct platform_device pb1550_pci_host = { | |||
69 | .resource = alchemy_pci_host_res, | 71 | .resource = alchemy_pci_host_res, |
70 | }; | 72 | }; |
71 | 73 | ||
74 | static struct resource au1550_psc2_res[] = { | ||
75 | [0] = { | ||
76 | .start = AU1550_PSC2_PHYS_ADDR, | ||
77 | .end = AU1550_PSC2_PHYS_ADDR + 0xfff, | ||
78 | .flags = IORESOURCE_MEM, | ||
79 | }, | ||
80 | [1] = { | ||
81 | .start = AU1550_PSC2_INT, | ||
82 | .end = AU1550_PSC2_INT, | ||
83 | .flags = IORESOURCE_IRQ, | ||
84 | }, | ||
85 | [2] = { | ||
86 | .start = AU1550_DSCR_CMD0_PSC2_TX, | ||
87 | .end = AU1550_DSCR_CMD0_PSC2_TX, | ||
88 | .flags = IORESOURCE_DMA, | ||
89 | }, | ||
90 | [3] = { | ||
91 | .start = AU1550_DSCR_CMD0_PSC2_RX, | ||
92 | .end = AU1550_DSCR_CMD0_PSC2_RX, | ||
93 | .flags = IORESOURCE_DMA, | ||
94 | }, | ||
95 | }; | ||
96 | |||
97 | static struct platform_device pb1550_i2c_dev = { | ||
98 | .name = "au1xpsc_smbus", | ||
99 | .id = 0, /* bus number */ | ||
100 | .num_resources = ARRAY_SIZE(au1550_psc2_res), | ||
101 | .resource = au1550_psc2_res, | ||
102 | }; | ||
103 | |||
72 | static int __init pb1550_dev_init(void) | 104 | static int __init pb1550_dev_init(void) |
73 | { | 105 | { |
74 | int swapped; | 106 | int swapped; |
@@ -101,6 +133,7 @@ static int __init pb1550_dev_init(void) | |||
101 | swapped = bcsr_read(BCSR_STATUS) & BCSR_STATUS_PB1550_SWAPBOOT; | 133 | swapped = bcsr_read(BCSR_STATUS) & BCSR_STATUS_PB1550_SWAPBOOT; |
102 | db1x_register_norflash(128 * 1024 * 1024, 4, swapped); | 134 | db1x_register_norflash(128 * 1024 * 1024, 4, swapped); |
103 | platform_device_register(&pb1550_pci_host); | 135 | platform_device_register(&pb1550_pci_host); |
136 | platform_device_register(&pb1550_i2c_dev); | ||
104 | 137 | ||
105 | return 0; | 138 | return 0; |
106 | } | 139 | } |