diff options
author | Tony Lindgren <tony@atomide.com> | 2012-10-17 14:13:42 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2012-10-17 14:13:42 -0400 |
commit | 46cddc01aa6a017193ae7320ef8bfc8242782a66 (patch) | |
tree | da67a2fb45e512689bf909b4f832a8daea57e140 /arch/arm/mach-omap1 | |
parent | 99f0b8d6b09b0db6452d0d6e252bfa28049bbea9 (diff) | |
parent | 53db20d123f7a1bf44e46b727775403672655fde (diff) |
Merge branch 'omap-for-v3.8/cleanup-headers-mmc' into omap-for-v3.8/cleanup-headers
Conflicts:
arch/arm/mach-omap1/devices.c
arch/arm/mach-omap2/omap_hwmod_33xx_data.c
arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
drivers/mmc/host/omap.c
Diffstat (limited to 'arch/arm/mach-omap1')
-rw-r--r-- | arch/arm/mach-omap1/board-h2-mmc.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-h3-mmc.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-htcherald.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-innovator.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-nokia770.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-sx1-mmc.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-omap1/devices.c | 9 | ||||
-rw-r--r-- | arch/arm/mach-omap1/mmc.h | 18 |
8 files changed, 34 insertions, 10 deletions
diff --git a/arch/arm/mach-omap1/board-h2-mmc.c b/arch/arm/mach-omap1/board-h2-mmc.c index e1362ce48497..7119ef28e0ad 100644 --- a/arch/arm/mach-omap1/board-h2-mmc.c +++ b/arch/arm/mach-omap1/board-h2-mmc.c | |||
@@ -13,12 +13,11 @@ | |||
13 | */ | 13 | */ |
14 | #include <linux/gpio.h> | 14 | #include <linux/gpio.h> |
15 | #include <linux/platform_device.h> | 15 | #include <linux/platform_device.h> |
16 | 16 | #include <linux/platform_data/gpio-omap.h> | |
17 | #include <linux/i2c/tps65010.h> | 17 | #include <linux/i2c/tps65010.h> |
18 | 18 | ||
19 | #include <plat/mmc.h> | ||
20 | |||
21 | #include "board-h2.h" | 19 | #include "board-h2.h" |
20 | #include "mmc.h" | ||
22 | 21 | ||
23 | #if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) | 22 | #if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) |
24 | 23 | ||
diff --git a/arch/arm/mach-omap1/board-h3-mmc.c b/arch/arm/mach-omap1/board-h3-mmc.c index c74daace8cd6..17d77914d769 100644 --- a/arch/arm/mach-omap1/board-h3-mmc.c +++ b/arch/arm/mach-omap1/board-h3-mmc.c | |||
@@ -16,9 +16,8 @@ | |||
16 | 16 | ||
17 | #include <linux/i2c/tps65010.h> | 17 | #include <linux/i2c/tps65010.h> |
18 | 18 | ||
19 | #include <plat/mmc.h> | ||
20 | |||
21 | #include "board-h3.h" | 19 | #include "board-h3.h" |
20 | #include "mmc.h" | ||
22 | 21 | ||
23 | #if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) | 22 | #if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) |
24 | 23 | ||
diff --git a/arch/arm/mach-omap1/board-htcherald.c b/arch/arm/mach-omap1/board-htcherald.c index 87ab2086ef96..f23200ceb43d 100644 --- a/arch/arm/mach-omap1/board-htcherald.c +++ b/arch/arm/mach-omap1/board-htcherald.c | |||
@@ -43,7 +43,7 @@ | |||
43 | #include <asm/mach/arch.h> | 43 | #include <asm/mach/arch.h> |
44 | 44 | ||
45 | #include <mach/omap7xx.h> | 45 | #include <mach/omap7xx.h> |
46 | #include <plat/mmc.h> | 46 | #include "mmc.h" |
47 | 47 | ||
48 | #include <mach/irqs.h> | 48 | #include <mach/irqs.h> |
49 | #include <mach/usb.h> | 49 | #include <mach/usb.h> |
diff --git a/arch/arm/mach-omap1/board-innovator.c b/arch/arm/mach-omap1/board-innovator.c index db5f7d2976e7..411cc5b14ce3 100644 --- a/arch/arm/mach-omap1/board-innovator.c +++ b/arch/arm/mach-omap1/board-innovator.c | |||
@@ -36,13 +36,13 @@ | |||
36 | #include <plat/fpga.h> | 36 | #include <plat/fpga.h> |
37 | #include <plat/tc.h> | 37 | #include <plat/tc.h> |
38 | #include <linux/platform_data/keypad-omap.h> | 38 | #include <linux/platform_data/keypad-omap.h> |
39 | #include <plat/mmc.h> | ||
40 | 39 | ||
41 | #include <mach/hardware.h> | 40 | #include <mach/hardware.h> |
42 | #include <mach/usb.h> | 41 | #include <mach/usb.h> |
43 | 42 | ||
44 | #include "iomap.h" | 43 | #include "iomap.h" |
45 | #include "common.h" | 44 | #include "common.h" |
45 | #include "mmc.h" | ||
46 | 46 | ||
47 | /* At OMAP1610 Innovator the Ethernet is directly connected to CS1 */ | 47 | /* At OMAP1610 Innovator the Ethernet is directly connected to CS1 */ |
48 | #define INNOVATOR1610_ETHR_START 0x04000300 | 48 | #define INNOVATOR1610_ETHR_START 0x04000300 |
diff --git a/arch/arm/mach-omap1/board-nokia770.c b/arch/arm/mach-omap1/board-nokia770.c index 7d5c06d6a52a..cb72f2474430 100644 --- a/arch/arm/mach-omap1/board-nokia770.c +++ b/arch/arm/mach-omap1/board-nokia770.c | |||
@@ -29,13 +29,13 @@ | |||
29 | #include <asm/mach/map.h> | 29 | #include <asm/mach/map.h> |
30 | 30 | ||
31 | #include <mach/mux.h> | 31 | #include <mach/mux.h> |
32 | #include <plat/mmc.h> | ||
33 | #include <plat/clock.h> | 32 | #include <plat/clock.h> |
34 | 33 | ||
35 | #include <mach/hardware.h> | 34 | #include <mach/hardware.h> |
36 | #include <mach/usb.h> | 35 | #include <mach/usb.h> |
37 | 36 | ||
38 | #include "common.h" | 37 | #include "common.h" |
38 | #include "mmc.h" | ||
39 | 39 | ||
40 | #define ADS7846_PENDOWN_GPIO 15 | 40 | #define ADS7846_PENDOWN_GPIO 15 |
41 | 41 | ||
diff --git a/arch/arm/mach-omap1/board-sx1-mmc.c b/arch/arm/mach-omap1/board-sx1-mmc.c index 5932d56e17bf..4fcf19c78a08 100644 --- a/arch/arm/mach-omap1/board-sx1-mmc.c +++ b/arch/arm/mach-omap1/board-sx1-mmc.c | |||
@@ -16,9 +16,10 @@ | |||
16 | #include <linux/platform_device.h> | 16 | #include <linux/platform_device.h> |
17 | 17 | ||
18 | #include <mach/hardware.h> | 18 | #include <mach/hardware.h> |
19 | #include <plat/mmc.h> | ||
20 | #include <mach/board-sx1.h> | 19 | #include <mach/board-sx1.h> |
21 | 20 | ||
21 | #include "mmc.h" | ||
22 | |||
22 | #if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) | 23 | #if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) |
23 | 24 | ||
24 | static int mmc_set_power(struct device *dev, int slot, int power_on, | 25 | static int mmc_set_power(struct device *dev, int slot, int power_on, |
diff --git a/arch/arm/mach-omap1/devices.c b/arch/arm/mach-omap1/devices.c index 894e7c9b57f9..8e32d50d275b 100644 --- a/arch/arm/mach-omap1/devices.c +++ b/arch/arm/mach-omap1/devices.c | |||
@@ -21,7 +21,6 @@ | |||
21 | 21 | ||
22 | #include <plat/tc.h> | 22 | #include <plat/tc.h> |
23 | #include <mach/mux.h> | 23 | #include <mach/mux.h> |
24 | #include <plat/mmc.h> | ||
25 | 24 | ||
26 | #include <mach/omap7xx.h> | 25 | #include <mach/omap7xx.h> |
27 | #include <mach/camera.h> | 26 | #include <mach/camera.h> |
@@ -30,6 +29,7 @@ | |||
30 | #include "common.h" | 29 | #include "common.h" |
31 | #include "clock.h" | 30 | #include "clock.h" |
32 | #include "dma.h" | 31 | #include "dma.h" |
32 | #include "mmc.h" | ||
33 | 33 | ||
34 | #if defined(CONFIG_SND_SOC) || defined(CONFIG_SND_SOC_MODULE) | 34 | #if defined(CONFIG_SND_SOC) || defined(CONFIG_SND_SOC_MODULE) |
35 | 35 | ||
@@ -175,6 +175,13 @@ static int __init omap_mmc_add(const char *name, int id, unsigned long base, | |||
175 | res[3].name = "tx"; | 175 | res[3].name = "tx"; |
176 | res[3].flags = IORESOURCE_DMA; | 176 | res[3].flags = IORESOURCE_DMA; |
177 | 177 | ||
178 | if (cpu_is_omap7xx()) | ||
179 | data->slots[0].features = MMC_OMAP7XX; | ||
180 | if (cpu_is_omap15xx()) | ||
181 | data->slots[0].features = MMC_OMAP15XX; | ||
182 | if (cpu_is_omap16xx()) | ||
183 | data->slots[0].features = MMC_OMAP16XX; | ||
184 | |||
178 | ret = platform_device_add_resources(pdev, res, ARRAY_SIZE(res)); | 185 | ret = platform_device_add_resources(pdev, res, ARRAY_SIZE(res)); |
179 | if (ret == 0) | 186 | if (ret == 0) |
180 | ret = platform_device_add_data(pdev, data, sizeof(*data)); | 187 | ret = platform_device_add_data(pdev, data, sizeof(*data)); |
diff --git a/arch/arm/mach-omap1/mmc.h b/arch/arm/mach-omap1/mmc.h new file mode 100644 index 000000000000..39c2b13de884 --- /dev/null +++ b/arch/arm/mach-omap1/mmc.h | |||
@@ -0,0 +1,18 @@ | |||
1 | #include <linux/mmc/host.h> | ||
2 | #include <linux/platform_data/mmc-omap.h> | ||
3 | |||
4 | #define OMAP15XX_NR_MMC 1 | ||
5 | #define OMAP16XX_NR_MMC 2 | ||
6 | #define OMAP1_MMC_SIZE 0x080 | ||
7 | #define OMAP1_MMC1_BASE 0xfffb7800 | ||
8 | #define OMAP1_MMC2_BASE 0xfffb7c00 /* omap16xx only */ | ||
9 | |||
10 | #if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) | ||
11 | void omap1_init_mmc(struct omap_mmc_platform_data **mmc_data, | ||
12 | int nr_controllers); | ||
13 | #else | ||
14 | static inline void omap1_init_mmc(struct omap_mmc_platform_data **mmc_data, | ||
15 | int nr_controllers) | ||
16 | { | ||
17 | } | ||
18 | #endif | ||