mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-19 09:26:15 +07:00
ARM: LPC32xx: Init MMC via clock
This patch moves MMC/SD controller initialization from the board specific file phy3250.c to clock.c. Signed-off-by: Roland Stigge <stigge@antcom.de> Acked-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
This commit is contained in:
parent
df072717eb
commit
5df5d01dd0
@ -812,11 +812,13 @@ static int mmc_onoff_enable(struct clk *clk, int enable)
|
||||
u32 tmp;
|
||||
|
||||
tmp = __raw_readl(LPC32XX_CLKPWR_MS_CTRL) &
|
||||
~LPC32XX_CLKPWR_MSCARD_SDCARD_EN;
|
||||
~(LPC32XX_CLKPWR_MSCARD_SDCARD_EN |
|
||||
LPC32XX_CLKPWR_MSCARD_MSDIO_PU_EN);
|
||||
|
||||
/* If rate is 0, disable clock */
|
||||
if (enable != 0)
|
||||
tmp |= LPC32XX_CLKPWR_MSCARD_SDCARD_EN;
|
||||
tmp |= LPC32XX_CLKPWR_MSCARD_SDCARD_EN |
|
||||
LPC32XX_CLKPWR_MSCARD_MSDIO_PU_EN;
|
||||
|
||||
__raw_writel(tmp, LPC32XX_CLKPWR_MS_CTRL);
|
||||
|
||||
|
@ -262,11 +262,6 @@ static void __init lpc3250_machine_init(void)
|
||||
|
||||
lpc32xx_serial_init();
|
||||
|
||||
tmp = __raw_readl(LPC32XX_CLKPWR_MS_CTRL);
|
||||
tmp |= LPC32XX_CLKPWR_MSCARD_SDCARD_EN |
|
||||
LPC32XX_CLKPWR_MSCARD_MSDIO_PU_EN;
|
||||
__raw_writel(tmp, LPC32XX_CLKPWR_MS_CTRL);
|
||||
|
||||
/* Test clock needed for UDA1380 initial init */
|
||||
__raw_writel(LPC32XX_CLKPWR_TESTCLK2_SEL_MOSC |
|
||||
LPC32XX_CLKPWR_TESTCLK_TESTCLK2_EN,
|
||||
|
Loading…
Reference in New Issue
Block a user