diff options
author | Zhangfei Gao <zhangfei.gao@marvell.com> | 2011-06-08 05:41:59 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2011-07-20 17:20:50 -0400 |
commit | 6f984f3b26f08297b7d4c6af9c8f09de603f40a8 (patch) | |
tree | 7f9fb6927c5fd20e1e4d5a704017c57bd3aa2e97 /arch/arm/mach-mmp | |
parent | 9f5d71e4a78a02f80f0bfbbbe84555d5a5468774 (diff) |
mmc: update mmp2 mmc resources in arch/arm
Update MMP2 platform code to "sdhci-pxav3", following the driver rename.
Signed-off-by: Zhangfei Gao <zhangfei.gao@marvell.com>
Acked-by: Philip Rakity <prakity@marvell.com>
Acked-by: Mark F. Brown <mark.brown314@gmail.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'arch/arm/mach-mmp')
-rw-r--r-- | arch/arm/mach-mmp/brownstone.c | 10 | ||||
-rw-r--r-- | arch/arm/mach-mmp/jasper.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-mmp/mmp2.c | 16 |
3 files changed, 18 insertions, 10 deletions
diff --git a/arch/arm/mach-mmp/brownstone.c b/arch/arm/mach-mmp/brownstone.c index 7bb78fd5a2a6..c79162a50f28 100644 --- a/arch/arm/mach-mmp/brownstone.c +++ b/arch/arm/mach-mmp/brownstone.c | |||
@@ -177,9 +177,16 @@ static struct i2c_board_info brownstone_twsi1_info[] = { | |||
177 | }; | 177 | }; |
178 | 178 | ||
179 | static struct sdhci_pxa_platdata mmp2_sdh_platdata_mmc0 = { | 179 | static struct sdhci_pxa_platdata mmp2_sdh_platdata_mmc0 = { |
180 | .max_speed = 25000000, | 180 | .clk_delay_cycles = 0x1f, |
181 | }; | 181 | }; |
182 | 182 | ||
183 | static struct sdhci_pxa_platdata mmp2_sdh_platdata_mmc2 = { | ||
184 | .clk_delay_cycles = 0x1f, | ||
185 | .flags = PXA_FLAG_CARD_PERMANENT | ||
186 | | PXA_FLAG_SD_8_BIT_CAPABLE_SLOT, | ||
187 | }; | ||
188 | |||
189 | |||
183 | static void __init brownstone_init(void) | 190 | static void __init brownstone_init(void) |
184 | { | 191 | { |
185 | mfp_config(ARRAY_AND_SIZE(brownstone_pin_config)); | 192 | mfp_config(ARRAY_AND_SIZE(brownstone_pin_config)); |
@@ -189,6 +196,7 @@ static void __init brownstone_init(void) | |||
189 | mmp2_add_uart(3); | 196 | mmp2_add_uart(3); |
190 | mmp2_add_twsi(1, NULL, ARRAY_AND_SIZE(brownstone_twsi1_info)); | 197 | mmp2_add_twsi(1, NULL, ARRAY_AND_SIZE(brownstone_twsi1_info)); |
191 | mmp2_add_sdhost(0, &mmp2_sdh_platdata_mmc0); /* SD/MMC */ | 198 | mmp2_add_sdhost(0, &mmp2_sdh_platdata_mmc0); /* SD/MMC */ |
199 | mmp2_add_sdhost(2, &mmp2_sdh_platdata_mmc2); /* eMMC */ | ||
192 | 200 | ||
193 | /* enable 5v regulator */ | 201 | /* enable 5v regulator */ |
194 | platform_device_register(&brownstone_v_5vp_device); | 202 | platform_device_register(&brownstone_v_5vp_device); |
diff --git a/arch/arm/mach-mmp/jasper.c b/arch/arm/mach-mmp/jasper.c index 24172a0aad59..5d6421d63254 100644 --- a/arch/arm/mach-mmp/jasper.c +++ b/arch/arm/mach-mmp/jasper.c | |||
@@ -154,7 +154,7 @@ static struct i2c_board_info jasper_twsi1_info[] = { | |||
154 | }; | 154 | }; |
155 | 155 | ||
156 | static struct sdhci_pxa_platdata mmp2_sdh_platdata_mmc0 = { | 156 | static struct sdhci_pxa_platdata mmp2_sdh_platdata_mmc0 = { |
157 | .max_speed = 25000000, | 157 | .clk_delay_cycles = 0x1f, |
158 | }; | 158 | }; |
159 | 159 | ||
160 | static void __init jasper_init(void) | 160 | static void __init jasper_init(void) |
diff --git a/arch/arm/mach-mmp/mmp2.c b/arch/arm/mach-mmp/mmp2.c index 8e6c3ac7f7c1..079c18861d5c 100644 --- a/arch/arm/mach-mmp/mmp2.c +++ b/arch/arm/mach-mmp/mmp2.c | |||
@@ -168,10 +168,10 @@ static struct clk_lookup mmp2_clkregs[] = { | |||
168 | INIT_CLKREG(&clk_twsi5, "pxa2xx-i2c.4", NULL), | 168 | INIT_CLKREG(&clk_twsi5, "pxa2xx-i2c.4", NULL), |
169 | INIT_CLKREG(&clk_twsi6, "pxa2xx-i2c.5", NULL), | 169 | INIT_CLKREG(&clk_twsi6, "pxa2xx-i2c.5", NULL), |
170 | INIT_CLKREG(&clk_nand, "pxa3xx-nand", NULL), | 170 | INIT_CLKREG(&clk_nand, "pxa3xx-nand", NULL), |
171 | INIT_CLKREG(&clk_sdh0, "sdhci-pxa.0", "PXA-SDHCLK"), | 171 | INIT_CLKREG(&clk_sdh0, "sdhci-pxav3.0", "PXA-SDHCLK"), |
172 | INIT_CLKREG(&clk_sdh1, "sdhci-pxa.1", "PXA-SDHCLK"), | 172 | INIT_CLKREG(&clk_sdh1, "sdhci-pxav3.1", "PXA-SDHCLK"), |
173 | INIT_CLKREG(&clk_sdh2, "sdhci-pxa.2", "PXA-SDHCLK"), | 173 | INIT_CLKREG(&clk_sdh2, "sdhci-pxav3.2", "PXA-SDHCLK"), |
174 | INIT_CLKREG(&clk_sdh3, "sdhci-pxa.3", "PXA-SDHCLK"), | 174 | INIT_CLKREG(&clk_sdh3, "sdhci-pxav3.3", "PXA-SDHCLK"), |
175 | }; | 175 | }; |
176 | 176 | ||
177 | static int __init mmp2_init(void) | 177 | static int __init mmp2_init(void) |
@@ -222,8 +222,8 @@ MMP2_DEVICE(twsi4, "pxa2xx-i2c", 3, TWSI4, 0xd4033000, 0x70); | |||
222 | MMP2_DEVICE(twsi5, "pxa2xx-i2c", 4, TWSI5, 0xd4033800, 0x70); | 222 | MMP2_DEVICE(twsi5, "pxa2xx-i2c", 4, TWSI5, 0xd4033800, 0x70); |
223 | MMP2_DEVICE(twsi6, "pxa2xx-i2c", 5, TWSI6, 0xd4034000, 0x70); | 223 | MMP2_DEVICE(twsi6, "pxa2xx-i2c", 5, TWSI6, 0xd4034000, 0x70); |
224 | MMP2_DEVICE(nand, "pxa3xx-nand", -1, NAND, 0xd4283000, 0x100, 28, 29); | 224 | MMP2_DEVICE(nand, "pxa3xx-nand", -1, NAND, 0xd4283000, 0x100, 28, 29); |
225 | MMP2_DEVICE(sdh0, "sdhci-pxa", 0, MMC, 0xd4280000, 0x120); | 225 | MMP2_DEVICE(sdh0, "sdhci-pxav3", 0, MMC, 0xd4280000, 0x120); |
226 | MMP2_DEVICE(sdh1, "sdhci-pxa", 1, MMC2, 0xd4280800, 0x120); | 226 | MMP2_DEVICE(sdh1, "sdhci-pxav3", 1, MMC2, 0xd4280800, 0x120); |
227 | MMP2_DEVICE(sdh2, "sdhci-pxa", 2, MMC3, 0xd4281000, 0x120); | 227 | MMP2_DEVICE(sdh2, "sdhci-pxav3", 2, MMC3, 0xd4281000, 0x120); |
228 | MMP2_DEVICE(sdh3, "sdhci-pxa", 3, MMC4, 0xd4281800, 0x120); | 228 | MMP2_DEVICE(sdh3, "sdhci-pxav3", 3, MMC4, 0xd4281800, 0x120); |
229 | 229 | ||