Skip to content

Commit

Permalink
Merge branch 'omap-for-v3.8/cleanup-headers-mmc' into omap-for-v3.8/c…
Browse files Browse the repository at this point in the history
…leanup-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
  • Loading branch information
Tony Lindgren committed Oct 17, 2012
2 parents 99f0b8d + 53db20d commit 46cddc0
Show file tree
Hide file tree
Showing 24 changed files with 91 additions and 78 deletions.
5 changes: 2 additions & 3 deletions arch/arm/mach-omap1/board-h2-mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@
*/
#include <linux/gpio.h>
#include <linux/platform_device.h>

#include <linux/platform_data/gpio-omap.h>
#include <linux/i2c/tps65010.h>

#include <plat/mmc.h>

#include "board-h2.h"
#include "mmc.h"

#if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE)

Expand Down
3 changes: 1 addition & 2 deletions arch/arm/mach-omap1/board-h3-mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@

#include <linux/i2c/tps65010.h>

#include <plat/mmc.h>

#include "board-h3.h"
#include "mmc.h"

#if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE)

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap1/board-htcherald.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#include <asm/mach/arch.h>

#include <mach/omap7xx.h>
#include <plat/mmc.h>
#include "mmc.h"

#include <mach/irqs.h>
#include <mach/usb.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap1/board-innovator.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@
#include <plat/fpga.h>
#include <plat/tc.h>
#include <linux/platform_data/keypad-omap.h>
#include <plat/mmc.h>

#include <mach/hardware.h>
#include <mach/usb.h>

#include "iomap.h"
#include "common.h"
#include "mmc.h"

/* At OMAP1610 Innovator the Ethernet is directly connected to CS1 */
#define INNOVATOR1610_ETHR_START 0x04000300
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap1/board-nokia770.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
#include <asm/mach/map.h>

#include <mach/mux.h>
#include <plat/mmc.h>
#include <plat/clock.h>

#include <mach/hardware.h>
#include <mach/usb.h>

#include "common.h"
#include "mmc.h"

#define ADS7846_PENDOWN_GPIO 15

Expand Down
3 changes: 2 additions & 1 deletion arch/arm/mach-omap1/board-sx1-mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
#include <linux/platform_device.h>

#include <mach/hardware.h>
#include <plat/mmc.h>
#include <mach/board-sx1.h>

#include "mmc.h"

#if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE)

