From 7cf0a3ea2bb07bd02dfe22a81d34c8614e72f52c Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Sun, 2 Nov 2014 21:13:49 +0100 Subject: 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 Signed-off-by: Sascha Hauer --- arch/arm/mach-tegra/tegra20-pmc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch/arm/mach-tegra') diff --git a/arch/arm/mach-tegra/tegra20-pmc.c b/arch/arm/mach-tegra/tegra20-pmc.c index 4cd01ffc29..dcd2978109 100644 --- a/arch/arm/mach-tegra/tegra20-pmc.c +++ b/arch/arm/mach-tegra/tegra20-pmc.c @@ -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; } -- cgit v1.2.3