summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/omap_common.h
diff options
context:
space:
mode:
authorRajendra Nayak <rnayak@ti.com>2014-07-18 11:18:48 +0530
committerTom Rini <trini@ti.com>2014-07-25 16:26:11 -0400
commit8c16dd6fa7de448b36778275b456bf4ea53c3306 (patch)
tree25408925f8f0cfc2b15995233b9d29b5ca2b9ed5 /arch/arm/include/asm/omap_common.h
parenta906847966fd097835712b2ad3b5bac340793d43 (diff)
downloadtalos-obmc-uboot-8c16dd6fa7de448b36778275b456bf4ea53c3306.tar.gz
talos-obmc-uboot-8c16dd6fa7de448b36778275b456bf4ea53c3306.zip
ARM: OMAP: Fix handling of errata i727
The errata is applicable on all OMAP4 (4430 and 4460/4470) and OMAP5 ES 1.0 devices. The current revision check erroneously implements this on all DRA7 varients and with DRA722 device (which has only 1 EMIF instance) infact causes an asynchronous abort and ends up masking it in CPSR, only to be uncovered once the kernel switches to userspace. Signed-off-by: Rajendra Nayak <rnayak@ti.com> Signed-off-by: Sricharan R <r.sricharan@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'arch/arm/include/asm/omap_common.h')
-rw-r--r--arch/arm/include/asm/omap_common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/include/asm/omap_common.h b/arch/arm/include/asm/omap_common.h
index d1344ee94c..183823404d 100644
--- a/arch/arm/include/asm/omap_common.h
+++ b/arch/arm/include/asm/omap_common.h
@@ -595,6 +595,14 @@ static inline u32 omap_revision(void)
return *omap_si_rev;
}
+#define OMAP44xx 0x44000000
+
+static inline u8 is_omap44xx(void)
+{
+ extern u32 *const omap_si_rev;
+ return (*omap_si_rev & 0xFF000000) == OMAP44xx;
+};
+
#define OMAP54xx 0x54000000
static inline u8 is_omap54xx(void)
OpenPOWER on IntegriCloud