Skip to content

Commit

Permalink
ARM: LPC32xx: Add further bits to MMC init
Browse files Browse the repository at this point in the history
This patch makes sure certain MMC bits are cleared as they should for
initialization.

Signed-off-by: Roland Stigge <stigge@antcom.de>
Acked-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
  • Loading branch information
Roland Stigge committed Jul 1, 2012
1 parent 5df5d01 commit b0d9ef0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion arch/arm/mach-lpc32xx/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,11 @@ static int mmc_onoff_enable(struct clk *clk, int enable)

tmp = __raw_readl(LPC32XX_CLKPWR_MS_CTRL) &
~(LPC32XX_CLKPWR_MSCARD_SDCARD_EN |
LPC32XX_CLKPWR_MSCARD_MSDIO_PU_EN);
LPC32XX_CLKPWR_MSCARD_MSDIO_PU_EN |
LPC32XX_CLKPWR_MSCARD_MSDIO_PIN_DIS |
LPC32XX_CLKPWR_MSCARD_MSDIO0_DIS |
LPC32XX_CLKPWR_MSCARD_MSDIO1_DIS |
LPC32XX_CLKPWR_MSCARD_MSDIO23_DIS);

/* If rate is 0, disable clock */
if (enable != 0)
Expand Down

0 comments on commit b0d9ef0

Please sign in to comment.