diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-05-20 05:38:27 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-05-20 05:38:27 -0400 |
commit | c721be2807467819d16db4d61a4c5db539bcc1c7 (patch) | |
tree | ee166b44ad37480d3f05b6a0930bd69e16c6fbf9 /arch/arm/mach-mxs | |
parent | 1e87347c2f6e124d73b4921c4580adad4ac534d6 (diff) | |
parent | 27ad4bf72a27c80c121b2349174e6b41b2e3afd8 (diff) |
Merge branch 'for-rmk' of git://git.pengutronix.de/git/imx/linux-2.6 into devel-stable
Diffstat (limited to 'arch/arm/mach-mxs')
-rw-r--r-- | arch/arm/mach-mxs/Kconfig | 2 | ||||
-rw-r--r-- | arch/arm/mach-mxs/clock-mx23.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-mxs/devices-mx28.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-mxs/devices/platform-mxs-i2c.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-mxs/include/mach/devices-common.h | 5 | ||||
-rw-r--r-- | arch/arm/mach-mxs/include/mach/mx23.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-mxs/mach-mx23evk.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-mxs/mach-mx28evk.c | 4 |
8 files changed, 13 insertions, 11 deletions
diff --git a/arch/arm/mach-mxs/Kconfig b/arch/arm/mach-mxs/Kconfig index 4522fbb235d5..21de5d50673f 100644 --- a/arch/arm/mach-mxs/Kconfig +++ b/arch/arm/mach-mxs/Kconfig | |||
@@ -24,7 +24,6 @@ config MACH_MX23EVK | |||
24 | select MXS_HAVE_PLATFORM_AUART | 24 | select MXS_HAVE_PLATFORM_AUART |
25 | select MXS_HAVE_PLATFORM_MXS_MMC | 25 | select MXS_HAVE_PLATFORM_MXS_MMC |
26 | select MXS_HAVE_PLATFORM_MXSFB | 26 | select MXS_HAVE_PLATFORM_MXSFB |
27 | default y | ||
28 | help | 27 | help |
29 | Include support for MX23EVK platform. This includes specific | 28 | Include support for MX23EVK platform. This includes specific |
30 | configurations for the board and its peripherals. | 29 | configurations for the board and its peripherals. |
@@ -39,7 +38,6 @@ config MACH_MX28EVK | |||
39 | select MXS_HAVE_PLATFORM_MXS_MMC | 38 | select MXS_HAVE_PLATFORM_MXS_MMC |
40 | select MXS_HAVE_PLATFORM_MXSFB | 39 | select MXS_HAVE_PLATFORM_MXSFB |
41 | select MXS_OCOTP | 40 | select MXS_OCOTP |
42 | default y | ||
43 | help | 41 | help |
44 | Include support for MX28EVK platform. This includes specific | 42 | Include support for MX28EVK platform. This includes specific |
45 | configurations for the board and its peripherals. | 43 | configurations for the board and its peripherals. |
diff --git a/arch/arm/mach-mxs/clock-mx23.c b/arch/arm/mach-mxs/clock-mx23.c index c3577ea789ac..0163b6d83773 100644 --- a/arch/arm/mach-mxs/clock-mx23.c +++ b/arch/arm/mach-mxs/clock-mx23.c | |||
@@ -446,6 +446,8 @@ static struct clk_lookup lookups[] = { | |||
446 | _REGISTER_CLOCK("rtc", NULL, rtc_clk) | 446 | _REGISTER_CLOCK("rtc", NULL, rtc_clk) |
447 | _REGISTER_CLOCK("mxs-dma-apbh", NULL, hbus_clk) | 447 | _REGISTER_CLOCK("mxs-dma-apbh", NULL, hbus_clk) |
448 | _REGISTER_CLOCK("mxs-dma-apbx", NULL, xbus_clk) | 448 | _REGISTER_CLOCK("mxs-dma-apbx", NULL, xbus_clk) |
449 | _REGISTER_CLOCK("mxs-mmc.0", NULL, ssp_clk) | ||
450 | _REGISTER_CLOCK("mxs-mmc.1", NULL, ssp_clk) | ||
449 | _REGISTER_CLOCK(NULL, "usb", usb_clk) | 451 | _REGISTER_CLOCK(NULL, "usb", usb_clk) |
450 | _REGISTER_CLOCK(NULL, "audio", audio_clk) | 452 | _REGISTER_CLOCK(NULL, "audio", audio_clk) |
451 | _REGISTER_CLOCK("mxs-pwm.0", NULL, pwm_clk) | 453 | _REGISTER_CLOCK("mxs-pwm.0", NULL, pwm_clk) |
diff --git a/arch/arm/mach-mxs/devices-mx28.h b/arch/arm/mach-mxs/devices-mx28.h index c473eddce8cf..79b94523954a 100644 --- a/arch/arm/mach-mxs/devices-mx28.h +++ b/arch/arm/mach-mxs/devices-mx28.h | |||
@@ -34,7 +34,7 @@ extern const struct mxs_flexcan_data mx28_flexcan_data[] __initconst; | |||
34 | #define mx28_add_flexcan0(pdata) mx28_add_flexcan(0, pdata) | 34 | #define mx28_add_flexcan0(pdata) mx28_add_flexcan(0, pdata) |
35 | #define mx28_add_flexcan1(pdata) mx28_add_flexcan(1, pdata) | 35 | #define mx28_add_flexcan1(pdata) mx28_add_flexcan(1, pdata) |
36 | 36 | ||
37 | extern const struct mxs_i2c_data mx28_mxs_i2c_data[] __initconst; | 37 | extern const struct mxs_mxs_i2c_data mx28_mxs_i2c_data[] __initconst; |
38 | #define mx28_add_mxs_i2c(id) mxs_add_mxs_i2c(&mx28_mxs_i2c_data[id]) | 38 | #define mx28_add_mxs_i2c(id) mxs_add_mxs_i2c(&mx28_mxs_i2c_data[id]) |
39 | 39 | ||
40 | extern const struct mxs_mxs_mmc_data mx28_mxs_mmc_data[] __initconst; | 40 | extern const struct mxs_mxs_mmc_data mx28_mxs_mmc_data[] __initconst; |
diff --git a/arch/arm/mach-mxs/devices/platform-mxs-i2c.c b/arch/arm/mach-mxs/devices/platform-mxs-i2c.c index eab3a06836d6..79222ec8ede1 100644 --- a/arch/arm/mach-mxs/devices/platform-mxs-i2c.c +++ b/arch/arm/mach-mxs/devices/platform-mxs-i2c.c | |||
@@ -22,13 +22,14 @@ | |||
22 | [_id] = mxs_i2c_data_entry_single(soc, _id) | 22 | [_id] = mxs_i2c_data_entry_single(soc, _id) |
23 | 23 | ||
24 | #ifdef CONFIG_SOC_IMX28 | 24 | #ifdef CONFIG_SOC_IMX28 |
25 | const struct mxs_i2c_data mx28_mxs_i2c_data[] __initconst = { | 25 | const struct mxs_mxs_i2c_data mx28_mxs_i2c_data[] __initconst = { |
26 | mxs_i2c_data_entry(MX28, 0), | 26 | mxs_i2c_data_entry(MX28, 0), |
27 | mxs_i2c_data_entry(MX28, 1), | 27 | mxs_i2c_data_entry(MX28, 1), |
28 | }; | 28 | }; |
29 | #endif | 29 | #endif |
30 | 30 | ||
31 | struct platform_device *__init mxs_add_mxs_i2c(const struct mxs_i2c_data *data) | 31 | struct platform_device *__init mxs_add_mxs_i2c( |
32 | const struct mxs_mxs_i2c_data *data) | ||
32 | { | 33 | { |
33 | struct resource res[] = { | 34 | struct resource res[] = { |
34 | { | 35 | { |
diff --git a/arch/arm/mach-mxs/include/mach/devices-common.h b/arch/arm/mach-mxs/include/mach/devices-common.h index c5137f14c364..7a37469ed5bf 100644 --- a/arch/arm/mach-mxs/include/mach/devices-common.h +++ b/arch/arm/mach-mxs/include/mach/devices-common.h | |||
@@ -65,13 +65,14 @@ struct platform_device *__init mxs_add_flexcan( | |||
65 | const struct flexcan_platform_data *pdata); | 65 | const struct flexcan_platform_data *pdata); |
66 | 66 | ||
67 | /* i2c */ | 67 | /* i2c */ |
68 | struct mxs_i2c_data { | 68 | struct mxs_mxs_i2c_data { |
69 | int id; | 69 | int id; |
70 | resource_size_t iobase; | 70 | resource_size_t iobase; |
71 | resource_size_t errirq; | 71 | resource_size_t errirq; |
72 | resource_size_t dmairq; | 72 | resource_size_t dmairq; |
73 | }; | 73 | }; |
74 | struct platform_device * __init mxs_add_mxs_i2c(const struct mxs_i2c_data *data); | 74 | struct platform_device * __init mxs_add_mxs_i2c( |
75 | const struct mxs_mxs_i2c_data *data); | ||
75 | 76 | ||
76 | /* mmc */ | 77 | /* mmc */ |
77 | #include <mach/mmc.h> | 78 | #include <mach/mmc.h> |
diff --git a/arch/arm/mach-mxs/include/mach/mx23.h b/arch/arm/mach-mxs/include/mach/mx23.h index c0a18c23084a..599094bc99de 100644 --- a/arch/arm/mach-mxs/include/mach/mx23.h +++ b/arch/arm/mach-mxs/include/mach/mx23.h | |||
@@ -57,7 +57,7 @@ | |||
57 | #define MX23_AUDIOIN_BASE_ADDR (MX23_IO_BASE_ADDR + 0x04c000) | 57 | #define MX23_AUDIOIN_BASE_ADDR (MX23_IO_BASE_ADDR + 0x04c000) |
58 | #define MX23_LRADC_BASE_ADDR (MX23_IO_BASE_ADDR + 0x050000) | 58 | #define MX23_LRADC_BASE_ADDR (MX23_IO_BASE_ADDR + 0x050000) |
59 | #define MX23_SPDIF_BASE_ADDR (MX23_IO_BASE_ADDR + 0x054000) | 59 | #define MX23_SPDIF_BASE_ADDR (MX23_IO_BASE_ADDR + 0x054000) |
60 | #define MX23_I2C0_BASE_ADDR (MX23_IO_BASE_ADDR + 0x058000) | 60 | #define MX23_I2C_BASE_ADDR (MX23_IO_BASE_ADDR + 0x058000) |
61 | #define MX23_RTC_BASE_ADDR (MX23_IO_BASE_ADDR + 0x05c000) | 61 | #define MX23_RTC_BASE_ADDR (MX23_IO_BASE_ADDR + 0x05c000) |
62 | #define MX23_PWM_BASE_ADDR (MX23_IO_BASE_ADDR + 0x064000) | 62 | #define MX23_PWM_BASE_ADDR (MX23_IO_BASE_ADDR + 0x064000) |
63 | #define MX23_TIMROT_BASE_ADDR (MX23_IO_BASE_ADDR + 0x068000) | 63 | #define MX23_TIMROT_BASE_ADDR (MX23_IO_BASE_ADDR + 0x068000) |
diff --git a/arch/arm/mach-mxs/mach-mx23evk.c b/arch/arm/mach-mxs/mach-mx23evk.c index 214e5b641bbc..3c2de33803ab 100644 --- a/arch/arm/mach-mxs/mach-mx23evk.c +++ b/arch/arm/mach-mxs/mach-mx23evk.c | |||
@@ -148,7 +148,7 @@ static void __init mx23evk_init(void) | |||
148 | mx23_add_auart0(); | 148 | mx23_add_auart0(); |
149 | 149 | ||
150 | /* power on mmc slot by writing 0 to the gpio */ | 150 | /* power on mmc slot by writing 0 to the gpio */ |
151 | ret = gpio_request_one(MX23EVK_MMC0_SLOT_POWER, GPIOF_DIR_OUT, | 151 | ret = gpio_request_one(MX23EVK_MMC0_SLOT_POWER, GPIOF_OUT_INIT_LOW, |
152 | "mmc0-slot-power"); | 152 | "mmc0-slot-power"); |
153 | if (ret) | 153 | if (ret) |
154 | pr_warn("failed to request gpio mmc0-slot-power: %d\n", ret); | 154 | pr_warn("failed to request gpio mmc0-slot-power: %d\n", ret); |
diff --git a/arch/arm/mach-mxs/mach-mx28evk.c b/arch/arm/mach-mxs/mach-mx28evk.c index bb329b9a2608..eacdc6b0e70a 100644 --- a/arch/arm/mach-mxs/mach-mx28evk.c +++ b/arch/arm/mach-mxs/mach-mx28evk.c | |||
@@ -375,13 +375,13 @@ static void __init mx28evk_init(void) | |||
375 | mx28_add_mxsfb(&mx28evk_mxsfb_pdata); | 375 | mx28_add_mxsfb(&mx28evk_mxsfb_pdata); |
376 | 376 | ||
377 | /* power on mmc slot by writing 0 to the gpio */ | 377 | /* power on mmc slot by writing 0 to the gpio */ |
378 | ret = gpio_request_one(MX28EVK_MMC0_SLOT_POWER, GPIOF_DIR_OUT, | 378 | ret = gpio_request_one(MX28EVK_MMC0_SLOT_POWER, GPIOF_OUT_INIT_LOW, |
379 | "mmc0-slot-power"); | 379 | "mmc0-slot-power"); |
380 | if (ret) | 380 | if (ret) |
381 | pr_warn("failed to request gpio mmc0-slot-power: %d\n", ret); | 381 | pr_warn("failed to request gpio mmc0-slot-power: %d\n", ret); |
382 | mx28_add_mxs_mmc(0, &mx28evk_mmc_pdata[0]); | 382 | mx28_add_mxs_mmc(0, &mx28evk_mmc_pdata[0]); |
383 | 383 | ||
384 | ret = gpio_request_one(MX28EVK_MMC1_SLOT_POWER, GPIOF_DIR_OUT, | 384 | ret = gpio_request_one(MX28EVK_MMC1_SLOT_POWER, GPIOF_OUT_INIT_LOW, |
385 | "mmc1-slot-power"); | 385 | "mmc1-slot-power"); |
386 | if (ret) | 386 | if (ret) |
387 | pr_warn("failed to request gpio mmc1-slot-power: %d\n", ret); | 387 | pr_warn("failed to request gpio mmc1-slot-power: %d\n", ret); |