tegra: pmc: work around power domain failure
Sometimes a power domain didn't properly power up, reading back the command register seems to fix this by flushing the write. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
7d60a02034
commit
7cf0a3ea2b
|
@ -53,6 +53,8 @@ static int tegra_powergate_set(int id, bool new_state)
|
|||
}
|
||||
|
||||
writel(PMC_PWRGATE_TOGGLE_START | id, pmc_base + PMC_PWRGATE_TOGGLE);
|
||||
/* I don't know exactly why this is needed, seems to flush the write */
|
||||
readl(pmc_base + PMC_PWRGATE_TOGGLE);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue