diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2011-06-29 21:24:26 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2011-07-26 21:31:27 -0400 |
commit | 57ed3314e0bfa90ea63c63b8d3038814e9d98a20 (patch) | |
tree | ce82f977d851c5cb2b0d6c28da0ef7270f3be848 /arch/arm/mach-mx5 | |
parent | 842afc02cf04f0474392b4c5efd808996a804fa6 (diff) |
mmc: sdhci-esdhc-imx: get rid of the uses of cpu_is_mx()
The patch removes all the uses of cpu_is_mx(). Instead, it utilizes
platform_device_id to distinguish the esdhc differences among SoCs.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Cc: Wolfram Sang <w.sang@pengutronix.de>
Cc: Chris Ball <cjb@laptop.org>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'arch/arm/mach-mx5')
-rw-r--r-- | arch/arm/mach-mx5/clock-mx51-mx53.c | 16 | ||||
-rw-r--r-- | arch/arm/mach-mx5/mx51_efika.c | 4 |
2 files changed, 10 insertions, 10 deletions
diff --git a/arch/arm/mach-mx5/clock-mx51-mx53.c b/arch/arm/mach-mx5/clock-mx51-mx53.c index 76e450ba8589..e3d3eb55e3f8 100644 --- a/arch/arm/mach-mx5/clock-mx51-mx53.c +++ b/arch/arm/mach-mx5/clock-mx51-mx53.c | |||
@@ -1456,10 +1456,10 @@ static struct clk_lookup mx51_lookups[] = { | |||
1456 | _REGISTER_CLOCK("imx51-ecspi.1", NULL, ecspi2_clk) | 1456 | _REGISTER_CLOCK("imx51-ecspi.1", NULL, ecspi2_clk) |
1457 | /* i.mx51 has the i.mx35 type cspi */ | 1457 | /* i.mx51 has the i.mx35 type cspi */ |
1458 | _REGISTER_CLOCK("imx35-cspi.0", NULL, cspi_clk) | 1458 | _REGISTER_CLOCK("imx35-cspi.0", NULL, cspi_clk) |
1459 | _REGISTER_CLOCK("sdhci-esdhc-imx.0", NULL, esdhc1_clk) | 1459 | _REGISTER_CLOCK("sdhci-esdhc-imx51.0", NULL, esdhc1_clk) |
1460 | _REGISTER_CLOCK("sdhci-esdhc-imx.1", NULL, esdhc2_clk) | 1460 | _REGISTER_CLOCK("sdhci-esdhc-imx51.1", NULL, esdhc2_clk) |
1461 | _REGISTER_CLOCK("sdhci-esdhc-imx.2", NULL, esdhc3_clk) | 1461 | _REGISTER_CLOCK("sdhci-esdhc-imx51.2", NULL, esdhc3_clk) |
1462 | _REGISTER_CLOCK("sdhci-esdhc-imx.3", NULL, esdhc4_clk) | 1462 | _REGISTER_CLOCK("sdhci-esdhc-imx51.3", NULL, esdhc4_clk) |
1463 | _REGISTER_CLOCK(NULL, "cpu_clk", cpu_clk) | 1463 | _REGISTER_CLOCK(NULL, "cpu_clk", cpu_clk) |
1464 | _REGISTER_CLOCK(NULL, "iim_clk", iim_clk) | 1464 | _REGISTER_CLOCK(NULL, "iim_clk", iim_clk) |
1465 | _REGISTER_CLOCK("imx2-wdt.0", NULL, dummy_clk) | 1465 | _REGISTER_CLOCK("imx2-wdt.0", NULL, dummy_clk) |
@@ -1485,15 +1485,15 @@ static struct clk_lookup mx53_lookups[] = { | |||
1485 | _REGISTER_CLOCK("imx-i2c.0", NULL, i2c1_clk) | 1485 | _REGISTER_CLOCK("imx-i2c.0", NULL, i2c1_clk) |
1486 | _REGISTER_CLOCK("imx-i2c.1", NULL, i2c2_clk) | 1486 | _REGISTER_CLOCK("imx-i2c.1", NULL, i2c2_clk) |
1487 | _REGISTER_CLOCK("imx-i2c.2", NULL, i2c3_mx53_clk) | 1487 | _REGISTER_CLOCK("imx-i2c.2", NULL, i2c3_mx53_clk) |
1488 | _REGISTER_CLOCK("sdhci-esdhc-imx.0", NULL, esdhc1_clk) | ||
1489 | _REGISTER_CLOCK("sdhci-esdhc-imx.1", NULL, esdhc2_mx53_clk) | ||
1490 | _REGISTER_CLOCK("sdhci-esdhc-imx.2", NULL, esdhc3_mx53_clk) | ||
1491 | _REGISTER_CLOCK("sdhci-esdhc-imx.3", NULL, esdhc4_mx53_clk) | ||
1492 | /* i.mx53 has the i.mx51 type ecspi */ | 1488 | /* i.mx53 has the i.mx51 type ecspi */ |
1493 | _REGISTER_CLOCK("imx51-ecspi.0", NULL, ecspi1_clk) | 1489 | _REGISTER_CLOCK("imx51-ecspi.0", NULL, ecspi1_clk) |
1494 | _REGISTER_CLOCK("imx51-ecspi.1", NULL, ecspi2_clk) | 1490 | _REGISTER_CLOCK("imx51-ecspi.1", NULL, ecspi2_clk) |
1495 | /* i.mx53 has the i.mx25 type cspi */ | 1491 | /* i.mx53 has the i.mx25 type cspi */ |
1496 | _REGISTER_CLOCK("imx35-cspi.0", NULL, cspi_clk) | 1492 | _REGISTER_CLOCK("imx35-cspi.0", NULL, cspi_clk) |
1493 | _REGISTER_CLOCK("sdhci-esdhc-imx53.0", NULL, esdhc1_clk) | ||
1494 | _REGISTER_CLOCK("sdhci-esdhc-imx53.1", NULL, esdhc2_mx53_clk) | ||
1495 | _REGISTER_CLOCK("sdhci-esdhc-imx53.2", NULL, esdhc3_mx53_clk) | ||
1496 | _REGISTER_CLOCK("sdhci-esdhc-imx53.3", NULL, esdhc4_mx53_clk) | ||
1497 | _REGISTER_CLOCK("imx2-wdt.0", NULL, dummy_clk) | 1497 | _REGISTER_CLOCK("imx2-wdt.0", NULL, dummy_clk) |
1498 | _REGISTER_CLOCK("imx2-wdt.1", NULL, dummy_clk) | 1498 | _REGISTER_CLOCK("imx2-wdt.1", NULL, dummy_clk) |
1499 | _REGISTER_CLOCK("imx-sdma", NULL, sdma_clk) | 1499 | _REGISTER_CLOCK("imx-sdma", NULL, sdma_clk) |
diff --git a/arch/arm/mach-mx5/mx51_efika.c b/arch/arm/mach-mx5/mx51_efika.c index 56739c23aca7..4435e03cea5d 100644 --- a/arch/arm/mach-mx5/mx51_efika.c +++ b/arch/arm/mach-mx5/mx51_efika.c | |||
@@ -260,8 +260,8 @@ static struct regulator_consumer_supply vvideo_consumers[] = { | |||
260 | }; | 260 | }; |
261 | 261 | ||
262 | static struct regulator_consumer_supply vsd_consumers[] = { | 262 | static struct regulator_consumer_supply vsd_consumers[] = { |
263 | REGULATOR_SUPPLY("vmmc", "sdhci-esdhc-imx.0"), | 263 | REGULATOR_SUPPLY("vmmc", "sdhci-esdhc-imx51.0"), |
264 | REGULATOR_SUPPLY("vmmc", "sdhci-esdhc-imx.1"), | 264 | REGULATOR_SUPPLY("vmmc", "sdhci-esdhc-imx51.1"), |
265 | }; | 265 | }; |
266 | 266 | ||
267 | static struct regulator_consumer_supply pwgt1_consumer[] = { | 267 | static struct regulator_consumer_supply pwgt1_consumer[] = { |