ARM:mach-mx5/board-mx51_babbage: Add CD and WP GPIOs
Signed-off-by: Andre Silva <andre.silva@freescale.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Родитель
1a636932f8
Коммит
6ecdc11bf8
|
@ -41,6 +41,10 @@
|
|||
#define BABBAGE_POWER_KEY IMX_GPIO_NR(2, 21)
|
||||
#define BABBAGE_ECSPI1_CS0 IMX_GPIO_NR(4, 24)
|
||||
#define BABBAGE_ECSPI1_CS1 IMX_GPIO_NR(4, 25)
|
||||
#define BABBAGE_SD1_CD IMX_GPIO_NR(1, 0)
|
||||
#define BABBAGE_SD1_WP IMX_GPIO_NR(1, 1)
|
||||
#define BABBAGE_SD2_CD IMX_GPIO_NR(1, 6)
|
||||
#define BABBAGE_SD2_WP IMX_GPIO_NR(1, 5)
|
||||
|
||||
/* USB_CTRL_1 */
|
||||
#define MX51_USB_CTRL_1_OFFSET 0x10
|
||||
|
@ -142,6 +146,8 @@ static iomux_v3_cfg_t mx51babbage_pads[] = {
|
|||
MX51_PAD_SD1_DATA1__SD1_DATA1,
|
||||
MX51_PAD_SD1_DATA2__SD1_DATA2,
|
||||
MX51_PAD_SD1_DATA3__SD1_DATA3,
|
||||
MX51_PAD_GPIO1_0__GPIO1_0,
|
||||
MX51_PAD_GPIO1_1__GPIO1_1,
|
||||
|
||||
/* SD 2 */
|
||||
MX51_PAD_SD2_CMD__SD2_CMD,
|
||||
|
@ -150,6 +156,8 @@ static iomux_v3_cfg_t mx51babbage_pads[] = {
|
|||
MX51_PAD_SD2_DATA1__SD2_DATA1,
|
||||
MX51_PAD_SD2_DATA2__SD2_DATA2,
|
||||
MX51_PAD_SD2_DATA3__SD2_DATA3,
|
||||
MX51_PAD_GPIO1_6__GPIO1_6,
|
||||
MX51_PAD_GPIO1_5__GPIO1_5,
|
||||
|
||||
/* eCSPI1 */
|
||||
MX51_PAD_CSPI1_MISO__ECSPI1_MISO,
|
||||
|
@ -331,6 +339,16 @@ static const struct spi_imx_master mx51_babbage_spi_pdata __initconst = {
|
|||
.num_chipselect = ARRAY_SIZE(mx51_babbage_spi_cs),
|
||||
};
|
||||
|
||||
static const struct esdhc_platform_data mx51_babbage_sd1_data __initconst = {
|
||||
.cd_gpio = BABBAGE_SD1_CD,
|
||||
.wp_gpio = BABBAGE_SD1_WP,
|
||||
};
|
||||
|
||||
static const struct esdhc_platform_data mx51_babbage_sd2_data __initconst = {
|
||||
.cd_gpio = BABBAGE_SD2_CD,
|
||||
.wp_gpio = BABBAGE_SD2_WP,
|
||||
};
|
||||
|
||||
/*
|
||||
* Board specific initialization.
|
||||
*/
|
||||
|
@ -376,8 +394,8 @@ static void __init mx51_babbage_init(void)
|
|||
mxc_iomux_v3_setup_pad(usbh1stp);
|
||||
babbage_usbhub_reset();
|
||||
|
||||
imx51_add_sdhci_esdhc_imx(0, NULL);
|
||||
imx51_add_sdhci_esdhc_imx(1, NULL);
|
||||
imx51_add_sdhci_esdhc_imx(0, &mx51_babbage_sd1_data);
|
||||
imx51_add_sdhci_esdhc_imx(1, &mx51_babbage_sd2_data);
|
||||
|
||||
spi_register_board_info(mx51_babbage_spi_board_info,
|
||||
ARRAY_SIZE(mx51_babbage_spi_board_info));
|
||||
|
|
Загрузка…
Ссылка в новой задаче