diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2015-02-23 21:07:07 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2015-03-05 11:24:26 -0500 |
commit | 84f11d5b1f2abc0e22895b7e12e037f0ec03caeb (patch) | |
tree | 409c9b17a69320632bad77f183a0e2b1ff7610e2 /arch | |
parent | f33c9d655893d8632460696bbbdee737cb315711 (diff) |
mmc: sh_mobile_sdhi: remove sh_mobile_sdhi_info
Current sh_mobile_sdhi's platform data is set via sh_mobile_sdhi_info
and it is just copied to tmio_mmc_data.
Now, tmio mmc platform data is specified via tmio_mmc_data.
This patch replace sh_mobile_sdhi_info to tmio_mmc_data
struct sh_mobile_sdhi_info { -> struct tmio_mmc_data {
int dma_slave_tx; -> void *chan_priv_tx;
int dma_slave_rx; -> void *chan_priv_rx;
unsigned long tmio_flags; -> unsigned long flags;
unsigned long tmio_caps; -> unsigned long capabilities;
unsigned long tmio_caps2; -> unsigned long capabilities2;
u32 tmio_ocr_mask; -> u32 ocr_mask;
unsigned int cd_gpio; -> unsigned int cd_gpio;
}; unsigned int hclk;
void (*set_pwr)(...);
void (*set_clk_div)(...);
};
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-shmobile/board-armadillo800eva.c | 20 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/board-bockw.c | 14 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/board-kzm9g.c | 20 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/board-marzen.c | 10 | ||||
-rw-r--r-- | arch/sh/boards/board-sh7757lcr.c | 9 | ||||
-rw-r--r-- | arch/sh/boards/mach-ap325rxa/setup.c | 9 | ||||
-rw-r--r-- | arch/sh/boards/mach-ecovec24/setup.c | 20 | ||||
-rw-r--r-- | arch/sh/boards/mach-kfr2r09/setup.c | 10 | ||||
-rw-r--r-- | arch/sh/boards/mach-migor/setup.c | 9 | ||||
-rw-r--r-- | arch/sh/boards/mach-se/7724/setup.c | 17 |
10 files changed, 71 insertions, 67 deletions
diff --git a/arch/arm/mach-shmobile/board-armadillo800eva.c b/arch/arm/mach-shmobile/board-armadillo800eva.c index 6d949f1c850b..7eac84687cb4 100644 --- a/arch/arm/mach-shmobile/board-armadillo800eva.c +++ b/arch/arm/mach-shmobile/board-armadillo800eva.c | |||
@@ -754,12 +754,12 @@ static struct platform_device vcc_sdhi1 = { | |||
754 | }; | 754 | }; |
755 | 755 | ||
756 | /* SDHI0 */ | 756 | /* SDHI0 */ |
757 | static struct sh_mobile_sdhi_info sdhi0_info = { | 757 | static struct tmio_mmc_data sdhi0_info = { |
758 | .dma_slave_tx = SHDMA_SLAVE_SDHI0_TX, | 758 | .chan_priv_tx = (void *)SHDMA_SLAVE_SDHI0_TX, |
759 | .dma_slave_rx = SHDMA_SLAVE_SDHI0_RX, | 759 | .chan_priv_rx = (void *)SHDMA_SLAVE_SDHI0_RX, |
760 | .tmio_caps = MMC_CAP_SD_HIGHSPEED | MMC_CAP_SDIO_IRQ | | 760 | .capabilities = MMC_CAP_SD_HIGHSPEED | MMC_CAP_SDIO_IRQ | |
761 | MMC_CAP_POWER_OFF_CARD, | 761 | MMC_CAP_POWER_OFF_CARD, |
762 | .tmio_flags = TMIO_MMC_HAS_IDLE_WAIT | TMIO_MMC_USE_GPIO_CD, | 762 | .flags = TMIO_MMC_HAS_IDLE_WAIT | TMIO_MMC_USE_GPIO_CD, |
763 | .cd_gpio = 167, | 763 | .cd_gpio = 167, |
764 | }; | 764 | }; |
765 | 765 | ||
@@ -796,12 +796,12 @@ static struct platform_device sdhi0_device = { | |||
796 | }; | 796 | }; |
797 | 797 | ||
798 | /* SDHI1 */ | 798 | /* SDHI1 */ |
799 | static struct sh_mobile_sdhi_info sdhi1_info = { | 799 | static struct tmio_mmc_data sdhi1_info = { |
800 | .dma_slave_tx = SHDMA_SLAVE_SDHI1_TX, | 800 | .chan_priv_tx = (void *)SHDMA_SLAVE_SDHI1_TX, |
801 | .dma_slave_rx = SHDMA_SLAVE_SDHI1_RX, | 801 | .chan_priv_rx = (void *)SHDMA_SLAVE_SDHI1_RX, |
802 | .tmio_caps = MMC_CAP_SD_HIGHSPEED | MMC_CAP_SDIO_IRQ | | 802 | .capabilities = MMC_CAP_SD_HIGHSPEED | MMC_CAP_SDIO_IRQ | |
803 | MMC_CAP_POWER_OFF_CARD, | 803 | MMC_CAP_POWER_OFF_CARD, |
804 | .tmio_flags = TMIO_MMC_HAS_IDLE_WAIT | TMIO_MMC_USE_GPIO_CD, | 804 | .flags = TMIO_MMC_HAS_IDLE_WAIT | TMIO_MMC_USE_GPIO_CD, |
805 | /* Port72 cannot generate IRQs, will be used in polling mode. */ | 805 | /* Port72 cannot generate IRQs, will be used in polling mode. */ |
806 | .cd_gpio = 72, | 806 | .cd_gpio = 72, |
807 | }; | 807 | }; |
diff --git a/arch/arm/mach-shmobile/board-bockw.c b/arch/arm/mach-shmobile/board-bockw.c index f27b5a833bf0..25558d1f417f 100644 --- a/arch/arm/mach-shmobile/board-bockw.c +++ b/arch/arm/mach-shmobile/board-bockw.c | |||
@@ -201,12 +201,12 @@ static struct rcar_phy_platform_data usb_phy_platform_data __initdata = | |||
201 | 201 | ||
202 | 202 | ||
203 | /* SDHI */ | 203 | /* SDHI */ |
204 | static struct sh_mobile_sdhi_info sdhi0_info __initdata = { | 204 | static struct tmio_mmc_data sdhi0_info __initdata = { |
205 | .dma_slave_tx = HPBDMA_SLAVE_SDHI0_TX, | 205 | .chan_priv_tx = (void *)HPBDMA_SLAVE_SDHI0_TX, |
206 | .dma_slave_rx = HPBDMA_SLAVE_SDHI0_RX, | 206 | .chan_priv_rx = (void *)HPBDMA_SLAVE_SDHI0_RX, |
207 | .tmio_caps = MMC_CAP_SD_HIGHSPEED, | 207 | .capabilities = MMC_CAP_SD_HIGHSPEED, |
208 | .tmio_ocr_mask = MMC_VDD_165_195 | MMC_VDD_32_33 | MMC_VDD_33_34, | 208 | .ocr_mask = MMC_VDD_165_195 | MMC_VDD_32_33 | MMC_VDD_33_34, |
209 | .tmio_flags = TMIO_MMC_HAS_IDLE_WAIT, | 209 | .flags = TMIO_MMC_HAS_IDLE_WAIT, |
210 | }; | 210 | }; |
211 | 211 | ||
212 | static struct resource sdhi0_resources[] __initdata = { | 212 | static struct resource sdhi0_resources[] __initdata = { |
@@ -683,7 +683,7 @@ static void __init bockw_init(void) | |||
683 | platform_device_register_resndata( | 683 | platform_device_register_resndata( |
684 | NULL, "sh_mobile_sdhi", 0, | 684 | NULL, "sh_mobile_sdhi", 0, |
685 | sdhi0_resources, ARRAY_SIZE(sdhi0_resources), | 685 | sdhi0_resources, ARRAY_SIZE(sdhi0_resources), |
686 | &sdhi0_info, sizeof(struct sh_mobile_sdhi_info)); | 686 | &sdhi0_info, sizeof(struct tmio_mmc_data)); |
687 | } | 687 | } |
688 | 688 | ||
689 | /* for Audio */ | 689 | /* for Audio */ |
diff --git a/arch/arm/mach-shmobile/board-kzm9g.c b/arch/arm/mach-shmobile/board-kzm9g.c index 7c9b63bdde9f..260d8319fd82 100644 --- a/arch/arm/mach-shmobile/board-kzm9g.c +++ b/arch/arm/mach-shmobile/board-kzm9g.c | |||
@@ -442,11 +442,11 @@ static struct platform_device vcc_sdhi2 = { | |||
442 | }; | 442 | }; |
443 | 443 | ||
444 | /* SDHI */ | 444 | /* SDHI */ |
445 | static struct sh_mobile_sdhi_info sdhi0_info = { | 445 | static struct tmio_mmc_data sdhi0_info = { |
446 | .dma_slave_tx = SHDMA_SLAVE_SDHI0_TX, | 446 | .chan_priv_tx = (void *)SHDMA_SLAVE_SDHI0_TX, |
447 | .dma_slave_rx = SHDMA_SLAVE_SDHI0_RX, | 447 | .chan_priv_rx = (void *)SHDMA_SLAVE_SDHI0_RX, |
448 | .tmio_flags = TMIO_MMC_HAS_IDLE_WAIT, | 448 | .flags = TMIO_MMC_HAS_IDLE_WAIT, |
449 | .tmio_caps = MMC_CAP_SD_HIGHSPEED | MMC_CAP_SDIO_IRQ | | 449 | .capabilities = MMC_CAP_SD_HIGHSPEED | MMC_CAP_SDIO_IRQ | |
450 | MMC_CAP_POWER_OFF_CARD, | 450 | MMC_CAP_POWER_OFF_CARD, |
451 | }; | 451 | }; |
452 | 452 | ||
@@ -484,13 +484,13 @@ static struct platform_device sdhi0_device = { | |||
484 | }; | 484 | }; |
485 | 485 | ||
486 | /* Micro SD */ | 486 | /* Micro SD */ |
487 | static struct sh_mobile_sdhi_info sdhi2_info = { | 487 | static struct tmio_mmc_data sdhi2_info = { |
488 | .dma_slave_tx = SHDMA_SLAVE_SDHI2_TX, | 488 | .chan_priv_tx = (void *)SHDMA_SLAVE_SDHI2_TX, |
489 | .dma_slave_rx = SHDMA_SLAVE_SDHI2_RX, | 489 | .chan_priv_rx = (void *)SHDMA_SLAVE_SDHI2_RX, |
490 | .tmio_flags = TMIO_MMC_HAS_IDLE_WAIT | | 490 | .flags = TMIO_MMC_HAS_IDLE_WAIT | |
491 | TMIO_MMC_USE_GPIO_CD | | 491 | TMIO_MMC_USE_GPIO_CD | |
492 | TMIO_MMC_WRPROTECT_DISABLE, | 492 | TMIO_MMC_WRPROTECT_DISABLE, |
493 | .tmio_caps = MMC_CAP_SD_HIGHSPEED | MMC_CAP_POWER_OFF_CARD, | 493 | .capabilities = MMC_CAP_SD_HIGHSPEED | MMC_CAP_POWER_OFF_CARD, |
494 | .cd_gpio = 13, | 494 | .cd_gpio = 13, |
495 | }; | 495 | }; |
496 | 496 | ||
diff --git a/arch/arm/mach-shmobile/board-marzen.c b/arch/arm/mach-shmobile/board-marzen.c index 598f704f76ae..51db288f192a 100644 --- a/arch/arm/mach-shmobile/board-marzen.c +++ b/arch/arm/mach-shmobile/board-marzen.c | |||
@@ -122,11 +122,11 @@ static struct resource sdhi0_resources[] = { | |||
122 | }, | 122 | }, |
123 | }; | 123 | }; |
124 | 124 | ||
125 | static struct sh_mobile_sdhi_info sdhi0_platform_data = { | 125 | static struct tmio_mmc_data sdhi0_platform_data = { |
126 | .dma_slave_tx = HPBDMA_SLAVE_SDHI0_TX, | 126 | .chan_priv_tx = (void *)HPBDMA_SLAVE_SDHI0_TX, |
127 | .dma_slave_rx = HPBDMA_SLAVE_SDHI0_RX, | 127 | .chan_priv_rx = (void *)HPBDMA_SLAVE_SDHI0_RX, |
128 | .tmio_flags = TMIO_MMC_WRPROTECT_DISABLE | TMIO_MMC_HAS_IDLE_WAIT, | 128 | .flags = TMIO_MMC_WRPROTECT_DISABLE | TMIO_MMC_HAS_IDLE_WAIT, |
129 | .tmio_caps = MMC_CAP_SD_HIGHSPEED, | 129 | .capabilities = MMC_CAP_SD_HIGHSPEED, |
130 | }; | 130 | }; |
131 | 131 | ||
132 | static struct platform_device sdhi0_device = { | 132 | static struct platform_device sdhi0_device = { |
diff --git a/arch/sh/boards/board-sh7757lcr.c b/arch/sh/boards/board-sh7757lcr.c index 669df51a82e3..324599bfad14 100644 --- a/arch/sh/boards/board-sh7757lcr.c +++ b/arch/sh/boards/board-sh7757lcr.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/spi/spi.h> | 17 | #include <linux/spi/spi.h> |
18 | #include <linux/spi/flash.h> | 18 | #include <linux/spi/flash.h> |
19 | #include <linux/io.h> | 19 | #include <linux/io.h> |
20 | #include <linux/mfd/tmio.h> | ||
20 | #include <linux/mmc/host.h> | 21 | #include <linux/mmc/host.h> |
21 | #include <linux/mmc/sh_mmcif.h> | 22 | #include <linux/mmc/sh_mmcif.h> |
22 | #include <linux/mmc/sh_mobile_sdhi.h> | 23 | #include <linux/mmc/sh_mobile_sdhi.h> |
@@ -243,10 +244,10 @@ static struct platform_device sh_mmcif_device = { | |||
243 | }; | 244 | }; |
244 | 245 | ||
245 | /* SDHI0 */ | 246 | /* SDHI0 */ |
246 | static struct sh_mobile_sdhi_info sdhi_info = { | 247 | static struct tmio_mmc_data sdhi_info = { |
247 | .dma_slave_tx = SHDMA_SLAVE_SDHI_TX, | 248 | .chan_priv_tx = (void *)SHDMA_SLAVE_SDHI_TX, |
248 | .dma_slave_rx = SHDMA_SLAVE_SDHI_RX, | 249 | .chan_priv_rx = (void *)SHDMA_SLAVE_SDHI_RX, |
249 | .tmio_caps = MMC_CAP_SD_HIGHSPEED, | 250 | .capabilities = MMC_CAP_SD_HIGHSPEED, |
250 | }; | 251 | }; |
251 | 252 | ||
252 | static struct resource sdhi_resources[] = { | 253 | static struct resource sdhi_resources[] = { |
diff --git a/arch/sh/boards/mach-ap325rxa/setup.c b/arch/sh/boards/mach-ap325rxa/setup.c index d4b01d4cc102..cbd2a9f02a91 100644 --- a/arch/sh/boards/mach-ap325rxa/setup.c +++ b/arch/sh/boards/mach-ap325rxa/setup.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/mmc/sh_mobile_sdhi.h> | 18 | #include <linux/mmc/sh_mobile_sdhi.h> |
19 | #include <linux/mtd/physmap.h> | 19 | #include <linux/mtd/physmap.h> |
20 | #include <linux/mtd/sh_flctl.h> | 20 | #include <linux/mtd/sh_flctl.h> |
21 | #include <linux/mfd/tmio.h> | ||
21 | #include <linux/delay.h> | 22 | #include <linux/delay.h> |
22 | #include <linux/i2c.h> | 23 | #include <linux/i2c.h> |
23 | #include <linux/regulator/fixed.h> | 24 | #include <linux/regulator/fixed.h> |
@@ -447,8 +448,8 @@ static struct resource sdhi0_cn3_resources[] = { | |||
447 | }, | 448 | }, |
448 | }; | 449 | }; |
449 | 450 | ||
450 | static struct sh_mobile_sdhi_info sdhi0_cn3_data = { | 451 | static struct tmio_mmc_data sdhi0_cn3_data = { |
451 | .tmio_caps = MMC_CAP_SDIO_IRQ, | 452 | .capabilities = MMC_CAP_SDIO_IRQ, |
452 | }; | 453 | }; |
453 | 454 | ||
454 | static struct platform_device sdhi0_cn3_device = { | 455 | static struct platform_device sdhi0_cn3_device = { |
@@ -474,8 +475,8 @@ static struct resource sdhi1_cn7_resources[] = { | |||
474 | }, | 475 | }, |
475 | }; | 476 | }; |
476 | 477 | ||
477 | static struct sh_mobile_sdhi_info sdhi1_cn7_data = { | 478 | static struct tmio_mmc_data sdhi1_cn7_data = { |
478 | .tmio_caps = MMC_CAP_SDIO_IRQ, | 479 | .capabilities = MMC_CAP_SDIO_IRQ, |
479 | }; | 480 | }; |
480 | 481 | ||
481 | static struct platform_device sdhi1_cn7_device = { | 482 | static struct platform_device sdhi1_cn7_device = { |
diff --git a/arch/sh/boards/mach-ecovec24/setup.c b/arch/sh/boards/mach-ecovec24/setup.c index 0d3049244cd3..d531791f06ff 100644 --- a/arch/sh/boards/mach-ecovec24/setup.c +++ b/arch/sh/boards/mach-ecovec24/setup.c | |||
@@ -601,12 +601,12 @@ static struct platform_device sdhi0_power = { | |||
601 | }, | 601 | }, |
602 | }; | 602 | }; |
603 | 603 | ||
604 | static struct sh_mobile_sdhi_info sdhi0_info = { | 604 | static struct tmio_mmc_data sdhi0_info = { |
605 | .dma_slave_tx = SHDMA_SLAVE_SDHI0_TX, | 605 | .chan_priv_tx = (void *)SHDMA_SLAVE_SDHI0_TX, |
606 | .dma_slave_rx = SHDMA_SLAVE_SDHI0_RX, | 606 | .chan_priv_rx = (void *)SHDMA_SLAVE_SDHI0_RX, |
607 | .tmio_caps = MMC_CAP_SDIO_IRQ | MMC_CAP_POWER_OFF_CARD | | 607 | .capabilities = MMC_CAP_SDIO_IRQ | MMC_CAP_POWER_OFF_CARD | |
608 | MMC_CAP_NEEDS_POLL, | 608 | MMC_CAP_NEEDS_POLL, |
609 | .tmio_flags = TMIO_MMC_USE_GPIO_CD, | 609 | .flags = TMIO_MMC_USE_GPIO_CD, |
610 | .cd_gpio = GPIO_PTY7, | 610 | .cd_gpio = GPIO_PTY7, |
611 | }; | 611 | }; |
612 | 612 | ||
@@ -635,12 +635,12 @@ static struct platform_device sdhi0_device = { | |||
635 | 635 | ||
636 | #if !defined(CONFIG_MMC_SH_MMCIF) && !defined(CONFIG_MMC_SH_MMCIF_MODULE) | 636 | #if !defined(CONFIG_MMC_SH_MMCIF) && !defined(CONFIG_MMC_SH_MMCIF_MODULE) |
637 | /* SDHI1 */ | 637 | /* SDHI1 */ |
638 | static struct sh_mobile_sdhi_info sdhi1_info = { | 638 | static struct tmio_mmc_data sdhi1_info = { |
639 | .dma_slave_tx = SHDMA_SLAVE_SDHI1_TX, | 639 | .chan_priv_tx = (void *)SHDMA_SLAVE_SDHI1_TX, |
640 | .dma_slave_rx = SHDMA_SLAVE_SDHI1_RX, | 640 | .chan_priv_rx = (void *)SHDMA_SLAVE_SDHI1_RX, |
641 | .tmio_caps = MMC_CAP_SDIO_IRQ | MMC_CAP_POWER_OFF_CARD | | 641 | .capabilities = MMC_CAP_SDIO_IRQ | MMC_CAP_POWER_OFF_CARD | |
642 | MMC_CAP_NEEDS_POLL, | 642 | MMC_CAP_NEEDS_POLL, |
643 | .tmio_flags = TMIO_MMC_USE_GPIO_CD, | 643 | .flags = TMIO_MMC_USE_GPIO_CD, |
644 | .cd_gpio = GPIO_PTW7, | 644 | .cd_gpio = GPIO_PTW7, |
645 | }; | 645 | }; |
646 | 646 | ||
diff --git a/arch/sh/boards/mach-kfr2r09/setup.c b/arch/sh/boards/mach-kfr2r09/setup.c index 1df4398f8375..7d997cec09c5 100644 --- a/arch/sh/boards/mach-kfr2r09/setup.c +++ b/arch/sh/boards/mach-kfr2r09/setup.c | |||
@@ -373,11 +373,11 @@ static struct resource kfr2r09_sh_sdhi0_resources[] = { | |||
373 | }, | 373 | }, |
374 | }; | 374 | }; |
375 | 375 | ||
376 | static struct sh_mobile_sdhi_info sh7724_sdhi0_data = { | 376 | static struct tmio_mmc_data sh7724_sdhi0_data = { |
377 | .dma_slave_tx = SHDMA_SLAVE_SDHI0_TX, | 377 | .chan_priv_tx = (void *)SHDMA_SLAVE_SDHI0_TX, |
378 | .dma_slave_rx = SHDMA_SLAVE_SDHI0_RX, | 378 | .chan_priv_rx = (void *)SHDMA_SLAVE_SDHI0_RX, |
379 | .tmio_flags = TMIO_MMC_WRPROTECT_DISABLE, | 379 | .flags = TMIO_MMC_WRPROTECT_DISABLE, |
380 | .tmio_caps = MMC_CAP_SDIO_IRQ, | 380 | .capabilities = MMC_CAP_SDIO_IRQ, |
381 | }; | 381 | }; |
382 | 382 | ||
383 | static struct platform_device kfr2r09_sh_sdhi0_device = { | 383 | static struct platform_device kfr2r09_sh_sdhi0_device = { |
diff --git a/arch/sh/boards/mach-migor/setup.c b/arch/sh/boards/mach-migor/setup.c index 8b73194ed2ce..29b7c0dcfc51 100644 --- a/arch/sh/boards/mach-migor/setup.c +++ b/arch/sh/boards/mach-migor/setup.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/mmc/host.h> | 15 | #include <linux/mmc/host.h> |
16 | #include <linux/mmc/sh_mobile_sdhi.h> | 16 | #include <linux/mmc/sh_mobile_sdhi.h> |
17 | #include <linux/mtd/physmap.h> | 17 | #include <linux/mtd/physmap.h> |
18 | #include <linux/mfd/tmio.h> | ||
18 | #include <linux/mtd/nand.h> | 19 | #include <linux/mtd/nand.h> |
19 | #include <linux/i2c.h> | 20 | #include <linux/i2c.h> |
20 | #include <linux/regulator/fixed.h> | 21 | #include <linux/regulator/fixed.h> |
@@ -408,10 +409,10 @@ static struct resource sdhi_cn9_resources[] = { | |||
408 | }, | 409 | }, |
409 | }; | 410 | }; |
410 | 411 | ||
411 | static struct sh_mobile_sdhi_info sh7724_sdhi_data = { | 412 | static struct tmio_mmc_data sh7724_sdhi_data = { |
412 | .dma_slave_tx = SHDMA_SLAVE_SDHI0_TX, | 413 | .chan_priv_tx = (void *)SHDMA_SLAVE_SDHI0_TX, |
413 | .dma_slave_rx = SHDMA_SLAVE_SDHI0_RX, | 414 | .chan_priv_rx = (void *)SHDMA_SLAVE_SDHI0_RX, |
414 | .tmio_caps = MMC_CAP_SDIO_IRQ, | 415 | .capabilities = MMC_CAP_SDIO_IRQ, |
415 | }; | 416 | }; |
416 | 417 | ||
417 | static struct platform_device sdhi_cn9_device = { | 418 | static struct platform_device sdhi_cn9_device = { |
diff --git a/arch/sh/boards/mach-se/7724/setup.c b/arch/sh/boards/mach-se/7724/setup.c index 1162bc6945a3..4f6635a075f2 100644 --- a/arch/sh/boards/mach-se/7724/setup.c +++ b/arch/sh/boards/mach-se/7724/setup.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/platform_device.h> | 16 | #include <linux/platform_device.h> |
17 | #include <linux/mmc/host.h> | 17 | #include <linux/mmc/host.h> |
18 | #include <linux/mmc/sh_mobile_sdhi.h> | 18 | #include <linux/mmc/sh_mobile_sdhi.h> |
19 | #include <linux/mfd/tmio.h> | ||
19 | #include <linux/mtd/physmap.h> | 20 | #include <linux/mtd/physmap.h> |
20 | #include <linux/delay.h> | 21 | #include <linux/delay.h> |
21 | #include <linux/regulator/fixed.h> | 22 | #include <linux/regulator/fixed.h> |
@@ -468,10 +469,10 @@ static struct resource sdhi0_cn7_resources[] = { | |||
468 | }, | 469 | }, |
469 | }; | 470 | }; |
470 | 471 | ||
471 | static struct sh_mobile_sdhi_info sh7724_sdhi0_data = { | 472 | static struct tmio_mmc_data sh7724_sdhi0_data = { |
472 | .dma_slave_tx = SHDMA_SLAVE_SDHI0_TX, | 473 | .chan_priv_tx = (void *)SHDMA_SLAVE_SDHI0_TX, |
473 | .dma_slave_rx = SHDMA_SLAVE_SDHI0_RX, | 474 | .chan_priv_rx = (void *)SHDMA_SLAVE_SDHI0_RX, |
474 | .tmio_caps = MMC_CAP_SDIO_IRQ, | 475 | .capabilities = MMC_CAP_SDIO_IRQ, |
475 | }; | 476 | }; |
476 | 477 | ||
477 | static struct platform_device sdhi0_cn7_device = { | 478 | static struct platform_device sdhi0_cn7_device = { |
@@ -497,10 +498,10 @@ static struct resource sdhi1_cn8_resources[] = { | |||
497 | }, | 498 | }, |
498 | }; | 499 | }; |
499 | 500 | ||
500 | static struct sh_mobile_sdhi_info sh7724_sdhi1_data = { | 501 | static struct tmio_mmc_data sh7724_sdhi1_data = { |
501 | .dma_slave_tx = SHDMA_SLAVE_SDHI1_TX, | 502 | .chan_priv_tx = (void *)SHDMA_SLAVE_SDHI1_TX, |
502 | .dma_slave_rx = SHDMA_SLAVE_SDHI1_RX, | 503 | .chan_priv_rx = (void *)SHDMA_SLAVE_SDHI1_RX, |
503 | .tmio_caps = MMC_CAP_SDIO_IRQ, | 504 | .capabilities = MMC_CAP_SDIO_IRQ, |
504 | }; | 505 | }; |
505 | 506 | ||
506 | static struct platform_device sdhi1_cn8_device = { | 507 | static struct platform_device sdhi1_cn8_device = { |