9
0
Fork 0

ARM: ccmx51js: Add WP-pin definition for SDHC3

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Alexander Shiyan 2013-06-10 11:13:19 +04:00 committed by Sascha Hauer
parent c5440066d5
commit ea66559825
1 changed files with 6 additions and 4 deletions

View File

@ -29,7 +29,8 @@
#include "ccxmx51.h"
#define CCXMX51JS_USBHOST1_RESET IMX_GPIO_NR(3, 8)
#define CCXMX51JS_USBH1_RESET IMX_GPIO_NR(3, 8)
#define CCXMX51JS_SD3_WP IMX_GPIO_NR(3, 17)
static iomux_v3_cfg_t ccxmx51js_pads[] = {
/* SD1 */
@ -73,7 +74,8 @@ static struct esdhc_platform_data sdhc1_pdata = {
static struct esdhc_platform_data sdhc3_pdata = {
.cd_type = ESDHC_CD_NONE,
.wp_type = ESDHC_WP_NONE,
.wp_type = ESDHC_WP_GPIO,
.wp_gpio = CCXMX51JS_SD3_WP,
.caps = MMC_MODE_4BIT | MMC_MODE_8BIT,
};
@ -91,9 +93,9 @@ static int ccxmx51js_init(void)
imx51_add_mmc2(&sdhc3_pdata);
}
gpio_direction_output(CCXMX51JS_USBHOST1_RESET, 0);
gpio_direction_output(CCXMX51JS_USBH1_RESET, 0);
mdelay(10);
gpio_set_value(CCXMX51JS_USBHOST1_RESET, 1);
gpio_set_value(CCXMX51JS_USBH1_RESET, 1);
mdelay(10);
imx51_add_usbh1(&ccxmx51js_usbhost1_pdata);