ARM: OMAP: hsmmc: add pm_caps field
authorEliad Peller <eliad@wizery.com>
Tue, 22 Nov 2011 14:02:18 +0000 (16:02 +0200)
committerTony Lindgren <tony@atomide.com>
Fri, 9 Dec 2011 00:26:20 +0000 (16:26 -0800)
Add pm_caps field to omap2_hsmmc_info and omap_mmc_slot_data
structs, so we will be able to indicate mmc pm capabilities
in the board file.

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/hsmmc.c
arch/arm/mach-omap2/hsmmc.h
arch/arm/plat-omap/include/plat/mmc.h
drivers/mmc/host/omap_hsmmc.c

index f4a1020559a7b84529f3f6f22e8ffec9ec41c6e3..97dfedce084bc8d83538ee92399d31915b1b1de7 100644 (file)
@@ -296,6 +296,7 @@ static int __init omap_hsmmc_pdata_init(struct omap2_hsmmc_info *c,
        mmc->slots[0].name = hc_name;
        mmc->nr_slots = 1;
        mmc->slots[0].caps = c->caps;
+       mmc->slots[0].pm_caps = c->pm_caps;
        mmc->slots[0].internal_clock = !c->ext_clock;
        mmc->dma_mask = 0xffffffff;
        if (cpu_is_omap44xx())
index f757e78d4d4f5759f73bdc27acc502c1ef8f497f..c4409730c4bb6ea18d4c0b93f9bd7fab612e20a5 100644 (file)
@@ -12,6 +12,7 @@ struct omap2_hsmmc_info {
        u8      mmc;            /* controller 1/2/3 */
        u32     caps;           /* 4/8 wires and any additional host
                                 * capabilities OR'd (ref. linux/mmc/host.h) */
+       u32     pm_caps;        /* PM capabilities */
        bool    transceiver;    /* MMC-2 option */
        bool    ext_clock;      /* use external pin for input clock */
        bool    cover_only;     /* No card detect - just cover switch */
index 94cf70afb236bd5950e3ca0f7aaa5cfb86010cb4..f75946c3293d2bd26b0de35b8f253c0ed832eb3d 100644 (file)
@@ -96,6 +96,7 @@ struct omap_mmc_platform_data {
                 */
                u8  wires;      /* Used for the MMC driver on omap1 and 2420 */
                u32 caps;       /* Used for the MMC driver on 2430 and later */
+               u32 pm_caps;    /* PM capabilities of the mmc */
 
                /*
                 * nomux means "standard" muxing is wrong on this board, and
index 6784fbbc337de047c4aac822d9daf284898ddc0e..f0d792183b8e09d643e7ac94b0bc1ad6bc33470a 100644 (file)
@@ -1988,6 +1988,8 @@ static int __init omap_hsmmc_probe(struct platform_device *pdev)
        if (mmc_slot(host).nonremovable)
                mmc->caps |= MMC_CAP_NONREMOVABLE;
 
+       mmc->pm_caps = mmc_slot(host).pm_caps;
+
        omap_hsmmc_conf_bus_power(host);
 
        /* Select DMA lines */
This page took 0.038372 seconds and 5 git commands to generate.