diff mbox

[PATCH-V3] ARM: OMAP2+: cpu: Add am33xx device under cpu_class_is_omap2

Message ID 1344348841-19868-1-git-send-email-hvaibhav@ti.com (mailing list archive)
State New, archived
Headers show

Commit Message

Vaibhav Hiremath Aug. 7, 2012, 2:14 p.m. UTC
AM33XX device falls under omap2 class, so make cpu_class_is_omap2()
macro true by adding soc_is_am33xx() to existing list of cpu/soc
check.
This is required to unblock the basic boot support on AM335x platform.

Having done that, we still need to sort out properly from
common zImage point of view without having to maintain this
cpu/soc_is_xxx list.

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Cc: Tony Lindgren <tony@atomide.com>
---
This patch is boot tested on BeagleBone
(using already accepted hwmod patches)

Changes from V2:
	- This change is dropped now, since it breaks common zImage support.

Changes from V1:
	- No code change, added detailed description for common zImage
	  support.

 arch/arm/plat-omap/include/plat/cpu.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

--
1.7.0.4

Comments

Tony Lindgren Aug. 8, 2012, 2:24 p.m. UTC | #1
* Vaibhav Hiremath <hvaibhav@ti.com> [120807 07:15]:
> AM33XX device falls under omap2 class, so make cpu_class_is_omap2()
> macro true by adding soc_is_am33xx() to existing list of cpu/soc
> check.
> This is required to unblock the basic boot support on AM335x platform.
> 
> Having done that, we still need to sort out properly from
> common zImage point of view without having to maintain this
> cpu/soc_is_xxx list.

Thanks applying into fixes.

Tony
diff mbox

Patch

diff --git a/arch/arm/plat-omap/include/plat/cpu.h b/arch/arm/plat-omap/include/plat/cpu.h
index 68b180e..bb5d08a 100644
--- a/arch/arm/plat-omap/include/plat/cpu.h
+++ b/arch/arm/plat-omap/include/plat/cpu.h
@@ -372,7 +372,8 @@  IS_OMAP_TYPE(3430, 0x3430)
 #define cpu_class_is_omap1()	(cpu_is_omap7xx() || cpu_is_omap15xx() || \
 				cpu_is_omap16xx())
 #define cpu_class_is_omap2()	(cpu_is_omap24xx() || cpu_is_omap34xx() || \
-				cpu_is_omap44xx() || soc_is_omap54xx())
+				cpu_is_omap44xx() || soc_is_omap54xx() || \
+				soc_is_am33xx())

 /* Various silicon revisions for omap2 */
 #define OMAP242X_CLASS		0x24200024