Skip to contentSkip to conversation

Added support for OMAP35x processor series

PATCH In review Sanjeev Premi 4 participants 7 messages Aug 1, 2008 – Aug 5, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Added support for OMAP35x processor series

This patch adds basic support for the OMAP35x Applications Processors. (See: http://focus.ti.com/general/docs/gencontent.tsp?contentId=46725)

As you will notice, NEON SIMD coprocessor is enabled by default for these processors.

---
 arch/arm/mach-omap2/Kconfig |   50 ++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 49 insertions(+), 1 deletions(-)
arch/arm/mach-omap2/Kconfig +49 -1
index bb6d695..63d7cdd 100644
@@ -25,6 +25,54 @@ config ARCH_OMAP3430
 	depends on ARCH_OMAP3 && ARCH_OMAP34XX
 	select ARCH_OMAP_OTG
 
+config ARCH_OMAP35XX
+	bool "OMAP35x Family"
+	select ARCH_OMAP3
+	select ARCH_OMAP34XX
+	select ARCH_OMAP3430
+	select OMAP3430_ES2
+	select NEON
+	help
+	  OMAP35x family of processors based on ARM Cortex-A8
+	  in combination with IVA2.2 core and OpenGL ES2.0
+	  compatible graphics engine.
+
+	  ARM Cortex-A8 contains NEON SIMD coprocessor.
+
+choice
+	prompt "Current choice"
+	default ARCH_OMAP3503
+
+config ARCH_OMAP3503
+	bool "OMAP3503"
+	depends on ARCH_OMAP35XX
+	help
+	  Contains ARM Cortex-A8 processor.
+
+config ARCH_OMAP3515
+	bool "OMAP3515"
+	depends on ARCH_OMAP35XX
+	help
+	   Contains ARM Cortex-A8 processor and SGX530 subsystem
+	   for 2D and 3D graphics acceleration.
+
+config ARCH_OMAP3525
+	bool "OMAP3525"
+	depends on ARCH_OMAP35XX
+	help
+	  Contains ARM Cortex-A8 processor and IVA2.2 subsystem
+	  with a C64x+ DSP core.
+
+config ARCH_OMAP3530
+	bool "OMAP3530"
+	depends on ARCH_OMAP35XX
+	help
+	   Contains ARM Cortex-A8 processor, IVA2.2 subsystem
+	   with a C64x+ DSP Core and SGX530 subsystem for 2D
+	   and 3D graphics acceleration.
+
+endchoice
+
 comment "OMAP Board Type"
 	depends on ARCH_OMAP2 || ARCH_OMAP3
 
@@ -117,7 +165,7 @@ config MACH_OMAP_3430SDP
 
 config MACH_OMAP3EVM
 	bool "OMAP 3530 EVM board"
-	depends on ARCH_OMAP3 && ARCH_OMAP34XX
+	depends on ARCH_OMAP35XX
 
 config MACH_OMAP3_BEAGLE
 	bool "OMAP3 BEAGLE board"
Signature · 1 line
1.5.6
maintainer
#1 lore raw
Quoted 5 lines · Sanjeev Premi

This patch adds basic support for the OMAP35x Applications Processors. (See: http://focus.ti.com/general/docs/gencontent.tsp?contentId=46725)

As you will notice, NEON SIMD coprocessor is enabled by default for these processors.

Do we really need this? To me it seems like our CPU detection should figure out the processor is 34xx and specifically 35xx something.

Are there Cortex A8 processors with no Neon hardware?

Tony

Quoted 80 lines
---
 arch/arm/mach-omap2/Kconfig |   50 ++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 49 insertions(+), 1 deletions(-)
arch/arm/mach-omap2/Kconfig +49 -1
index bb6d695..63d7cdd 100644
@@ -25,6 +25,54 @@ config ARCH_OMAP3430
 	depends on ARCH_OMAP3 && ARCH_OMAP34XX
 	select ARCH_OMAP_OTG
 
+config ARCH_OMAP35XX
+	bool "OMAP35x Family"
+	select ARCH_OMAP3
+	select ARCH_OMAP34XX
+	select ARCH_OMAP3430
+	select OMAP3430_ES2
+	select NEON
+	help
+	  OMAP35x family of processors based on ARM Cortex-A8
+	  in combination with IVA2.2 core and OpenGL ES2.0
+	  compatible graphics engine.
+
+	  ARM Cortex-A8 contains NEON SIMD coprocessor.
+
+choice
+	prompt "Current choice"
+	default ARCH_OMAP3503
+
+config ARCH_OMAP3503
+	bool "OMAP3503"
+	depends on ARCH_OMAP35XX
+	help
+	  Contains ARM Cortex-A8 processor.
+
+config ARCH_OMAP3515
+	bool "OMAP3515"
+	depends on ARCH_OMAP35XX
+	help
+	   Contains ARM Cortex-A8 processor and SGX530 subsystem
+	   for 2D and 3D graphics acceleration.
+
+config ARCH_OMAP3525
+	bool "OMAP3525"
+	depends on ARCH_OMAP35XX
+	help
+	  Contains ARM Cortex-A8 processor and IVA2.2 subsystem
+	  with a C64x+ DSP core.
+
+config ARCH_OMAP3530
+	bool "OMAP3530"
+	depends on ARCH_OMAP35XX
+	help
+	   Contains ARM Cortex-A8 processor, IVA2.2 subsystem
+	   with a C64x+ DSP Core and SGX530 subsystem for 2D
+	   and 3D graphics acceleration.
+
+endchoice
+
 comment "OMAP Board Type"
 	depends on ARCH_OMAP2 || ARCH_OMAP3
 
@@ -117,7 +165,7 @@ config MACH_OMAP_3430SDP
 
 config MACH_OMAP3EVM
 	bool "OMAP 3530 EVM board"
-	depends on ARCH_OMAP3 && ARCH_OMAP34XX
+	depends on ARCH_OMAP35XX
 
 config MACH_OMAP3_BEAGLE
 	bool "OMAP3 BEAGLE board"
Signature · 6 lines
1.5.6

--
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
#2 lore raw

This patch is needed to ensure that we can make decisions based on the processor capabilities. E.g. OMAP3503 does not contain a DSP. We shouldn't be trying to disable/ manage the clocks for DSP on this processor. Same for SGX.

Enabling NEON is support iby default is just based on the number of requests I have been getting from various users.

Best regards,
Sanjeev

-----Original Message-----
From: Tony Lindgren [mailto:[email protected]]
Sent: Tuesday, August 05, 2008 2:55 PM
To: Premi, Sanjeev
Cc: [email protected]
Subject: Re: [PATCH] Added support for OMAP35x processor series

Quoted 5 lines · Sanjeev Premi

This patch adds basic support for the OMAP35x Applications Processors. (See: http://focus.ti.com/general/docs/gencontent.tsp?contentId=46725)

As you will notice, NEON SIMD coprocessor is enabled by default for these processors.

Do we really need this? To me it seems like our CPU detection should figure out the processor is 34xx and specifically 35xx something.

Are there Cortex A8 processors with no Neon hardware?

Tony

Quoted 80 lines
---
 arch/arm/mach-omap2/Kconfig |   50 ++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 49 insertions(+), 1 deletions(-)
arch/arm/mach-omap2/Kconfig +49 -2
index bb6d695..63d7cdd 100644
@@ -25,6 +25,54 @@ config ARCH_OMAP3430
      depends on ARCH_OMAP3 && ARCH_OMAP34XX
      select ARCH_OMAP_OTG
 
+config ARCH_OMAP35XX
+     bool "OMAP35x Family"
+     select ARCH_OMAP3
+     select ARCH_OMAP34XX
+     select ARCH_OMAP3430
+     select OMAP3430_ES2
+     select NEON
+     help
+       OMAP35x family of processors based on ARM Cortex-A8
+       in combination with IVA2.2 core and OpenGL ES2.0
+       compatible graphics engine.
+
+       ARM Cortex-A8 contains NEON SIMD coprocessor.
+
+choice
+     prompt "Current choice"
+     default ARCH_OMAP3503
+
+config ARCH_OMAP3503
+     bool "OMAP3503"
+     depends on ARCH_OMAP35XX
+     help
+       Contains ARM Cortex-A8 processor.
+
+config ARCH_OMAP3515
+     bool "OMAP3515"
+     depends on ARCH_OMAP35XX
+     help
+        Contains ARM Cortex-A8 processor and SGX530 subsystem
+        for 2D and 3D graphics acceleration.
+
+config ARCH_OMAP3525
+     bool "OMAP3525"
+     depends on ARCH_OMAP35XX
+     help
+       Contains ARM Cortex-A8 processor and IVA2.2 subsystem
+       with a C64x+ DSP core.
+
+config ARCH_OMAP3530
+     bool "OMAP3530"
+     depends on ARCH_OMAP35XX
+     help
+        Contains ARM Cortex-A8 processor, IVA2.2 subsystem
+        with a C64x+ DSP Core and SGX530 subsystem for 2D
+        and 3D graphics acceleration.
+
+endchoice
+
 comment "OMAP Board Type"
      depends on ARCH_OMAP2 || ARCH_OMAP3
 
@@ -117,7 +165,7 @@ config MACH_OMAP_3430SDP
 
 config MACH_OMAP3EVM
      bool "OMAP 3530 EVM board"
-     depends on ARCH_OMAP3 && ARCH_OMAP34XX
+     depends on ARCH_OMAP35XX
 
 config MACH_OMAP3_BEAGLE
      bool "OMAP3 BEAGLE board"
--

1.5.6

--
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

#3 lore raw
Quoted 3 lines · Sanjeev

This patch is needed to ensure that we can make decisions based on the processor capabilities. E.g. OMAP3503 does not contain a DSP. We shouldn't be trying to disable/ manage the clocks for DSP on this processor. Same for SGX.

Why can't the detection happen at runtime?

Quoted 2 lines

Enabling NEON is support iby default is just based on the number of requests I have been getting from various users.

Huh?

Signature · 6 lines
Cheers, Igor

---

Igor Stoppa
Maemo Software - Nokia Devices R&D - Helsinki
#4 lore raw

Op 5 aug 2008, om 11:50 heeft Igor Stoppa het volgende geschreven:

Quoted 6 lines · Sanjeev
Quoted 3 lines

This patch is needed to ensure that we can make decisions based on the processor capabilities. E.g. OMAP3503 does not contain a DSP. We shouldn't be trying to disable/ manage the clocks for DSP on this processor. Same for SGX.

Why can't the detection happen at runtime?

AIUI the ID bits are the same (linux misdetect the 3530 on my beagle for a 3430). I heard that the only definitive way to do it at runtime is to CRC check the ROM code.

Jason, is that correct?

regards,

Koen

Quoted 19 lines
Quoted 2 lines

Enabling NEON is support iby default is just based on the number of requests I have been getting from various users.

Huh?

Signature · 10 lines
Cheers, Igor

---

Igor Stoppa
Maemo Software - Nokia Devices R&D - Helsinki
--
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
#6 lore raw
In reply to Igor Stoppa
Quoted 1 line

Why can't the detection happen at runtime?

No mechanism as of now.

~sanjeev

-----Original Message-----
From: Igor Stoppa [mailto:[email protected]]
Sent: Tuesday, August 05, 2008 3:21 PM
To: Premi, Sanjeev
Cc: Tony Lindgren; [email protected]
Subject: RE: [PATCH] Added support for OMAP35x processor series

Quoted 3 lines · Sanjeev

This patch is needed to ensure that we can make decisions based on the processor capabilities. E.g. OMAP3503 does not contain a DSP. We shouldn't be trying to
disable/ manage the clocks for DSP on this processor. Same for SGX.

Why can't the detection happen at runtime?

Quoted 2 lines

Enabling NEON is support iby default is just based on the number of requests I have been getting from various users.

Huh?

[sp] Linux releases on OMAP35x based on 2.6.22 are available for download since MAR '08.

--

Cheers, Igor

---

Igor Stoppa
Maemo Software - Nokia Devices R&D - Helsinki

#5 lore raw
In reply to Koen Kooi

A configure time selection will be definitive.

Best regards,
Sanjeev

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Koen Kooi
Sent: Tuesday, August 05, 2008 3:41 PM
To: [email protected]
Cc: Kridner, Jason
Subject: Re: [PATCH] Added support for OMAP35x processor series

Op 5 aug 2008, om 11:50 heeft Igor Stoppa het volgende geschreven:

Quoted 7 lines · Sanjeev
Quoted 4 lines

This patch is needed to ensure that we can make decisions based on the processor capabilities.
E.g. OMAP3503 does not contain a DSP. We shouldn't be trying to disable/ manage the clocks for DSP on this processor. Same for SGX.

Why can't the detection happen at runtime?

AIUI the ID bits are the same (linux misdetect the 3530 on my beagle for a 3430). I heard that the only definitive way to do it at runtime is to CRC check the ROM code.

Jason, is that correct?

regards,

Koen

Quoted 19 lines
Quoted 2 lines

Enabling NEON is support iby default is just based on the number of requests I have been getting from various users.

Huh?

--

Cheers, Igor

---

Igor Stoppa
Maemo Software - Nokia Devices R&D - Helsinki
--
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