diff options
| author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-03-28 13:52:44 -0400 |
|---|---|---|
| committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-03-28 13:52:44 -0400 |
| commit | 5f183860d5007ec76ea36bfa6c36d66e37f0dbcf (patch) | |
| tree | f3f593fa2d1e01c2a6a4d9da9786ad1e12dfc2a0 | |
| parent | 938c0ace3ffb8cc2073a6d2e68fa7a6ab7cb471e (diff) | |
| parent | a10aabd5e313ec6481569be20d120191692b4ca6 (diff) | |
Merge branch 'for-rmk' of git://git.pengutronix.de/git/imx/linux-2.6 into devel-stable
37 files changed, 600 insertions, 34 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 93d595a7477a..4f8f3a4e4e0d 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
| @@ -365,6 +365,7 @@ config ARCH_MXC | |||
| 365 | select GENERIC_CLOCKEVENTS | 365 | select GENERIC_CLOCKEVENTS |
| 366 | select ARCH_REQUIRE_GPIOLIB | 366 | select ARCH_REQUIRE_GPIOLIB |
| 367 | select CLKDEV_LOOKUP | 367 | select CLKDEV_LOOKUP |
| 368 | select HAVE_SCHED_CLOCK | ||
| 368 | help | 369 | help |
| 369 | Support for Freescale MXC/iMX-based family of processors | 370 | Support for Freescale MXC/iMX-based family of processors |
| 370 | 371 | ||
diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index 5eec099e0c72..56b930a13443 100644 --- a/arch/arm/mach-imx/Kconfig +++ b/arch/arm/mach-imx/Kconfig | |||
| @@ -255,6 +255,7 @@ config MACH_IMX27_VISSTRIM_M10 | |||
| 255 | bool "Vista Silicon i.MX27 Visstrim_m10" | 255 | bool "Vista Silicon i.MX27 Visstrim_m10" |
| 256 | select SOC_IMX27 | 256 | select SOC_IMX27 |
| 257 | select IMX_HAVE_PLATFORM_IMX_I2C | 257 | select IMX_HAVE_PLATFORM_IMX_I2C |
| 258 | select IMX_HAVE_PLATFORM_IMX_SSI | ||
| 258 | select IMX_HAVE_PLATFORM_IMX_UART | 259 | select IMX_HAVE_PLATFORM_IMX_UART |
| 259 | select IMX_HAVE_PLATFORM_MXC_MMC | 260 | select IMX_HAVE_PLATFORM_MXC_MMC |
| 260 | select IMX_HAVE_PLATFORM_MXC_EHCI | 261 | select IMX_HAVE_PLATFORM_MXC_EHCI |
diff --git a/arch/arm/mach-imx/eukrea_mbimxsd25-baseboard.c b/arch/arm/mach-imx/eukrea_mbimxsd25-baseboard.c index cb705c28de02..6269053505f7 100644 --- a/arch/arm/mach-imx/eukrea_mbimxsd25-baseboard.c +++ b/arch/arm/mach-imx/eukrea_mbimxsd25-baseboard.c | |||
| @@ -34,6 +34,7 @@ | |||
| 34 | #include <mach/mx25.h> | 34 | #include <mach/mx25.h> |
| 35 | #include <mach/imx-uart.h> | 35 | #include <mach/imx-uart.h> |
| 36 | #include <mach/audmux.h> | 36 | #include <mach/audmux.h> |
| 37 | #include <mach/esdhc.h> | ||
| 37 | 38 | ||
| 38 | #include "devices-imx25.h" | 39 | #include "devices-imx25.h" |
| 39 | 40 | ||
| @@ -242,6 +243,11 @@ struct imx_ssi_platform_data eukrea_mbimxsd_ssi_pdata __initconst = { | |||
| 242 | .flags = IMX_SSI_SYN | IMX_SSI_NET | IMX_SSI_USE_I2S_SLAVE, | 243 | .flags = IMX_SSI_SYN | IMX_SSI_NET | IMX_SSI_USE_I2S_SLAVE, |
| 243 | }; | 244 | }; |
| 244 | 245 | ||
| 246 | static struct esdhc_platform_data sd1_pdata = { | ||
| 247 | .cd_gpio = GPIO_SD1CD, | ||
| 248 | .wp_gpio = -EINVAL, | ||
| 249 | }; | ||
| 250 | |||
| 245 | /* | 251 | /* |
| 246 | * system init for baseboard usage. Will be called by cpuimx25 init. | 252 | * system init for baseboard usage. Will be called by cpuimx25 init. |
| 247 | * | 253 | * |
| @@ -275,7 +281,7 @@ void __init eukrea_mbimxsd25_baseboard_init(void) | |||
| 275 | imx25_add_imx_ssi(0, &eukrea_mbimxsd_ssi_pdata); | 281 | imx25_add_imx_ssi(0, &eukrea_mbimxsd_ssi_pdata); |
| 276 | 282 | ||
| 277 | imx25_add_flexcan1(NULL); | 283 | imx25_add_flexcan1(NULL); |
| 278 | imx25_add_sdhci_esdhc_imx(0, NULL); | 284 | imx25_add_sdhci_esdhc_imx(0, &sd1_pdata); |
| 279 | 285 | ||
| 280 | gpio_request(GPIO_LED1, "LED1"); | 286 | gpio_request(GPIO_LED1, "LED1"); |
| 281 | gpio_direction_output(GPIO_LED1, 1); | 287 | gpio_direction_output(GPIO_LED1, 1); |
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); | ||
