All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] AM35xx: disable checking for reserved feature bits
@ 2011-11-08 23:51 Ilya Yanok
  2011-11-09  0:57 ` Kevin Hilman
  0 siblings, 1 reply; 7+ messages in thread
From: Ilya Yanok @ 2011-11-08 23:51 UTC (permalink / raw)
  To: linux-omap, wd, dzu, sasha_d; +Cc: Ilya Yanok

Bits corresponding to the IVA and ISP features in OMAP_STATUS register
are reserved on AM35xx and checking for them results in wrong results.
So we don't want to check for this features on AM35xx.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
---
 arch/arm/mach-omap2/id.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c
index 7f47092..40bab99 100644
--- a/arch/arm/mach-omap2/id.c
+++ b/arch/arm/mach-omap2/id.c
@@ -181,10 +181,8 @@ static void __init omap3_check_features(void)
 	status = omap_ctrl_readl(OMAP3_CONTROL_OMAP_STATUS);
 
 	OMAP3_CHECK_FEATURE(status, L2CACHE);
-	OMAP3_CHECK_FEATURE(status, IVA);
 	OMAP3_CHECK_FEATURE(status, SGX);
 	OMAP3_CHECK_FEATURE(status, NEON);
-	OMAP3_CHECK_FEATURE(status, ISP);
 	if (cpu_is_omap3630())
 		omap_features |= OMAP3_HAS_192MHZ_CLK;
 	if (cpu_is_omap3430() || cpu_is_omap3630())
@@ -192,6 +190,10 @@ static void __init omap3_check_features(void)
 	if (cpu_is_omap3630() || omap_rev() == OMAP3430_REV_ES3_1 ||
 	    omap_rev() == OMAP3430_REV_ES3_1_2)
 		omap_features |= OMAP3_HAS_IO_CHAIN_CTRL;
+	if (!cpu_is_omap3505() && !cpu_is_omap3517()) {
+		OMAP3_CHECK_FEATURE(status, IVA);
+		OMAP3_CHECK_FEATURE(status, ISP);
+	}
 
 	omap_features |= OMAP3_HAS_SDRC;
 
-- 
1.7.6.4


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-01-05  1:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-08 23:51 [PATCH] AM35xx: disable checking for reserved feature bits Ilya Yanok
2011-11-09  0:57 ` Kevin Hilman
2011-12-07 23:58   ` Tony Lindgren
2011-12-10  1:21     ` Kevin Hilman
2011-12-16 11:31       ` Hiremath, Vaibhav
2011-12-20 10:55       ` Hiremath, Vaibhav
2012-01-05  1:18         ` Kevin Hilman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.