introduce basic omap4 feature framework
Signed-off-by: Nishanth Menon <[email protected]>
---
arch/arm/mach-omap2/id.c | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c
index 01555b6..e3f5994 100644
--- a/arch/arm/mach-omap2/id.c
+++ b/arch/arm/mach-omap2/id.c
@@ -267,6 +267,19 @@ static void __init omap3_check_revision(void)
}
}
+static void __init omap4_check_features(void)
+{
+ /*
+ * TODO: add a better check feature once we have
+ * more decent feature check
+ */
+ if (cpu_is_omap4430())
+ omap_features |= OMAP_HAS_L2CACHE |
+ OMAP_HAS_IVA |
+ OMAP_HAS_SGX |
+ OMAP_HAS_NEON;
+}
+
static void __init omap4_check_revision(void)
{
u32 idcode;
@@ -382,6 +395,7 @@ void __init omap2_check_revision(void)
return;
} else if (cpu_is_omap44xx()) {
omap4_check_revision();
+ omap4_check_features();
return;
} else {
pr_err("OMAP revision unknown, please fix!\n");
--
1.6.3.3
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html