Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 216941
b: refs/heads/master
c: 63509e3
h: refs/heads/master
i:
  216939: 0fb9cd1
v: v3
  • Loading branch information
Tony Lindgren committed Oct 4, 2010
1 parent d1bd327 commit 1b50e7d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7ad0e386d46e9edff64705ab25337ad9130baf63
refs/heads/master: 63509e3c03ae22000c642e33b5006769d1b5db86
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-omap2/board-n8x0.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ static struct omap_mmc_platform_data mmc1_data = {
.max_freq = 24000000,
.dma_mask = 0xffffffff,
.slots[0] = {
.caps = MMC_CAP_4_BIT_DATA,
.wires = 4,
.set_power = n8x0_mmc_set_power,
.set_bus_mode = n8x0_mmc_set_bus_mode,
.get_cover_state = n8x0_mmc_get_cover_state,
Expand Down
9 changes: 6 additions & 3 deletions trunk/arch/arm/plat-omap/include/plat/mmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,12 @@ struct omap_mmc_platform_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) */
u32 caps;
/*
* 4/8 wires and any additional host capabilities
* 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
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/mmc/host/omap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1317,7 +1317,7 @@ static int __init mmc_omap_new_slot(struct mmc_omap_host *host, int id)
host->slots[id] = slot;

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->ops = &mmc_omap_ops;
Expand Down

0 comments on commit 1b50e7d

Please sign in to comment.