aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/arch-davinci
diff options
context:
space:
mode:
authorSergei Shtylyov2011-09-23 04:29:15 +0000
committerAlbert ARIBAUD2011-10-27 21:56:34 +0200
commit9e2538e11fc87fb51cfde707fd5ffae086f1b467 (patch)
tree75cc65e733760507bdbdf2632dad4649d3e4a640 /arch/arm/include/asm/arch-davinci
parent53430a4f251eacc32ada54b56258cc18856d0d8e (diff)
DaVinci: correct MDSTAT.STATE mask
MDSTAT.STATE occupies bits 0..5 according to all available documentation, so fix the mask which previously was leaving out the intermediate state indicator bit. While at it, introduce two #define's for that mask -- unfortunately, we can't use a single #define as the assembly code can't include <asm/arch/hardware.h> due to C-specfic constructs in it. Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
Diffstat (limited to 'arch/arm/include/asm/arch-davinci')
-rw-r--r--arch/arm/include/asm/arch-davinci/hardware.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-davinci/hardware.h b/arch/arm/include/asm/arch-davinci/hardware.h
index b6a3209ff96..8e7b847f531 100644
--- a/arch/arm/include/asm/arch-davinci/hardware.h
+++ b/arch/arm/include/asm/arch-davinci/hardware.h
@@ -356,6 +356,8 @@ struct davinci_psc_regs {
#endif /* CONFIG_SOC_DA8XX */
+#define PSC_MDSTAT_STATE 0x3f
+
#ifndef CONFIG_SOC_DA8XX
/* Miscellania... */