]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ARM: AM43XX: hwmod: Fix RSTST register offset for pruss
authorKeerthy <j-keerthy@ti.com>
Mon, 20 Jun 2016 03:52:25 +0000 (09:22 +0530)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 20 Nov 2016 01:16:41 +0000 (01:16 +0000)
commit b00ccf5b684992829610d162e78a7836933a1b19 upstream.

pruss hwmod RSTST register wrongly points to PWRSTCTRL register in case of
am43xx. Fix the RSTST register offset value.

This can lead to setting of wrong power state values for PER domain.

Fixes: 1c7e224d ("ARM: OMAP2+: hwmod: AM335x: runtime register update")
Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c
arch/arm/mach-omap2/prcm43xx.h

index a579b89ce9b733a425e5ad9719ed2056783afbba..b08605cc93ff905ea4e18aaeb8395f18b2d62b9b 100644 (file)
@@ -1460,6 +1460,7 @@ static void omap_hwmod_am43xx_rst(void)
 {
        RSTCTRL(am33xx_pruss_hwmod, AM43XX_RM_PER_RSTCTRL_OFFSET);
        RSTCTRL(am33xx_gfx_hwmod, AM43XX_RM_GFX_RSTCTRL_OFFSET);
+       RSTST(am33xx_pruss_hwmod, AM43XX_RM_PER_RSTST_OFFSET);
        RSTST(am33xx_gfx_hwmod, AM43XX_RM_GFX_RSTST_OFFSET);
 }
 
index 7785be984edd2dd5fd3f9208c73bc0e177b4d3a6..4c60d3464a879fa0f68a8e95af3a5becdeefdc96 100644 (file)
@@ -32,6 +32,7 @@
 
 /* RM RSTST offsets */
 #define AM43XX_RM_GFX_RSTST_OFFSET                     0x0014
+#define AM43XX_RM_PER_RSTST_OFFSET                     0x0014
 #define AM43XX_RM_WKUP_RSTST_OFFSET                    0x0014
 
 /* CM instances */