aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/powerdomain.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/powerdomain.c')
-rw-r--r--arch/arm/mach-omap2/powerdomain.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/powerdomain.c b/arch/arm/mach-omap2/powerdomain.c
index 47d576883d5c..26b3f3ee82a3 100644
--- a/arch/arm/mach-omap2/powerdomain.c
+++ b/arch/arm/mach-omap2/powerdomain.c
@@ -983,6 +983,9 @@ int pwrdm_read_mem_pwrst(struct powerdomain *pwrdm, u8 bank)
983 if (pwrdm->banks < (bank + 1)) 983 if (pwrdm->banks < (bank + 1))
984 return -EEXIST; 984 return -EEXIST;
985 985
986 if (pwrdm->flags & PWRDM_HAS_MPU_QUIRK)
987 bank = 1;
988
986 /* 989 /*
987 * The register bit names below may not correspond to the 990 * The register bit names below may not correspond to the
988 * actual names of the bits in each powerdomain's register, 991 * actual names of the bits in each powerdomain's register,
@@ -1030,6 +1033,9 @@ int pwrdm_read_prev_mem_pwrst(struct powerdomain *pwrdm, u8 bank)
1030 if (pwrdm->banks < (bank + 1)) 1033 if (pwrdm->banks < (bank + 1))
1031 return -EEXIST; 1034 return -EEXIST;
1032 1035
1036 if (pwrdm->flags & PWRDM_HAS_MPU_QUIRK)
1037 bank = 1;
1038
1033 /* 1039 /*
1034 * The register bit names below may not correspond to the 1040 * The register bit names below may not correspond to the
1035 * actual names of the bits in each powerdomain's register, 1041 * actual names of the bits in each powerdomain's register,