static int mmc_set_power(struct device *dev, int slot, int power_on,
Expand Down
9 changes: 8 additions & 1 deletion arch/arm/mach-omap1/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

#include <plat/tc.h>
#include <mach/mux.h>
#include <plat/mmc.h>

#include <mach/omap7xx.h>
#include <mach/camera.h>
Expand All @@ -30,6 +29,7 @@
#include "common.h"
#include "clock.h"
#include "dma.h"
#include "mmc.h"

#if defined(CONFIG_SND_SOC) || defined(CONFIG_SND_SOC_MODULE)

Expand Down Expand Up @@ -175,6 +175,13 @@ static int __init omap_mmc_add(const char *name, int id, unsigned long base,
res[3].name = "tx";
res[3].flags = IORESOURCE_DMA;

if (cpu_is_omap7xx())
data->slots[0].features = MMC_OMAP7XX;
if (cpu_is_omap15xx())
data->slots[0].features = MMC_OMAP15XX;
if (cpu_is_omap16xx())
data->slots[0].features = MMC_OMAP16XX;

ret = platform_device_add_resources(pdev, res, ARRAY_SIZE(res));
if (ret == 0)
ret = platform_device_add_data(pdev, data, sizeof(*data));
Expand Down
18 changes: 18 additions & 0 deletions arch/arm/mach-omap1/mmc.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#include <linux/mmc/host.h>
#include <linux/platform_data/mmc-omap.h>

#define OMAP15XX_NR_MMC 1
#define OMAP16XX_NR_MMC 2
#define OMAP1_MMC_SIZE 0x080
#define OMAP1_MMC1_BASE 0xfffb7800
#define OMAP1_MMC2_BASE 0xfffb7c00 /* omap16xx only */

#if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE)
void omap1_init_mmc(struct omap_mmc_platform_data **mmc_data,
int nr_controllers);
#else
static inline void omap1_init_mmc(struct omap_mmc_platform_data **mmc_data,
int nr_controllers)
{
}
#endif
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/board-4430sdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@

#include "common.h"
#include <plat/usb.h>
#include <plat/mmc.h>
#include "omap4-keypad.h"
#include <video/omapdss.h>
#include <video/omap-panel-nokia-dsi.h>
Expand All @@ -45,6 +44,7 @@

#include "soc.h"
#include "mux.h"
#include "mmc.h"
#include "hsmmc.h"
#include "control.h"
#include "common-board-devices.h"
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/board-n8x0.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

#include "common.h"
#include <plat/menelaus.h>
#include <plat/mmc.h>
#include "mmc.h"

#include "mux.h"
#include "gpmc-onenand.h"
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/board-omap4panda.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@

#include "common.h"
#include <plat/usb.h>
#include <plat/mmc.h>
#include <video/omap-panel-tfp410.h>

#include "soc.h"
#include "mmc.h"
#include "hsmmc.h"
#include "control.h"
#include "mux.h"
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/board-rm680.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
#include <asm/mach-types.h>

#include <plat/i2c.h>
#include <plat/mmc.h>
#include <plat/usb.h>
#include "gpmc.h"
#include "common.h"
#include <plat/serial.h>

#include "mux.h"
#include "mmc.h"
#include "hsmmc.h"
#include "sdram-nokia.h"
#include "common-board-devices.h"
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/hsmmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
#include <mach/hardware.h>
#include <linux/platform_data/gpio-omap.h>

#include <plat/mmc.h>
#include <plat/omap-pm.h>
#include <plat/omap_device.h>

#include "mux.h"
#include "mmc.h"
#include "hsmmc.h"
#include "control.h"

Expand Down
23 changes: 23 additions & 0 deletions arch/arm/mach-omap2/mmc.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#include <linux/mmc/host.h>
#include <linux/platform_data/mmc-omap.h>

#define OMAP24XX_NR_MMC 2
#define OMAP2420_MMC_SIZE OMAP1_MMC_SIZE
#define OMAP2_MMC1_BASE 0x4809c000

#define OMAP4_MMC_REG_OFFSET 0x100

#if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE)
void omap242x_init_mmc(struct omap_mmc_platform_data **mmc_data);
#else
static inline void omap242x_init_mmc(struct omap_mmc_platform_data **mmc_data)
{
}
#endif

struct omap_hwmod;
int omap_msdi_reset(struct omap_hwmod *oh);

/* called from board-specific card detection service routine */
extern void omap_mmc_notify_cover_event(struct device *dev, int slot,
int is_closed);
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/msdi.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@

#include <plat/omap_hwmod.h>
#include <plat/omap_device.h>
#include <plat/mmc.h>

#include "common.h"
#include "control.h"
#include "mux.h"
#include "mmc.h"

/*
* MSDI_CON_OFFSET: offset in bytes of the MSDI IP block's CON register
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/omap4-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@

#include <plat/sram.h>
#include <plat/omap-secure.h>
#include <plat/mmc.h>

#include "omap-wakeupgen.h"

#include "soc.h"
#include "common.h"
#include "mmc.h"
#include "hsmmc.h"
#include "omap4-sar-layout.h"

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/omap_hwmod_2420_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
#include <plat/dmtimer.h>
#include "l3_2xxx.h"
#include "l4_2xxx.h"
#include <plat/mmc.h>

#include "omap_hwmod_common_data.h"

#include "cm-regbits-24xx.h"
#include "prm-regbits-24xx.h"
#include "mmc.h"
#include "wd_timer.h"

/*
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/omap_hwmod_2430_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <plat/serial.h>
#include <plat/i2c.h>
#include <plat/dmtimer.h>
#include <plat/mmc.h>
#include "mmc.h"
#include "l3_2xxx.h"

#include "soc.h"
Expand Down
3 changes: 1 addition & 2 deletions arch/arm/mach-omap2/omap_hwmod_33xx_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
#include <plat/cpu.h>
#include <linux/platform_data/gpio-omap.h>
#include <linux/platform_data/spi-omap2-mcspi.h>
#include <plat-omap/dma-omap.h>
#include <plat/mmc.h>
#include <plat/i2c.h>

#include "omap_hwmod_common_data.h"
Expand All @@ -28,6 +26,7 @@
#include "cm33xx.h"
#include "prm33xx.h"
#include "prm-regbits-33xx.h"
#include "mmc.h"

/*
* IP blocks
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include "l3_3xxx.h"
#include "l4_3xxx.h"
#include <plat/i2c.h>
#include <plat/mmc.h>
#include <linux/platform_data/asoc-ti-mcbsp.h>
#include <linux/platform_data/spi-omap2-mcspi.h>
#include <plat/dmtimer.h>
Expand All @@ -37,6 +36,7 @@
#include "cm-regbits-34xx.h"

#include "dma.h"
#include "mmc.h"
#include "wd_timer.h"

/*
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/omap_hwmod_44xx_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include <plat-omap/dma-omap.h>
#include <linux/platform_data/spi-omap2-mcspi.h>
#include <linux/platform_data/asoc-ti-mcbsp.h>
#include <plat/mmc.h>
#include <plat/dmtimer.h>
#include <plat/common.h>
#include <plat/iommu.h>
Expand All @@ -37,6 +36,7 @@
#include "cm2_44xx.h"
#include "prm44xx.h"
#include "prm-regbits-44xx.h"
#include "mmc.h"
#include "wd_timer.h"

/* Base offset for all OMAP4 interrupts external to MPUSS */
Expand Down
Loading

0 comments on commit 46cddc0

Please sign in to comment.