Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191763
b: refs/heads/master
c: 771dc15
h: refs/heads/master
i:
  191761: 791c304
  191759: a314ab9
v: v3
  • Loading branch information
Linus Walleij authored and Russell King committed Apr 14, 2010
1 parent 3f52ea6 commit a45d0e0
Show file tree
Hide file tree
Showing 4 changed files with 10 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: 8e797a7e4f588fb3b9cfe9860b00dcd3b14f8b60
refs/heads/master: 771dc157e06d69fcece0b2c8a29b9010345d8e9a
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-u300/mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ int __devinit mmc_init(struct amba_device *adev)
mmci_card->mmc0_plat_data.gpio_wp = -1;
mmci_card->mmc0_plat_data.gpio_cd = -1;
mmci_card->mmc0_plat_data.capabilities = MMC_CAP_MMC_HIGHSPEED |
MMC_CAP_SD_HIGHSPEED | MMC_CAP_4_BIT_DATA;
MMC_CAP_SD_HIGHSPEED | MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA;

mmcsd_device->platform_data = (void *) &mmci_card->mmc0_plat_data;

Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/mmc/host/mmci.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,16 @@ static void mmci_set_clkreg(struct mmci_host *host, unsigned int desired)
host->cclk = host->mclk / (2 * (clk + 1));
}
if (host->hw_designer == AMBA_VENDOR_ST)
clk |= MCI_FCEN; /* Bug fix in ST IP block */
clk |= MCI_ST_FCEN; /* Bug fix in ST IP block */
clk |= MCI_CLK_ENABLE;
/* This hasn't proven to be worthwhile */
/* clk |= MCI_CLK_PWRSAVE; */
}

if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_4)
clk |= MCI_WIDE_BUS;
clk |= MCI_4BIT_BUS;
if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_8)
clk |= MCI_ST_8BIT_BUS;

writel(clk, host->base + MMCICLOCK);
}
Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/mmc/host/mmci.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@
#define MCI_CLK_ENABLE (1 << 8)
#define MCI_CLK_PWRSAVE (1 << 9)
#define MCI_CLK_BYPASS (1 << 10)
#define MCI_WIDE_BUS (1 << 11)
#define MCI_4BIT_BUS (1 << 11)
/* 8bit wide buses supported in ST Micro versions */
#define MCI_ST_8BIT_BUS (1 << 12)
/* HW flow control on the ST Micro version */
#define MCI_FCEN (1 << 13)
#define MCI_ST_FCEN (1 << 13)

#define MMCIARGUMENT 0x008
#define MMCICOMMAND 0x00c
Expand Down

0 comments on commit a45d0e0

Please sign in to comment.