diff options
author | Eric Bénard <eric@eukrea.com> | 2010-10-02 11:15:27 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-10-11 09:22:12 -0400 |
commit | 438a4d66a561fe3d6dceeb9c7f30d23f52cb371b (patch) | |
tree | 277f5647ad4c71eef00221836c854345ad9cba52 | |
parent | 9a545943a378ec1b3a9819de4b189ce5e822a6af (diff) |
eukrea_mbimxsd for cpuimx35: add CAN & SDCard support
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | arch/arm/mach-mx3/Kconfig | 2 | ||||
-rw-r--r-- | arch/arm/mach-mx3/eukrea_mbimxsd-baseboard.c | 13 |
2 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/mach-mx3/Kconfig b/arch/arm/mach-mx3/Kconfig index 84ff177cba7a..096fd33f8ab9 100644 --- a/arch/arm/mach-mx3/Kconfig +++ b/arch/arm/mach-mx3/Kconfig | |||
@@ -164,6 +164,8 @@ config MACH_EUKREA_CPUIMX35 | |||
164 | select IMX_HAVE_PLATFORM_IMX_UART | 164 | select IMX_HAVE_PLATFORM_IMX_UART |
165 | select IMX_HAVE_PLATFORM_IMX_I2C | 165 | select IMX_HAVE_PLATFORM_IMX_I2C |
166 | select IMX_HAVE_PLATFORM_MXC_NAND | 166 | select IMX_HAVE_PLATFORM_MXC_NAND |
167 | select IMX_HAVE_PLATFORM_FLEXCAN | ||
168 | select IMX_HAVE_PLATFORM_ESDHC | ||
167 | select MXC_ULPI if USB_ULPI | 169 | select MXC_ULPI if USB_ULPI |
168 | help | 170 | help |
169 | Include support for Eukrea CPUIMX35 platform. This includes | 171 | Include support for Eukrea CPUIMX35 platform. This includes |
diff --git a/arch/arm/mach-mx3/eukrea_mbimxsd-baseboard.c b/arch/arm/mach-mx3/eukrea_mbimxsd-baseboard.c index cb667b6f17ae..886959906fbc 100644 --- a/arch/arm/mach-mx3/eukrea_mbimxsd-baseboard.c +++ b/arch/arm/mach-mx3/eukrea_mbimxsd-baseboard.c | |||
@@ -119,6 +119,16 @@ static struct pad_desc eukrea_mbimxsd_pads[] = { | |||
119 | MX35_PAD_STXD4__AUDMUX_AUD4_TXD, | 119 | MX35_PAD_STXD4__AUDMUX_AUD4_TXD, |
120 | MX35_PAD_SRXD4__AUDMUX_AUD4_RXD, | 120 | MX35_PAD_SRXD4__AUDMUX_AUD4_RXD, |
121 | MX35_PAD_SCK4__AUDMUX_AUD4_TXC, | 121 | MX35_PAD_SCK4__AUDMUX_AUD4_TXC, |
122 | /* CAN2 */ | ||
123 | MX35_PAD_TX5_RX0__CAN2_TXCAN, | ||
124 | MX35_PAD_TX4_RX1__CAN2_RXCAN, | ||
125 | /* SDCARD */ | ||
126 | MX35_PAD_SD1_CMD__ESDHC1_CMD, | ||
127 | MX35_PAD_SD1_CLK__ESDHC1_CLK, | ||
128 | MX35_PAD_SD1_DATA0__ESDHC1_DAT0, | ||
129 | MX35_PAD_SD1_DATA1__ESDHC1_DAT1, | ||
130 | MX35_PAD_SD1_DATA2__ESDHC1_DAT2, | ||
131 | MX35_PAD_SD1_DATA3__ESDHC1_DAT3, | ||
122 | }; | 132 | }; |
123 | 133 | ||
124 | #define GPIO_LED1 (2 * 32 + 29) | 134 | #define GPIO_LED1 (2 * 32 + 29) |
@@ -244,6 +254,9 @@ void __init eukrea_mbimxsd35_baseboard_init(void) | |||
244 | 254 | ||
245 | imx35_add_imx_ssi(0, &eukrea_mbimxsd_ssi_pdata); | 255 | imx35_add_imx_ssi(0, &eukrea_mbimxsd_ssi_pdata); |
246 | 256 | ||
257 | imx35_add_flexcan1(NULL); | ||
258 | imx35_add_esdhc0(NULL); | ||
259 | |||
247 | gpio_request(GPIO_LED1, "LED1"); | 260 | gpio_request(GPIO_LED1, "LED1"); |
248 | gpio_direction_output(GPIO_LED1, 1); | 261 | gpio_direction_output(GPIO_LED1, 1); |
249 | gpio_free(GPIO_LED1); | 262 | gpio_free(GPIO_LED1); |