diff options
Diffstat (limited to 'arch/arm/mach-imx/mach-mx25_3ds.c')
-rw-r--r-- | arch/arm/mach-imx/mach-mx25_3ds.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/mach-mx25_3ds.c b/arch/arm/mach-imx/mach-mx25_3ds.c index 06da438282aa..58ea3fdf0911 100644 --- a/arch/arm/mach-imx/mach-mx25_3ds.c +++ b/arch/arm/mach-imx/mach-mx25_3ds.c | |||
@@ -29,7 +29,6 @@ | |||
29 | #include <linux/irq.h> | 29 | #include <linux/irq.h> |
30 | #include <linux/gpio.h> | 30 | #include <linux/gpio.h> |
31 | #include <linux/platform_device.h> | 31 | #include <linux/platform_device.h> |
32 | #include <linux/input/matrix_keypad.h> | ||
33 | #include <linux/usb/otg.h> | 32 | #include <linux/usb/otg.h> |
34 | 33 | ||
35 | #include <mach/hardware.h> | 34 | #include <mach/hardware.h> |
@@ -103,6 +102,8 @@ static iomux_v3_cfg_t mx25pdk_pads[] = { | |||
103 | MX25_PAD_SD1_DATA1__SD1_DATA1, | 102 | MX25_PAD_SD1_DATA1__SD1_DATA1, |
104 | MX25_PAD_SD1_DATA2__SD1_DATA2, | 103 | MX25_PAD_SD1_DATA2__SD1_DATA2, |
105 | MX25_PAD_SD1_DATA3__SD1_DATA3, | 104 | MX25_PAD_SD1_DATA3__SD1_DATA3, |
105 | MX25_PAD_A14__GPIO_2_0, /* WriteProtect */ | ||
106 | MX25_PAD_A15__GPIO_2_1, /* CardDetect */ | ||
106 | 107 | ||
107 | /* I2C1 */ | 108 | /* I2C1 */ |
108 | MX25_PAD_I2C1_CLK__I2C1_CLK, | 109 | MX25_PAD_I2C1_CLK__I2C1_CLK, |
@@ -208,6 +209,14 @@ static const struct imxi2c_platform_data mx25_3ds_i2c0_data __initconst = { | |||
208 | .bitrate = 100000, | 209 | .bitrate = 100000, |
209 | }; | 210 | }; |
210 | 211 | ||
212 | #define SD1_GPIO_WP IMX_GPIO_NR(2, 0) | ||
213 | #define SD1_GPIO_CD IMX_GPIO_NR(2, 1) | ||
214 | |||
215 | static const struct esdhc_platform_data mx25pdk_esdhc_pdata __initconst = { | ||
216 | .wp_gpio = SD1_GPIO_WP, | ||
217 | .cd_gpio = SD1_GPIO_CD, | ||
218 | }; | ||
219 | |||
211 | static void __init mx25pdk_init(void) | 220 | static void __init mx25pdk_init(void) |
212 | { | 221 | { |
213 | mxc_iomux_v3_setup_multiple_pads(mx25pdk_pads, | 222 | mxc_iomux_v3_setup_multiple_pads(mx25pdk_pads, |
@@ -225,7 +234,7 @@ static void __init mx25pdk_init(void) | |||
225 | imx25_add_fec(&mx25_fec_pdata); | 234 | imx25_add_fec(&mx25_fec_pdata); |
226 | imx25_add_imx_keypad(&mx25pdk_keymap_data); | 235 | imx25_add_imx_keypad(&mx25pdk_keymap_data); |
227 | 236 | ||
228 | imx25_add_sdhci_esdhc_imx(0, NULL); | 237 | imx25_add_sdhci_esdhc_imx(0, &mx25pdk_esdhc_pdata); |
229 | imx25_add_imx_i2c0(&mx25_3ds_i2c0_data); | 238 | imx25_add_imx_i2c0(&mx25_3ds_i2c0_data); |
230 | } | 239 | } |
231 | 240 | ||