提交 63509e3c 编写于 作者: T Tony Lindgren

omap: Keep nwires for omap1 and 2420 MMC controller

A patch from Sukumar Ghorai <s-ghorai@ti.com> changed the
nwires to use caps instead. However, nwires is still
needed for the earlier controller.
Signed-off-by: NTony Lindgren <tony@atomide.com>
Acked-by: NSukumar Ghorai <s-ghorai@ti.com>
Signed-off-by: NMing Lei <tom.leiming@gmail.com>
上级 7ad0e386
...@@ -488,7 +488,7 @@ static struct omap_mmc_platform_data mmc1_data = { ...@@ -488,7 +488,7 @@ static struct omap_mmc_platform_data mmc1_data = {
.max_freq = 24000000, .max_freq = 24000000,
.dma_mask = 0xffffffff, .dma_mask = 0xffffffff,
.slots[0] = { .slots[0] = {
.caps = MMC_CAP_4_BIT_DATA, .wires = 4,
.set_power = n8x0_mmc_set_power, .set_power = n8x0_mmc_set_power,
.set_bus_mode = n8x0_mmc_set_bus_mode, .set_bus_mode = n8x0_mmc_set_bus_mode,
.get_cover_state = n8x0_mmc_get_cover_state, .get_cover_state = n8x0_mmc_get_cover_state,
......
...@@ -73,9 +73,12 @@ struct omap_mmc_platform_data { ...@@ -73,9 +73,12 @@ struct omap_mmc_platform_data {
struct omap_mmc_slot_data { struct omap_mmc_slot_data {
/* 4/8 wires and any additional host capabilities /*
* need to OR'd all capabilities (ref. linux/mmc/host.h) */ * 4/8 wires and any additional host capabilities
u32 caps; * need to OR'd all capabilities (ref. linux/mmc/host.h)
*/
u8 wires; /* Used for the MMC driver on omap1 and 2420 */
u32 caps; /* Used for the MMC driver on 2430 and later */
/* /*
* nomux means "standard" muxing is wrong on this board, and * nomux means "standard" muxing is wrong on this board, and
......
...@@ -1317,7 +1317,7 @@ static int __init mmc_omap_new_slot(struct mmc_omap_host *host, int id) ...@@ -1317,7 +1317,7 @@ static int __init mmc_omap_new_slot(struct mmc_omap_host *host, int id)
host->slots[id] = slot; host->slots[id] = slot;
mmc->caps = 0; mmc->caps = 0;
if (host->pdata->slots[id].caps & MMC_CAP_8_BIT_DATA) if (host->pdata->slots[id].wires >= 4)
mmc->caps |= MMC_CAP_4_BIT_DATA; mmc->caps |= MMC_CAP_4_BIT_DATA;
mmc->ops = &mmc_omap_ops; mmc->ops = &mmc_omap_ops;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册