diff options
Diffstat (limited to 'arch/arm/mach-mx3/eukrea_mbimxsd-baseboard.c')
| -rw-r--r-- | arch/arm/mach-mx3/eukrea_mbimxsd-baseboard.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/arch/arm/mach-mx3/eukrea_mbimxsd-baseboard.c b/arch/arm/mach-mx3/eukrea_mbimxsd-baseboard.c index 80761474c0f8..2e288b38b4ad 100644 --- a/arch/arm/mach-mx3/eukrea_mbimxsd-baseboard.c +++ b/arch/arm/mach-mx3/eukrea_mbimxsd-baseboard.c | |||
| @@ -43,6 +43,7 @@ | |||
| 43 | #include <mach/ipu.h> | 43 | #include <mach/ipu.h> |
| 44 | #include <mach/mx3fb.h> | 44 | #include <mach/mx3fb.h> |
| 45 | #include <mach/audmux.h> | 45 | #include <mach/audmux.h> |
| 46 | #include <mach/esdhc.h> | ||
| 46 | 47 | ||
| 47 | #include "devices-imx35.h" | 48 | #include "devices-imx35.h" |
| 48 | #include "devices.h" | 49 | #include "devices.h" |
| @@ -163,11 +164,14 @@ static iomux_v3_cfg_t eukrea_mbimxsd_pads[] = { | |||
| 163 | MX35_PAD_SD1_DATA1__ESDHC1_DAT1, | 164 | MX35_PAD_SD1_DATA1__ESDHC1_DAT1, |
| 164 | MX35_PAD_SD1_DATA2__ESDHC1_DAT2, | 165 | MX35_PAD_SD1_DATA2__ESDHC1_DAT2, |
| 165 | MX35_PAD_SD1_DATA3__ESDHC1_DAT3, | 166 | MX35_PAD_SD1_DATA3__ESDHC1_DAT3, |
| 167 | /* SD1 CD */ | ||
| 168 | MX35_PAD_LD18__GPIO3_24, | ||
| 166 | }; | 169 | }; |
| 167 | 170 | ||
| 168 | #define GPIO_LED1 IMX_GPIO_NR(3, 29) | 171 | #define GPIO_LED1 IMX_GPIO_NR(3, 29) |
| 169 | #define GPIO_SWITCH1 IMX_GPIO_NR(3, 25) | 172 | #define GPIO_SWITCH1 IMX_GPIO_NR(3, 25) |
| 170 | #define GPIO_LCDPWR (4) | 173 | #define GPIO_LCDPWR IMX_GPIO_NR(1, 4) |
| 174 | #define GPIO_SD1CD IMX_GPIO_NR(3, 24) | ||
| 171 | 175 | ||
| 172 | static void eukrea_mbimxsd_lcd_power_set(struct plat_lcd_data *pd, | 176 | static void eukrea_mbimxsd_lcd_power_set(struct plat_lcd_data *pd, |
| 173 | unsigned int power) | 177 | unsigned int power) |
| @@ -254,6 +258,11 @@ struct imx_ssi_platform_data eukrea_mbimxsd_ssi_pdata __initconst = { | |||
| 254 | .flags = IMX_SSI_SYN | IMX_SSI_NET | IMX_SSI_USE_I2S_SLAVE, | 258 | .flags = IMX_SSI_SYN | IMX_SSI_NET | IMX_SSI_USE_I2S_SLAVE, |
| 255 | }; | 259 | }; |
| 256 | 260 | ||
| 261 | static struct esdhc_platform_data sd1_pdata = { | ||
| 262 | .cd_gpio = GPIO_SD1CD, | ||
| 263 | .wp_gpio = -EINVAL, | ||
| 264 | }; | ||
| 265 | |||
| 257 | /* | 266 | /* |
| 258 | * system init for baseboard usage. Will be called by cpuimx35 init. | 267 | * system init for baseboard usage. Will be called by cpuimx35 init. |
| 259 | * | 268 | * |
| @@ -289,7 +298,7 @@ void __init eukrea_mbimxsd35_baseboard_init(void) | |||
| 289 | imx35_add_imx_ssi(0, &eukrea_mbimxsd_ssi_pdata); | 298 | imx35_add_imx_ssi(0, &eukrea_mbimxsd_ssi_pdata); |
| 290 | 299 | ||
| 291 | imx35_add_flexcan1(NULL); | 300 | imx35_add_flexcan1(NULL); |
| 292 | imx35_add_sdhci_esdhc_imx(0, NULL); | 301 | imx35_add_sdhci_esdhc_imx(0, &sd1_pdata); |
| 293 | 302 | ||
| 294 | gpio_request(GPIO_LED1, "LED1"); | 303 | gpio_request(GPIO_LED1, "LED1"); |
| 295 | gpio_direction_output(GPIO_LED1, 1); | 304 | gpio_direction_output(GPIO_LED1, 1); |
| @@ -301,7 +310,6 @@ void __init eukrea_mbimxsd35_baseboard_init(void) | |||
| 301 | 310 | ||
| 302 | gpio_request(GPIO_LCDPWR, "LCDPWR"); | 311 | gpio_request(GPIO_LCDPWR, "LCDPWR"); |
| 303 | gpio_direction_output(GPIO_LCDPWR, 1); | 312 | gpio_direction_output(GPIO_LCDPWR, 1); |
| 304 | gpio_free(GPIO_LCDPWR); | ||
| 305 | 313 | ||
| 306 | i2c_register_board_info(0, eukrea_mbimxsd_i2c_devices, | 314 | i2c_register_board_info(0, eukrea_mbimxsd_i2c_devices, |
| 307 | ARRAY_SIZE(eukrea_mbimxsd_i2c_devices)); | 315 | ARRAY_SIZE(eukrea_mbimxsd_i2c_devices)); |
