aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2011-04-15 14:03:17 -0400
committerPaul Mundt <lethal@linux-sh.org>2011-04-18 05:44:48 -0400
commit5744c88111f076c98f389eae28ec2ff206ba2e14 (patch)
tree9211597c30dc4518446dd9816c2dc575b38b3321 /arch
parent52c10ad22b7e317960b4d411c9a9ddeaf3d5ae39 (diff)
sh: fix SD / MMC configuration dependencies on ecovec
Update CONFIG_MMC_TMIO to the new CONFIG_MMC_SDHI symbol and fix MMCIF to also function in modular builds for ecovec. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Acked-by: Simon Horman <horms@verge.net.au> Cc: Magnus Damm <damm@opensource.se> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/sh/boards/mach-ecovec24/setup.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/arch/sh/boards/mach-ecovec24/setup.c b/arch/sh/boards/mach-ecovec24/setup.c
index 86a0d565aded..bb13d0e1b964 100644
--- a/arch/sh/boards/mach-ecovec24/setup.c
+++ b/arch/sh/boards/mach-ecovec24/setup.c
@@ -482,7 +482,7 @@ static struct i2c_board_info ts_i2c_clients = {
482 .irq = IRQ0, 482 .irq = IRQ0,
483}; 483};
484 484
485#if defined(CONFIG_MMC_TMIO) || defined(CONFIG_MMC_TMIO_MODULE) 485#if defined(CONFIG_MMC_SDHI) || defined(CONFIG_MMC_SDHI_MODULE)
486/* SDHI0 */ 486/* SDHI0 */
487static void sdhi0_set_pwr(struct platform_device *pdev, int state) 487static void sdhi0_set_pwr(struct platform_device *pdev, int state)
488{ 488{
@@ -522,7 +522,7 @@ static struct platform_device sdhi0_device = {
522 }, 522 },
523}; 523};
524 524
525#if !defined(CONFIG_MMC_SH_MMCIF) 525#if !defined(CONFIG_MMC_SH_MMCIF) && !defined(CONFIG_MMC_SH_MMCIF_MODULE)
526/* SDHI1 */ 526/* SDHI1 */
527static void sdhi1_set_pwr(struct platform_device *pdev, int state) 527static void sdhi1_set_pwr(struct platform_device *pdev, int state)
528{ 528{
@@ -836,7 +836,7 @@ static struct platform_device vou_device = {
836 }, 836 },
837}; 837};
838 838
839#if defined(CONFIG_MMC_SH_MMCIF) 839#if defined(CONFIG_MMC_SH_MMCIF) || defined(CONFIG_MMC_SH_MMCIF_MODULE)
840/* SH_MMCIF */ 840/* SH_MMCIF */
841static void mmcif_set_pwr(struct platform_device *pdev, int state) 841static void mmcif_set_pwr(struct platform_device *pdev, int state)
842{ 842{
@@ -898,9 +898,9 @@ static struct platform_device *ecovec_devices[] __initdata = {
898 &ceu0_device, 898 &ceu0_device,
899 &ceu1_device, 899 &ceu1_device,
900 &keysc_device, 900 &keysc_device,
901#if defined(CONFIG_MMC_TMIO) || defined(CONFIG_MMC_TMIO_MODULE) 901#if defined(CONFIG_MMC_SDHI) || defined(CONFIG_MMC_SDHI_MODULE)
902 &sdhi0_device, 902 &sdhi0_device,
903#if !defined(CONFIG_MMC_SH_MMCIF) 903#if !defined(CONFIG_MMC_SH_MMCIF) && !defined(CONFIG_MMC_SH_MMCIF_MODULE)
904 &sdhi1_device, 904 &sdhi1_device,
905#endif 905#endif
906#else 906#else
@@ -912,7 +912,7 @@ static struct platform_device *ecovec_devices[] __initdata = {
912 &fsi_device, 912 &fsi_device,
913 &irda_device, 913 &irda_device,
914 &vou_device, 914 &vou_device,
915#if defined(CONFIG_MMC_SH_MMCIF) 915#if defined(CONFIG_MMC_SH_MMCIF) || defined(CONFIG_MMC_SH_MMCIF_MODULE)
916 &sh_mmcif_device, 916 &sh_mmcif_device,
917#endif 917#endif
918}; 918};
@@ -1180,7 +1180,7 @@ static int __init arch_setup(void)
1180 gpio_direction_input(GPIO_PTR5); 1180 gpio_direction_input(GPIO_PTR5);
1181 gpio_direction_input(GPIO_PTR6); 1181 gpio_direction_input(GPIO_PTR6);
1182 1182
1183#if defined(CONFIG_MMC_TMIO) || defined(CONFIG_MMC_TMIO_MODULE) 1183#if defined(CONFIG_MMC_SDHI) || defined(CONFIG_MMC_SDHI_MODULE)
1184 /* enable SDHI0 on CN11 (needs DS2.4 set to ON) */ 1184 /* enable SDHI0 on CN11 (needs DS2.4 set to ON) */
1185 gpio_request(GPIO_FN_SDHI0CD, NULL); 1185 gpio_request(GPIO_FN_SDHI0CD, NULL);
1186 gpio_request(GPIO_FN_SDHI0WP, NULL); 1186 gpio_request(GPIO_FN_SDHI0WP, NULL);
@@ -1193,7 +1193,7 @@ static int __init arch_setup(void)
1193 gpio_request(GPIO_PTB6, NULL); 1193 gpio_request(GPIO_PTB6, NULL);
1194 gpio_direction_output(GPIO_PTB6, 0); 1194 gpio_direction_output(GPIO_PTB6, 0);
1195 1195
1196#if !defined(CONFIG_MMC_SH_MMCIF) 1196#if !defined(CONFIG_MMC_SH_MMCIF) && !defined(CONFIG_MMC_SH_MMCIF_MODULE)
1197 /* enable SDHI1 on CN12 (needs DS2.6,7 set to ON,OFF) */ 1197 /* enable SDHI1 on CN12 (needs DS2.6,7 set to ON,OFF) */
1198 gpio_request(GPIO_FN_SDHI1CD, NULL); 1198 gpio_request(GPIO_FN_SDHI1CD, NULL);
1199 gpio_request(GPIO_FN_SDHI1WP, NULL); 1199 gpio_request(GPIO_FN_SDHI1WP, NULL);
@@ -1284,7 +1284,7 @@ static int __init arch_setup(void)
1284 gpio_request(GPIO_PTU5, NULL); 1284 gpio_request(GPIO_PTU5, NULL);
1285 gpio_direction_output(GPIO_PTU5, 0); 1285 gpio_direction_output(GPIO_PTU5, 0);
1286 1286
1287#if defined(CONFIG_MMC_SH_MMCIF) 1287#if defined(CONFIG_MMC_SH_MMCIF) || defined(CONFIG_MMC_SH_MMCIF_MODULE)
1288 /* enable MMCIF (needs DS2.6,7 set to OFF,ON) */ 1288 /* enable MMCIF (needs DS2.6,7 set to OFF,ON) */
1289 gpio_request(GPIO_FN_MMC_D7, NULL); 1289 gpio_request(GPIO_FN_MMC_D7, NULL);
1290 gpio_request(GPIO_FN_MMC_D6, NULL); 1290 gpio_request(GPIO_FN_MMC_D6, NULL);