Add support for OMAP35x processors
Subsystems (3)
cover Add support for OMAP35x processors
These patches provide support for the OMAP35x processors.
This is essentially a re-submit after series of discusions earlier in the list. It had always been getting pushed in my to-do list :(
See: http://marc.info/?l=linux-omap&m=122029900603111&w=2
Based on the comments received, this patch includes following:
1) Updates to Kconfig
2) Runtime check for OMAP35x
3) Updates to omap3_evm_defconfig
If the changes look good, I can make updates to Beagle, Overo and Pandora boards as well.
Best regards,
Sanjeev
Sanjeev Premi (3):
Add support for OMAP35x processors
Runitme check for OMAP35x
Updates for OMAP3EVM
arch/arm/configs/omap3_evm_defconfig | 5 ++ arch/arm/mach-omap2/Kconfig | 54 +++++++++++++++++- arch/arm/mach-omap2/board-omap3evm.c | 2 +- arch/arm/plat-omap/common.c | 68 +++++++++++++++++++++++ arch/arm/plat-omap/include/mach/common.h | 1 + arch/arm/plat-omap/include/mach/cpu.h | 88 +++++++++++++++++++++++++++++- 6 files changed, 212 insertions(+), 6 deletions(-)
Quoted 1 line
From
2be5d86821dd72c90eca438dbc5a1aa7237a9ebeMon Sep 17 00:00:00 2001
From: Sanjeev Premi <[email protected]>
Date: Fri, 9 Jan 2009 20:01:10 +0530
Subject: [PATCH 1/3] Add support for OMAP35x processors
This patch adds basic support for the OMAP35x Applications Processors. (See: http://focus.ti.com/general/docs/gencontent.tsp?contentId=46725)
- OMAP3503
- OMAP3515
- OMAP3525
- OMAP3530
--- arch/arm/mach-omap2/Kconfig | 54 ++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 51 insertions(+), 3 deletions(-)
arch/arm/mach-omap2/Kconfig +51 -3
@@ -28,6 +28,54 @@ config ARCH_OMAP3430 select ARCH_OMAP_OTG select CPU_V7 +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
@@ -107,7 +155,7 @@ config MACH_OMAP_2430SDP config MACH_OMAP_LDP bool "OMAP3 LDP board" - depends on ARCH_OMAP3 && ARCH_OMAP34XX + depends on ARCH_OMAP3 && ARCH_OMAP34XX && !ARCH_OMAP35XX config MACH_OMAP2EVM bool "OMAP 2530 EVM board"
@@ -115,11 +163,11 @@ config MACH_OMAP2EVM config MACH_OMAP_3430SDP bool "OMAP 3430 SDP board" - depends on ARCH_OMAP3 && ARCH_OMAP34XX + depends on ARCH_OMAP3 && ARCH_OMAP34XX && !ARCH_OMAP35XX 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
Quoted 1 line
From
bb61b0c052c8dcf164a98894d2728e40f1242ea2Mon Sep 17 00:00:00 2001
From: Sanjeev Premi <[email protected]>
Date: Fri, 9 Jan 2009 20:10:20 +0530
Subject: [PATCH 2/3] Runitme check for OMAP35x
Added runtime check via omap2_set_globals_35xx()
--- arch/arm/plat-omap/common.c | 68 +++++++++++++++++++++++ arch/arm/plat-omap/include/mach/common.h | 1 + arch/arm/plat-omap/include/mach/cpu.h | 88 +++++++++++++++++++++++++++++- 3 files changed, 155 insertions(+), 2 deletions(-)
arch/arm/plat-omap/common.c +68 -0
71 lines not on this page · raw message
arch/arm/plat-omap/include/mach/common.h +1 -0
@@ -60,6 +60,7 @@ struct omap_globals {void omap2_set_globals_242x (void );void omap2_set_globals_243x (void );void omap2_set_globals_343x (void ); +void omap2_set_globals_35xx (void );/* These get called from omap2_set_globals_xxxx(), do not call these */ void omap2_set_globals_tap (struct omap_globals *);
arch/arm/plat-omap/include/mach/cpu.h +86 -2
154 lines not on this page · raw message
Signature · 1 line
1.5.6
Quoted 1 line
From
140183aa07070a01f1f35d5d280cec922bfa5e44Mon Sep 17 00:00:00 2001
From: Sanjeev Premi <[email protected]>
Date: Fri, 9 Jan 2009 20:13:50 +0530
Subject: [PATCH 3/3] Updates for OMAP3EVM
Includes:
- Updates to default board configuration.
- Call function omap2_set_globals_35xx()
--- arch/arm/configs/omap3_evm_defconfig | 5 +++++ arch/arm/mach-omap2/board-omap3evm.c | 2 +- 2 files changed, 6 insertions(+), 1 deletions(-)
arch/arm/configs/omap3_evm_defconfig +5 -0
@@ -206,6 +206,11 @@ CONFIG_OMAP_LL_DEBUG_UART1=y CONFIG_OMAP_SERIAL_WAKE=y CONFIG_ARCH_OMAP34XX=y CONFIG_ARCH_OMAP3430=y +CONFIG_ARCH_OMAP35XX=y +CONFIG_ARCH_OMAP3503=y +# CONFIG_ARCH_OMAP3515 is not set +# CONFIG_ARCH_OMAP3525 is not set +# CONFIG_ARCH_OMAP3530 is not set # # OMAP Board Type
arch/arm/mach-omap2/board-omap3evm.c +1 -1
@@ -264,7 +264,7 @@ static void __init omap3_evm_init(void)static void __init omap3_evm_map_io (void ) { -omap2_set_globals_343x (); +omap2_set_globals_35xx ();omap2_map_common_io (); }
Signature · 1 line
1.5.6
Hi,
Quoted 63 lines
-----Original Message-----
From: [email protected] [mailto:linux-omap- [email protected]] On Behalf Of Premi, Sanjeev
Sent: Friday, January 09, 2009 9:02 AM
To: [email protected]
Cc: Premi, Sanjeev
Subject: [PATCH 0/3] Add support for OMAP35x processorsThese patches provide support for the OMAP35x processors.
This is essentially a re-submit after series of discusions earlier in the list. It had always been getting pushed in my to-do list :(
See: http://marc.info/?l=linux-omap&m=122029900603111&w=2Based on the comments received, this patch includes following:
1) Updates toKconfig
2) Runtime check for OMAP35x
3) Updates toomap3_evm_defconfigIf the changes look good, I can make updates to Beagle, Overo and Pandora boards as well.
Best regards,
SanjeevSanjeev Premi (3):
Add support for OMAP35x processors
Runitme check for OMAP35x
Updates for OMAP3EVMarch/arm/configs/omap3_evm_defconfig | 5 ++ arch/arm/mach-omap2/Kconfig | 54 +++++++++++++++++- arch/arm/mach-omap2/board-omap3evm.c | 2 +- arch/arm/plat-omap/common.c | 68 +++++++++++++++++++++++ arch/arm/plat-omap/include/mach/common.h | 1 + arch/arm/plat-omap/include/mach/cpu.h | 88 +++++++++++++++++++++++++++++- 6 files changed, 212 insertions(+), 6 deletions(-)From
2be5d86821dd72c90eca438dbc5a1aa7237a9ebeMon Sep 17 00:00:00 2001
From: Sanjeev Premi <[email protected]>
Date: Fri, 9 Jan 2009 20:01:10 +0530
Subject: [PATCH 1/3] Add support for OMAP35x processorsThis patch adds basic support for the OMAP35x Applications Processors. (See: http://focus.ti.com/general/docs/gencontent.tsp?contentId=46725)
- OMAP3503
- OMAP3515
- OMAP3525
- OMAP3530Signed-off-by Sanjeev Premi <[email protected]>--- arch/arm/mach-omap2/Kconfig | 54 ++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 51 insertions(+), 3 deletions(-)arch/arm/mach-omap2/Kconfig +0
-0
arch/arm/mach-omap2/Kconfig config ARCH_OMAP3430 · line 36
Quoted 9 lines
arch/arm/mach-omap2/Kconfig +6
-0@@ -28,6 +28,54 @@ config ARCH_OMAP3430 select ARCH_OMAP_OTG select CPU_V7 +config ARCH_OMAP35XX + bool "OMAP35x Family" + select ARCH_OMAP3 + select ARCH_OMAP34XX + select ARCH_OMAP3430 + select OMAP3430_ES2
AFAIK the above select (OMAP3430_ES2) doesn't exist. omap_rev() is used in drivers to check instead.
Quoted 58 lines
arch/arm/mach-omap2/Kconfig +43
-1+ 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@@ -107,7 +155,7 @@ config MACH_OMAP_2430SDP config MACH_OMAP_LDP bool "OMAP3 LDP board" - depends on ARCH_OMAP3 && ARCH_OMAP34XX + depends on ARCH_OMAP3 && ARCH_OMAP34XX && !ARCH_OMAP35XX config MACH_OMAP2EVM bool "OMAP 2530 EVM board"@@ -115,11 +163,11 @@ config MACH_OMAP2EVM config MACH_OMAP_3430SDP bool "OMAP 3430 SDP board"
arch/arm/mach-omap2/Kconfig config MACH_OMAP2EVM · line 173
Quoted 10 lines
arch/arm/mach-omap2/Kconfig +2
-2- depends on ARCH_OMAP3 && ARCH_OMAP34XX + depends on ARCH_OMAP3 && ARCH_OMAP34XX && !ARCH_OMAP35XX 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"
Question to all,
Why don't making above options as choice.. endchoice. Or is there any case that multiple boards are compiled at once?
Regards,
Sergio
<snip>
Quoted 9 lines
arch/arm/mach-omap2/Kconfig config ARCH_OMAP3430 · line 36
Quoted 6 lines
arch/arm/mach-omap2/Kconfig +6
-0+config ARCH_OMAP35XX + bool "OMAP35x Family" + select ARCH_OMAP3 + select ARCH_OMAP34XX + select ARCH_OMAP3430 + select OMAP3430_ES2AFAIK the above select (
OMAP3430_ES2) doesn't exist.omap_rev()is used in drivers to check instead.
[sp] Wasn't aware; will remove it.
Quoted 4 lines
Question to all,
Why don't making above options as choice.. endchoice. Or is there any case that multiple boards are compiled at once?
[sp] It is a quick change; will wait for a day - just in case there is a different opinion.
Quoted 3 lines
Regards,
Sergio
Best regards,
Sanjeev
Quoted 20 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Premi, Sanjeev
Sent: Friday, January 09, 2009 10:29 PM
To: Aguirre Rodriguez, Sergio Alberto; [email protected]
Subject: RE: [PATCH 0/3] Add support for OMAP35x processors<snip>
Quoted 9 lines
arch/arm/mach-omap2/Kconfig config ARCH_OMAP3430 · line 36
Quoted 6 lines
arch/arm/mach-omap2/Kconfig +6
-0+config ARCH_OMAP35XX + bool "OMAP35x Family" + select ARCH_OMAP3 + select ARCH_OMAP34XX + select ARCH_OMAP3430 + select OMAP3430_ES2AFAIK the above select (
OMAP3430_ES2) doesn't exist.omap_rev()is used in drivers to check instead.
Quoted 1 line
[sp] Wasn't aware; will remove it.
Done.
Quoted 9 lines
Quoted 4 lines
Question to all,
Why don't making above options as choice.. endchoice. Or is
there any
Quoted 1 line
case that multiple boards are compiled at once?
[sp] It is a quick change; will wait for a day - just in case there is a different opinion.
Done for OMAP3 boards only. There were few cases of circular dependency in H4 boards; and an additional "default" value set for MACH_OMAP2_TUSB6010 (line 109).
Though I was able to take care of circular dependency by moving the config items out of choice .. endchoice block, wasn't sure of impact if I removed the default value.
I will be sending the updated patches shortly. Hope we can use this patch-set as base; and people closely associated with other boards can make necessary changes to move other boards into the choice..endchoice block.
~sanjeev
Quoted 13 lines
Quoted 4 lines
Regards,
SergioBest regards,
Sanjeev--
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
Quoted 24 lines · Sergio Alberto
Quoted 24 lines
comment "OMAP Board Type"
depends onARCH_OMAP2||ARCH_OMAP3(quoted diff) +0
-0@@ -107,7 +155,7 @@ config MACH_OMAP_2430SDPconfig
MACH_OMAP_LDP
bool "OMAP3 LDP board"
- depends onARCH_OMAP3&&ARCH_OMAP34XX
+ depends onARCH_OMAP3&&ARCH_OMAP34XX&& !ARCH_OMAP35XXconfig
MACH_OMAP2EVM
bool "OMAP 2530 EVM board"(quoted diff) +0
-0@@ -115,11 +163,11 @@ config MACH_OMAP2EVMconfig
MACH_OMAP_3430SDP
bool "OMAP 3430 SDP board"
- depends onARCH_OMAP3&&ARCH_OMAP34XX
+ depends onARCH_OMAP3&&ARCH_OMAP34XX&& !ARCH_OMAP35XXconfig
MACH_OMAP3EVM
bool "OMAP 3530 EVM board"
- depends onARCH_OMAP3&&ARCH_OMAP34XX
+ depends onARCH_OMAP35XX
Quoted 6 lines
Quoted 2 lines
config
MACH_OMAP3_BEAGLE
bool "OMAP3 BEAGLE board"Question to all,
Why don't making above options as choice.. endchoice.
Because that completely breaks "multi-OMAP" builds. Having kernels build (and work!) with multiple boards has been a goal for some time now.
Switching that stuff to choice...endchoice would be a major regression. I wouldn't merge such a patch.
Quoted 1 line
Or is there any case that multiple boards are compiled at once?
Yes, it's routine to build kernels that work with multiple boards. Example, mine work on Beagle, Overo, and SDP.
Why do this? Several reasons, all of which boil down to better quality code. The most obvious ones are being able to build-test more systems in the same amount of time ... and then being able to run-test them without needing to waste any time worrying if the behavioral change was due to some odd Kconfig glitch, or is just a bug to fix in the code.
The more subtle issues have to do with the various changes that happen to make that work well. Example, board specific #ifdefs in code start to vanish ... which is good, since they hide lits of problems, and are nasty coding style regardless. Sometimes getting rid of such #ifdeffery highlights
a much better code structure.
Ditto CPU-specific #ifdeffery, of the type which these patches add. Fix them so they don't add #ifdeffery like that, and they will be a lot better accepted...
- Dave
--
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
Quoted 36 lines
From: David Brownell [[email protected]]
Sent: Sunday, January 11, 2009 12:54 AM
To: Aguirre Rodriguez, Sergio Alberto; Premi, Sanjeev
Cc: [email protected]
Subject: Re: [PATCH 0/3] Add support for OMAP35x processorsQuoted 29 lines · Sergio Alberto
Quoted 16 lines
comment "OMAP Board Type"
depends on ARCH_OMAP2 || ARCH_OMAP3arch/arm/mach-omap2/Kconfig +1
-1@@ -107,7 +155,7 @@ config MACH_OMAP_2430SDP config MACH_OMAP_LDP bool "OMAP3 LDP board" - depends on ARCH_OMAP3 && ARCH_OMAP34XX + depends on ARCH_OMAP3 && ARCH_OMAP34XX && !ARCH_OMAP35XX config MACH_OMAP2EVM bool "OMAP 2530 EVM board"@@ -115,11 +163,11 @@ config MACH_OMAP2EVM config MACH_OMAP_3430SDP bool "OMAP 3430 SDP board"arch/arm/mach-omap2/Kconfig config MACH_OMAP2EVM · line 173
Quoted 10 lines
arch/arm/mach-omap2/Kconfig +2
-2- depends on ARCH_OMAP3 && ARCH_OMAP34XX + depends on ARCH_OMAP3 && ARCH_OMAP34XX && !ARCH_OMAP35XX 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"Question to all,
Quoted 8 lines
Quoted 1 line
Why don't making above options as choice.. endchoice.
Because that completely breaks "multi-OMAP" builds. Having kernels build (and work!) with multiple boards has been a goal for some time now.
Switching that stuff to choice...endchoice would be a major regression. I wouldn't merge such a patch.
Ok, I understand what you're saying.. But I still have some questions:
- Is the above change for being able to select (for example) 3430SDP when !ARCH_OMAP35XX wrong? That won't allow a kernel with both 3430SDP and 3530EVM boards support to build, right?
- Do you think the above kind of check is redundant?:
depends on ARCH_OMAP3 && ARCH_OMAP34XX
Bc i don't think ARCH_OMAP34XX can be when !ARCH_OMAP3...
Thanks for your time,
Sergio
Quoted 34 lines
Quoted 3 lines
Or is there any case that multiple boards are compiled at once?
Yes, it's routine to build kernels that work with multiple boards. Example, mine work on Beagle, Overo, and SDP.
Why do this? Several reasons, all of which boil down to better quality code. The most obvious ones are being able to build-test more systems in the same amount of time ... and then being able to run-test them without needing to waste any time worrying if the behavioral change was due to some odd
Kconfigglitch, or is just a bug to fix in the code.The more subtle issues have to do with the various changes that happen to make that work well. Example, board specific #ifdefs in code start to vanish ... which is good, since they hide lits of problems, and are nasty coding style regardless. Sometimes getting rid of such #ifdeffery highlights
a much better code structure.Ditto CPU-specific #ifdeffery, of the type which these patches add. Fix them so they don't add #ifdeffery like that, and they will be a lot better accepted...
- Dave
<snip>
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
Question to all,
Why don't making above options as choice.. endchoice.
Because that completely breaks "multi-OMAP" builds. Having kernels build (and work!) with multiple boards has
Quoted 7 lines
been a goal
Quoted 4 lines
for some time now.
Switching that stuff to choice...endchoice would be a major regression. I wouldn't merge such a patch.
Ok, I understand what you're saying.. But I still have some questions:
[sp] In this case we can still use my earlier patch posted on 9th JAN.
Quoted 7 lines
- Is the above change for being able to select (for example) 3430SDP when !ARCH_OMAP35XX wrong? That won't allow a kernel with both 3430SDP and 3530EVM boards support to build, right?
- Do you think the above kind of check is redundant?:
depends onARCH_OMAP3&&ARCH_OMAP34XXBc i don't think
ARCH_OMAP34XXcan be when !ARCH_OMAP3...
[sp] If we look at only the ARM-Cortex A8, things don't look different but the other differences between OMAP34x and OMAP35x can be cause of concern someday.
<snip>
Best regards,
Sanjeev
Quoted 11 lines · Sanjeev Premi
These patches provide support for the OMAP35x processors.
This is essentially a re-submit after series of discusions earlier in the list. It had always been getting pushed in my to-do list :(
See: http://marc.info/?l=linux-omap&m=122029900603111&w=2Based on the comments received, this patch includes following:
1) Updates toKconfig
2) Runtime check for OMAP35x
3) Updates toomap3_evm_defconfig
Perhaps I'm being a bit clueless, but I'm not sure I see the benefit of specifying in the kernel config whether the OMAP SOC is a 3503, 3515, 3525, or 3530.
The processor is the same ARM Cortex-A8 in all cases. Code that may want to use the graphics accelerator or DSP can easily check for the presence of each at run time (Control OMAP Status Register @ 0x4800244C)
Is there something I am missing?
Steve
Quoted 10 lines · Steve Sakoman
Perhaps I'm being a bit clueless, but I'm not sure I see the benefit of specifying in the kernel config whether the OMAP SOC is a 3503, 3515, 3525, or 3530.
The processor is the same ARM Cortex-A8 in all cases. Code that may want to use the graphics accelerator or DSP can easily check for the presence of each at run time (Control OMAP Status Register @
0x4800244C)Is there something I am missing?
I suspect the advantage would be the ability to remove some code at compile/link time rather having it linger in the executable image. If it's not got the C64x+ DSP then don't register the DSP bridge ... when done right, that ensures the bridge code won't even be in the target image.
It's sort of like the flip side of being able to enable just a few boards out of a dozen possible. Code for the other boards isn't included, but the kernel is still powerful enough to run on more than a single board. (Which is great for testing, version management, and all that kind of stuff.)
- Dave
--
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