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/devboards/db1200 | |
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/devboards/db1200')
-rw-r--r-- | arch/mips/alchemy/devboards/db1200/platform.c | 78 |
1 files changed, 71 insertions, 7 deletions
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, |