Skip to contentSkip to conversation

omap Kconfig improvments for 2.6.36 merge window

PATCH New Tony Lindgren 3 participants 16 messages Jun 29, 2010 – Jul 1, 2010

Subsystems (6)
lore
Share & tools
lore

Tony Lindgren

author maintainer
#0 lore raw

cover omap Kconfig improvments for 2.6.36 merge window

Hi all,

Here are some Kconfig improvments to produce a mostly sane .config for omap2/3/4 without a defconfig. This assumes that CONFIG_ARCH_OMAP is selected, for example with:

$ echo "CONFIG_ARCH_OMAP=y" > .config && yes "" | ARCH=arm make oldconfig

or

$ rm .config; ARCH=arm make xconfig, then select System Type -> TI OMAP

Regards,

Tony

---

Tony Lindgren (6):
omap: Disable VGA console for omaps
omap: Use 32KiHZ timer by default
omap: Make omap specific features appear under Kconfig menu omap2/3/4: Move Kconfig options to mach-omap2/Kconfig omap2/3/4: Select all omaps and boards by default omap2/3/4: Add Kconfig option to compile in typical omap features

 arch/arm/mach-omap1/Kconfig   |    7 ++++
 arch/arm/mach-omap2/Kconfig   |   74 +++++++++++++++++++++++++++++++++++++++++
 arch/arm/plat-omap/Kconfig    |   22 +-----------
 drivers/video/console/Kconfig |    2 +
 4 files changed, 84 insertions(+), 21 deletions(-)
Signature · 1 line
Signature
author maintainer
#1 lore raw

PATCH 1/6 omap: Disable VGA console for omaps

Otherwise we have to disable it manually to avoid compile errors.

---
 drivers/video/console/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/console/Kconfig +1 -1
index 8e8f18d..467a966 100644
@@ -6,7 +6,7 @@ menu "Console display driver support"
 
 config VGA_CONSOLE
 	bool "VGA text console" if EMBEDDED || !X86
-	depends on !ARCH_ACORN && !ARCH_EBSA110 && !4xx && !8xx && !SPARC && !M68K && !PARISC && !FRV && !ARCH_VERSATILE && !SUPERH && !BLACKFIN && !AVR32 && !MN10300
+	depends on !ARCH_ACORN && !ARCH_EBSA110 && !4xx && !8xx && !SPARC && !M68K && !PARISC && !FRV && !ARCH_VERSATILE && !SUPERH && !BLACKFIN && !AVR32 && !MN10300 && !ARCH_OMAP
 	default y
 	help
 	  Saying Y here will allow you to use Linux in text mode through a
#2 lore raw

PATCH 1/6 omap: Disable VGA console for omaps

Quoted 4 lines · Tony Lindgren

Otherwise we have to disable it manually to avoid compile errors.

Cc linux-fbdev at vger.kernel.org

We'll need this for mach-cns3xxx too. And doing that change for every ARM subarch is going to produce lots of rejects.

I'd suggest to disable (or make it 'default n') for all ARMs, except these:

$ git grep VGA_CONSOLE= arch/arm/configs/
arch/arm/configs/footbridge_defconfig:CONFIG_VGA_CONSOLE=y
arch/arm/configs/integrator_defconfig:CONFIG_VGA_CONSOLE=y
arch/arm/configs/netwinder_defconfig:CONFIG_VGA_CONSOLE=y

Thanks!

Quoted 17 lines
---
 drivers/video/console/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/console/Kconfig +1 -1
index 8e8f18d..467a966 100644
@@ -6,7 +6,7 @@ menu "Console display driver support"
 
 config VGA_CONSOLE
 	bool "VGA text console" if EMBEDDED || !X86
-	depends on !ARCH_ACORN && !ARCH_EBSA110 && !4xx && !8xx && !SPARC && !M68K && !PARISC && !FRV && !ARCH_VERSATILE && !SUPERH && !BLACKFIN && !AVR32 && !MN10300
+	depends on !ARCH_ACORN && !ARCH_EBSA110 && !4xx && !8xx && !SPARC && !M68K && !PARISC && !FRV && !ARCH_VERSATILE && !SUPERH && !BLACKFIN && !AVR32 && !MN10300 && !ARCH_OMAP
 	default y
 	help
 	  Saying Y here will allow you to use Linux in text mode through a
Signature · 3 lines
Anton Vorontsov
email: cbouatmailru at gmail.com
irc://irc.freenode.net/bd2
author maintainer
#3 lore raw

PATCH 1/6 omap: Disable VGA console for omaps

Quoted 9 lines · Anton Vorontsov
Quoted 4 lines · Tony Lindgren

Otherwise we have to disable it manually to avoid compile errors.

We'll need this for mach-cns3xxx too. And doing that change for every ARM subarch is going to produce lots of rejects.

Quoted 7 lines

I'd suggest to disable (or make it 'default n') for all ARMs, except these:

$ git grep VGA_CONSOLE= arch/arm/configs/
arch/arm/configs/footbridge_defconfig:CONFIG_VGA_CONSOLE=y
arch/arm/configs/integrator_defconfig:CONFIG_VGA_CONSOLE=y
arch/arm/configs/netwinder_defconfig:CONFIG_VGA_CONSOLE=y

Good idea, will post a modified patch tomorrow.

Tony

author maintainer
#4 lore raw

PATCH 1/1 ARM: Disable VGA console for ARM in most cases (Re: [PATCH 1/6] omap: Disable VGA console for omaps)

Quoted 13 lines · Tony Lindgren
Quoted 12 lines · Anton Vorontsov
Quoted 4 lines · Tony Lindgren

Otherwise we have to disable it manually to avoid compile errors.

We'll need this for mach-cns3xxx too. And doing that change for every ARM subarch is going to produce lots of rejects.

I'd suggest to disable (or make it 'default n') for all ARMs, except these:

Quoted 6 lines
Quoted 4 lines
$ git grep VGA_CONSOLE= arch/arm/configs/
arch/arm/configs/footbridge_defconfig:CONFIG_VGA_CONSOLE=y
arch/arm/configs/integrator_defconfig:CONFIG_VGA_CONSOLE=y
arch/arm/configs/netwinder_defconfig:CONFIG_VGA_CONSOLE=y

Good idea, will post a modified patch tomorrow.

Here's this one updated.

Tony

From: Tony Lindgren <[email protected]>
Date: Wed, 30 Jun 2010 09:08:23 +0300
Subject: [PATCH] ARM: Disable VGA console for ARM in most cases

Otherwise we have to disable it manually to avoid compile errors.

Now it's only enabled only for the selected machines as suggested by Anton Vorontsov <[email protected]>:

$ git grep VGA_CONSOLE= arch/arm/configs/
arch/arm/configs/footbridge_defconfig:CONFIG_VGA_CONSOLE=y
arch/arm/configs/integrator_defconfig:CONFIG_VGA_CONSOLE=y
arch/arm/configs/netwinder_defconfig:CONFIG_VGA_CONSOLE=y

Note that the Kconfig entry no longer needs separate entries for ARCH_ACORN, ARCH_EBSA110 ARCH_VERSATILE.

drivers/video/console/Kconfig +1 -1
index 8e8f18d..5a35f22 100644
@@ -6,7 +6,7 @@ menu "Console display driver support"
 
 config VGA_CONSOLE
 	bool "VGA text console" if EMBEDDED || !X86
-	depends on !ARCH_ACORN && !ARCH_EBSA110 && !4xx && !8xx && !SPARC && !M68K && !PARISC && !FRV && !ARCH_VERSATILE && !SUPERH && !BLACKFIN && !AVR32 && !MN10300
+	depends on !4xx && !8xx && !SPARC && !M68K && !PARISC && !FRV && !SUPERH && !BLACKFIN && !AVR32 && !MN10300 && (!ARM || ARCH_FOOTBRIDGE || ARCH_INTEGRATOR || ARCH_NETWINDER)
 	default y
 	help
 	  Saying Y here will allow you to use Linux in text mode through a
author maintainer
#5 lore raw

PATCH 2/6 omap: Use 32KiHZ timer by default

In reply to Tony Lindgren

Use 32KiHZ timer by default as this is available on all omaps except 15xx based systems.

---
 arch/arm/plat-omap/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/plat-omap/Kconfig +1 -1
index 78b49a6..3e2e7a8 100644
@@ -120,7 +120,7 @@ config OMAP_IOMMU_DEBUG
 
 choice
 	prompt "System timer"
-	default OMAP_MPU_TIMER
+	default OMAP_32K_TIMER if !ARCH_OMAP15XX
 
 config OMAP_MPU_TIMER
 	bool "Use mpu timer"
author maintainer
#6 lore raw

PATCH 3/6 omap: Make omap specific features appear under Kconfig menu

In reply to Tony Lindgren

This will make Kconfig look nicer for selecting omap processor type

---
 arch/arm/mach-omap1/Kconfig |    7 +++++++
 arch/arm/mach-omap2/Kconfig |    7 +++++++
 arch/arm/plat-omap/Kconfig  |    2 +-
 3 files changed, 15 insertions(+), 1 deletions(-)
arch/arm/mach-omap1/Kconfig +7 -0
index b18d7c2..c911cdb 100644
@@ -1,3 +1,7 @@
+if ARCH_OMAP1
+
+menu "TI OMAP1 specific features"
+
 comment "OMAP Core Type"
 	depends on ARCH_OMAP1
 
@@ -237,3 +241,6 @@ config OMAP_ARM_30MHZ
 	help
           Enable 30MHz clock for OMAP CPU. If unsure, say N.
 
+endmenu
+
+endif
arch/arm/mach-omap2/Kconfig +7 -0
index f67f037..e94ee6b 100644
@@ -1,3 +1,7 @@
+if ARCH_OMAP2PLUS
+
+menu "TI OMAP2/3/4 Specific Features"
+
 comment "OMAP Core Type"
 	depends on ARCH_OMAP2
 
@@ -186,3 +190,6 @@ config OMAP3_SDRC_AC_TIMING
 	  wish to say no.  Selecting yes without understanding what is
 	  going on could result in system crashes;
 
+endmenu
+
+endif
arch/arm/plat-omap/Kconfig +1 -1
index 3e2e7a8..a4e8727 100644
@@ -1,6 +1,6 @@
 if ARCH_OMAP
 
-menu "TI OMAP Implementations"
+menu "TI OMAP Common Features"
 
 config ARCH_OMAP_OTG
 	bool
author maintainer
#7 lore raw

PATCH 4/6 omap2/3/4: Move Kconfig options to mach-omap2/Kconfig

In reply to Tony Lindgren

Move omap2/3/4 specific Kconfig options to mach-omap2/Kconfig

---
 arch/arm/mach-omap2/Kconfig |   18 ++++++++++++++++++
 arch/arm/plat-omap/Kconfig  |   18 ------------------
 2 files changed, 18 insertions(+), 18 deletions(-)
arch/arm/mach-omap2/Kconfig +18 -0
index e94ee6b..d306aa1 100644
@@ -2,6 +2,24 @@ if ARCH_OMAP2PLUS
 
 menu "TI OMAP2/3/4 Specific Features"
 
+config ARCH_OMAP2
+	bool "TI OMAP2"
+	depends on ARCH_OMAP2PLUS
+	select CPU_V6
+
+config ARCH_OMAP3
+	bool "TI OMAP3"
+	depends on ARCH_OMAP2PLUS
+	select CPU_V7
+	select USB_ARCH_HAS_EHCI
+	select ARM_L1_CACHE_SHIFT_6
+
+config ARCH_OMAP4
+	bool "TI OMAP4"
+	depends on ARCH_OMAP2PLUS
+	select CPU_V7
+	select ARM_GIC
+
 comment "OMAP Core Type"
 	depends on ARCH_OMAP2
 
arch/arm/plat-omap/Kconfig +0 -18
index a4e8727..b7a3d80 100644
@@ -21,24 +21,6 @@ config ARCH_OMAP2PLUS
 	help
 	  "Systems based on omap24xx, omap34xx or omap44xx"
 
-config ARCH_OMAP2
-	bool "TI OMAP2"
-	depends on ARCH_OMAP2PLUS
-	select CPU_V6
-
-config ARCH_OMAP3
-	bool "TI OMAP3"
-	depends on ARCH_OMAP2PLUS
-	select CPU_V7
-	select USB_ARCH_HAS_EHCI
-	select ARM_L1_CACHE_SHIFT_6
-
-config ARCH_OMAP4
-	bool "TI OMAP4"
-	depends on ARCH_OMAP2PLUS
-	select CPU_V7
-	select ARM_GIC
-
 endchoice
 
 comment "OMAP Feature Selections"
author maintainer
#8 lore raw

PATCH 5/6 omap2/3/4: Select all omaps and boards by default

In reply to Tony Lindgren

Select all omaps and boards by default

---
 arch/arm/mach-omap2/Kconfig |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/Kconfig +28 -0
index d306aa1..4802988 100644
@@ -5,17 +5,20 @@ menu "TI OMAP2/3/4 Specific Features"
 config ARCH_OMAP2
 	bool "TI OMAP2"
 	depends on ARCH_OMAP2PLUS
+	default y
 	select CPU_V6
 
 config ARCH_OMAP3
 	bool "TI OMAP3"
 	depends on ARCH_OMAP2PLUS
+	default y
 	select CPU_V7
 	select USB_ARCH_HAS_EHCI
 	select ARM_L1_CACHE_SHIFT_6
 
 config ARCH_OMAP4
 	bool "TI OMAP4"
+	default y
 	depends on ARCH_OMAP2PLUS
 	select CPU_V7
 	select ARM_GIC
@@ -26,17 +29,20 @@ comment "OMAP Core Type"
 config ARCH_OMAP2420
 	bool "OMAP2420 support"
 	depends on ARCH_OMAP2
+	default y
 	select OMAP_DM_TIMER
 	select ARCH_OMAP_OTG
 
 config ARCH_OMAP2430
 	bool "OMAP2430 support"
 	depends on ARCH_OMAP2
+	default y
 	select ARCH_OMAP_OTG
 
 config ARCH_OMAP3430
 	bool "OMAP3430 support"
 	depends on ARCH_OMAP3
+	default y
 	select ARCH_OMAP_OTG
 
 config OMAP_PACKAGE_ZAF
@@ -63,6 +69,7 @@ comment "OMAP Board Type"
 config MACH_OMAP_GENERIC
 	bool "Generic OMAP board"
 	depends on ARCH_OMAP2
+	default y
 
 config MACH_OMAP2_TUSB6010
 	bool
@@ -72,63 +79,75 @@ config MACH_OMAP2_TUSB6010
 config MACH_OMAP_H4
 	bool "OMAP 2420 H4 board"
 	depends on ARCH_OMAP2
+	default y
 	select OMAP_PACKAGE_ZAF
 	select OMAP_DEBUG_DEVICES
 
 config MACH_OMAP_APOLLON
 	bool "OMAP 2420 Apollon board"
 	depends on ARCH_OMAP2
+	default y
 	select OMAP_PACKAGE_ZAC
 
 config MACH_OMAP_2430SDP
 	bool "OMAP 2430 SDP board"
 	depends on ARCH_OMAP2
+	default y
 	select OMAP_PACKAGE_ZAC
 
 config MACH_OMAP3_BEAGLE
 	bool "OMAP3 BEAGLE board"
 	depends on ARCH_OMAP3
+	default y
 	select OMAP_PACKAGE_CBB
 
 config MACH_DEVKIT8000
 	bool "DEVKIT8000 board"
 	depends on ARCH_OMAP3
+	default y
 	select OMAP_PACKAGE_CUS
 	select OMAP_MUX
 
 config MACH_OMAP_LDP
 	bool "OMAP3 LDP board"
 	depends on ARCH_OMAP3
+	default y
 	select OMAP_PACKAGE_CBB
 
 config MACH_OVERO
 	bool "Gumstix Overo board"
 	depends on ARCH_OMAP3
+	default y
 	select OMAP_PACKAGE_CBB
 
 config MACH_OMAP3EVM
 	bool "OMAP 3530 EVM board"
 	depends on ARCH_OMAP3
+	default y
 	select OMAP_PACKAGE_CBB
 
 config MACH_OMAP3517EVM
 	bool "OMAP3517/ AM3517 EVM board"
 	depends on ARCH_OMAP3
+	default y
 	select OMAP_PACKAGE_CBB
 
 config MACH_OMAP3_PANDORA
 	bool "OMAP3 Pandora"
 	depends on ARCH_OMAP3
+	default y
 	select OMAP_PACKAGE_CBB
 
 config MACH_OMAP3_TOUCHBOOK
 	bool "OMAP3 Touch Book"
 	depends on ARCH_OMAP3
+	default y
 	select BACKLIGHT_CLASS_DEVICE
 
 config MACH_OMAP_3430SDP
 	bool "OMAP 3430 SDP board"
 	depends on ARCH_OMAP3
+	default y
 	select OMAP_PACKAGE_CBB
 
 config MACH_NOKIA_N800
@@ -143,6 +162,7 @@ config MACH_NOKIA_N810_WIMAX
 config MACH_NOKIA_N8X0
 	bool "Nokia N800/N810"
 	depends on ARCH_OMAP2420
+	default y
 	select OMAP_PACKAGE_ZAC
 	select MACH_NOKIA_N800
 	select MACH_NOKIA_N810
@@ -151,42 +171,50 @@ config MACH_NOKIA_N8X0
 config MACH_NOKIA_RX51
 	bool "Nokia RX-51 board"
 	depends on ARCH_OMAP3
+	default y
 	select OMAP_PACKAGE_CBB
 
 config MACH_OMAP_ZOOM2
 	bool "OMAP3 Zoom2 board"
 	depends on ARCH_OMAP3
+	default y
 	select OMAP_PACKAGE_CBB
 
 config MACH_OMAP_ZOOM3
 	bool "OMAP3630 Zoom3 board"
 	depends on ARCH_OMAP3
+	default y
 	select OMAP_PACKAGE_CBP
 
 config MACH_CM_T35
 	bool "CompuLab CM-T35 module"
 	depends on ARCH_OMAP3
+	default y
 	select OMAP_PACKAGE_CUS
 	select OMAP_MUX
 
 config MACH_IGEP0020
 	bool "IGEP v2 board"
 	depends on ARCH_OMAP3
+	default y
 	select OMAP_PACKAGE_CBB
 
 config MACH_SBC3530
 	bool "OMAP3 SBC STALKER board"
 	depends on ARCH_OMAP3
+	default y
 	select OMAP_PACKAGE_CUS
 	select OMAP_MUX
 
 config MACH_OMAP_3630SDP
 	bool "OMAP3630 SDP board"
 	depends on ARCH_OMAP3
+	default y
 	select OMAP_PACKAGE_CBP
 
 config MACH_OMAP_4430SDP
 	bool "OMAP 4430 SDP board"
+	default y
 	depends on ARCH_OMAP4
 
 config OMAP3_EMU
author maintainer
#9 lore raw

PATCH 6/6 omap2/3/4: Add Kconfig option to compile in typical omap features

In reply to Tony Lindgren

This produces a sane config that's suitable for using as the base for most omap2/3/4 boards.

---
 arch/arm/mach-omap2/Kconfig |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/Kconfig +21 -0
index 4802988..84fecd0 100644
@@ -2,6 +2,27 @@ if ARCH_OMAP2PLUS
 
 menu "TI OMAP2/3/4 Specific Features"
 
+config ARCH_OMAP2PLUS_TYPICAL
+	bool "Typical OMAP configuration"
+	default y
+	select AEABI
+	select REGULATOR
+	select PM
+	select PM_RUNTIME
+	select VFP
+	select NEON if ARCH_OMAP3 || ARCH_OMAP4
+	select SERIAL_8250
+	select SERIAL_CORE_CONSOLE
+	select SERIAL_8250_CONSOLE
+	select I2C
+	select I2C_OMAP
+	select MFD
+	select MENELAUS if ARCH_OMAP2
+	select TWL4030_CORE if ARCH_OMAP3 || ARCH_OMAP4
+	select TWL4030_POWER if ARCH_OMAP3 || ARCH_OMAP4
+	help
+	  Compile a kernel suitable for booting most boards
+
 config ARCH_OMAP2
 	bool "TI OMAP2"
 	depends on ARCH_OMAP2PLUS
#10 lore raw

PATCH 6/6 omap2/3/4: Add Kconfig option to compile in typical omap features

Tony,

Quoted 40 lines

-----Original Message-----
From: linux-omap-owner at vger.kernel.org [mailto:linux-omap- owner at vger.kernel.org] On Behalf Of Tony Lindgren
Sent: Tuesday, June 29, 2010 5:18 PM
To: linux-arm-kernel at lists.infradead.org
Cc: linux-omap at vger.kernel.org
Subject: [PATCH 6/6] omap2/3/4: Add Kconfig option to compile in typical omap features

This produces a sane config that's suitable for using as the base for most omap2/3/4 boards.

---
 arch/arm/mach-omap2/Kconfig |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/Kconfig +14 -0
index 4802988..84fecd0 100644
@@ -2,6 +2,27 @@ if ARCH_OMAP2PLUS
 
 menu "TI OMAP2/3/4 Specific Features"
 
+config ARCH_OMAP2PLUS_TYPICAL
+	bool "Typical OMAP configuration"
+	default y
+	select AEABI
+	select REGULATOR
+	select PM
+	select PM_RUNTIME
+	select VFP
+	select NEON if ARCH_OMAP3 || ARCH_OMAP4
+	select SERIAL_8250
+	select SERIAL_CORE_CONSOLE
+	select SERIAL_8250_CONSOLE
+	select I2C
+	select I2C_OMAP

arch/arm/mach-omap2/Kconfig if ARCH_OMAP2PLUS · line 28

Quoted 10 lines
arch/arm/mach-omap2/Kconfig +7 -0
+	select MFD
+	select MENELAUS if ARCH_OMAP2
+	select TWL4030_CORE if ARCH_OMAP3 || ARCH_OMAP4
+	select TWL4030_POWER if ARCH_OMAP3 || ARCH_OMAP4
+	help
+	  Compile a kernel suitable for booting most boards
+
 config ARCH_OMAP2
 	bool "TI OMAP2"
 	depends on ARCH_OMAP2PLUS

With your series OMAP4 build breaks because of PM and SMP dependencies. To ensure that build doesn't break on OMAP4, I needed below change. With This change I tried your series and it boots OK on OMAP4430 SDP

arch/arm/mach-omap2/Kconfig +2 -2
index 84fecd0..f48f275 100644
@@ -7,8 +7,8 @@ config ARCH_OMAP2PLUS_TYPICAL
        default y
        select AEABI
        select REGULATOR
-       select PM
-       select PM_RUNTIME
+       select PM if !ARCH_OMAP4
+       select PM_RUNTIME if !ARCH_OMAP4
        select VFP
        select NEON if ARCH_OMAP3 || ARCH_OMAP4
        select SERIAL_8250

Regards
Santosh

#11 lore raw

PATCH 6/6 omap2/3/4: Add Kconfig option to compile in typical omap features

Quoted 55 lines

-----Original Message-----
From: linux-omap-owner at vger.kernel.org [mailto:linux-omap- owner at vger.kernel.org] On Behalf Of Shilimkar, Santosh
Sent: Tuesday, June 29, 2010 7:23 PM
To: Tony Lindgren; linux-arm-kernel at lists.infradead.org
Cc: linux-omap at vger.kernel.org
Subject: RE: [PATCH 6/6] omap2/3/4: Add Kconfig option to compile in typical omap features

Tony,

Quoted 45 lines

-----Original Message-----
From: linux-omap-owner at vger.kernel.org [mailto:linux-omap- owner at vger.kernel.org] On Behalf Of Tony Lindgren
Sent: Tuesday, June 29, 2010 5:18 PM
To: linux-arm-kernel at lists.infradead.org
Cc: linux-omap at vger.kernel.org
Subject: [PATCH 6/6] omap2/3/4: Add Kconfig option to compile in typical omap features

This produces a sane config that's suitable for using as the base for most omap2/3/4 boards.

---
 arch/arm/mach-omap2/Kconfig |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/Kconfig +20 -0
index 4802988..84fecd0 100644
@@ -2,6 +2,27 @@ if ARCH_OMAP2PLUS
 
 menu "TI OMAP2/3/4 Specific Features"
 
+config ARCH_OMAP2PLUS_TYPICAL
+	bool "Typical OMAP configuration"
+	default y
+	select AEABI
+	select REGULATOR
+	select PM
+	select PM_RUNTIME
+	select VFP
+	select NEON if ARCH_OMAP3 || ARCH_OMAP4
+	select SERIAL_8250
+	select SERIAL_CORE_CONSOLE
+	select SERIAL_8250_CONSOLE
+	select I2C
+	select I2C_OMAP
+	select MFD
+	select MENELAUS if ARCH_OMAP2
+	select TWL4030_CORE if ARCH_OMAP3 || ARCH_OMAP4
+	select TWL4030_POWER if ARCH_OMAP3 || ARCH_OMAP4
+	help
+	  Compile a kernel suitable for booting most boards
Quoted 9 lines

arch/arm/mach-omap2/Kconfig if ARCH_OMAP2PLUS · line 28

Quoted 5 lines
arch/arm/mach-omap2/Kconfig +1 -0
+
 config ARCH_OMAP2
 	bool "TI OMAP2"
 	depends on ARCH_OMAP2PLUS

With your series OMAP4 build breaks because of PM and SMP dependencies. To ensure that build doesn't break on OMAP4, I needed below change. With This change I tried your series and it boots OK on OMAP4430 SDP

Also tested the multi-omap build on OMAP3430 SDP and OMAP4430 SDP. Both boots OK.

Quoted 25 lines
arch/arm/mach-omap2/Kconfig +2 -2
index 84fecd0..f48f275 100644
@@ -7,8 +7,8 @@ config ARCH_OMAP2PLUS_TYPICAL
        default y
        select AEABI
        select REGULATOR
-       select PM
-       select PM_RUNTIME
+       select PM if !ARCH_OMAP4
+       select PM_RUNTIME if !ARCH_OMAP4
        select VFP
        select NEON if ARCH_OMAP3 || ARCH_OMAP4
        select SERIAL_8250

Regards
Santosh

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

author maintainer
#12 lore raw

PATCH 6/6 omap2/3/4: Add Kconfig option to compile in typical omap features

Quoted 4 lines · Shilimkar, Santosh
Quoted 4 lines
Quoted 1 line

With your series OMAP4 build breaks because of PM and SMP dependencies. To ensure that build doesn't break on OMAP4, I needed below change. With This change I tried your series and it boots OK on OMAP4430 SDP

Hmm the build does not break for me?

Quoted 17 lines

Also tested the multi-omap build on OMAP3430 SDP and OMAP4430 SDP. Both boots OK.

Quoted 5 lines
arch/arm/mach-omap2/Kconfig +0 -0
index 84fecd0..f48f275 100644

arch/arm/mach-omap2/Kconfig config ARCH_OMAP2PLUS_TYPICAL · line 14

Quoted 10 lines
arch/arm/mach-omap2/Kconfig +2 -2
@@ -7,8 +7,8 @@ config ARCH_OMAP2PLUS_TYPICAL
        default y
        select AEABI
        select REGULATOR
-       select PM
-       select PM_RUNTIME
+       select PM if !ARCH_OMAP4
+       select PM_RUNTIME if !ARCH_OMAP4
        select VFP
        select NEON if ARCH_OMAP3 || ARCH_OMAP4
        select SERIAL_8250

Let's rather fix whatever the issue is for booting (or building?) omap4 with CONFIG_PM and CONFIG_PM_RUNTIME. If we can't implement PM yet for omap4, we can just return early if cpu_is_omap44xx.

CONFIG_SMP we can't enable as that requires various ARM changes to work on unicore systems. But hopefully we can enable that too at some point with select SMP if ARCH_OMAP4.

Regards,

Tony

#13 lore raw

PATCH 6/6 omap2/3/4: Add Kconfig option to compile in typical omap features

Quoted 10 lines

-----Original Message-----
From: Tony Lindgren [mailto:tony at atomide.com]
Sent: Wednesday, June 30, 2010 11:47 AM
To: Shilimkar, Santosh
Cc: linux-arm-kernel at lists.infradead.org; linux-omap at vger.kernel.org
Subject: Re: [PATCH 6/6] omap2/3/4: Add Kconfig option to compile in typical omap features

Quoted 1 line · Shilimkar, Santosh
Quoted 1 line
Quoted 1 line
Quoted 8 lines
Quoted 1 line
Quoted 1 line

With your series OMAP4 build breaks because of PM and SMP

dependencies.

Quoted 1 line
Quoted 1 line

To ensure that build doesn't break on OMAP4, I needed below change.

With

Quoted 1 line
Quoted 1 line

This change I tried your series and it boots OK on OMAP4430 SDP

Hmm the build does not break for me?

Looks like I am missing something here. How do you build OMAP4 alone with these new changes ??

Quoted 27 lines
Quoted 1 line

Also tested the multi-omap build on OMAP3430 SDP and OMAP4430 SDP. Both

boots OK.

Quoted 16 lines
Quoted 6 lines
arch/arm/mach-omap2/Kconfig +0 -0
index 84fecd0..f48f275 100644

arch/arm/mach-omap2/Kconfig config ARCH_OMAP2PLUS_TYPICAL · line 14

Quoted 10 lines
arch/arm/mach-omap2/Kconfig +2 -2
@@ -7,8 +7,8 @@ config ARCH_OMAP2PLUS_TYPICAL
        default y
        select AEABI
        select REGULATOR
-       select PM
-       select PM_RUNTIME
+       select PM if !ARCH_OMAP4
+       select PM_RUNTIME if !ARCH_OMAP4
        select VFP
        select NEON if ARCH_OMAP3 || ARCH_OMAP4
        select SERIAL_8250

Let's rather fix whatever the issue is for booting (or building?) omap4 with CONFIG_PM and CONFIG_PM_RUNTIME. If we can't implement PM yet for omap4, we can just return early if cpu_is_omap44xx.

CONFIG_SMP we can't enable as that requires various ARM changes to work on unicore systems. But hopefully we can enable that too at some point with select SMP if ARCH_OMAP4.

author maintainer
#14 lore raw

PATCH 6/6 omap2/3/4: Add Kconfig option to compile in typical omap features

Quoted 12 lines · Shilimkar, Santosh
Quoted 12 lines

-----Original Message-----
From: Tony Lindgren [mailto:[email protected]]
Sent: Wednesday, June 30, 2010 11:47 AM
To: Shilimkar, Santosh
Cc: [email protected]; [email protected]
Subject: Re: [PATCH 6/6] omap2/3/4: Add Kconfig option to compile in typical omap features

Quoted 2 lines · Shilimkar, Santosh
Quoted 2 lines
Quoted 1 line

With your series OMAP4 build breaks because of PM and SMP

dependencies.

Quoted 8 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line

To ensure that build doesn't break on OMAP4, I needed below change.

With

Quoted 1 line
Quoted 1 line

This change I tried your series and it boots OK on OMAP4430 SDP

Hmm the build does not break for me?

Looks like I am missing something here. How do you build OMAP4 alone with these new changes ??

Use your old config file, or just unselect CONFIG_ARCH_OMAP2 and CONFIG_ARCH_OMAP3. Note that if you now do:

$ yes "" | ARCH=arm make oldconfig

with your old omap4 only config file, then by default the typical features get added by default. So what you probably want to do is (untested):

$ echo "# CONFIG_ARCH_OMAP2PLUS_TYPICAL is not set" >> .config
$ yes "" | ARCH=arm make oldconfig

Then it should not change your old config file.

To see how the boards and features show up, you can also play with it with make xconfig:

System Type -> TI OMAP2/3/4 Specific Features

Uncheck TI OMAP2 and TI OMAP3 so only TI OMAP4 is selected.

Regards,

Tony

#15 lore raw

PATCH 6/6 omap2/3/4: Add Kconfig option to compile in typical omap features

Quoted 38 lines

-----Original Message-----
From: Tony Lindgren [mailto:tony at atomide.com]
Sent: Wednesday, June 30, 2010 12:55 PM
To: Shilimkar, Santosh
Cc: linux-arm-kernel at lists.infradead.org; linux-omap at vger.kernel.org
Subject: Re: [PATCH 6/6] omap2/3/4: Add Kconfig option to compile in typical omap features

Quoted 8 lines · Shilimkar, Santosh
Quoted 8 lines

-----Original Message-----
From: Tony Lindgren [mailto:tony at atomide.com]
Sent: Wednesday, June 30, 2010 11:47 AM
To: Shilimkar, Santosh
Cc: linux-arm-kernel at lists.infradead.org; linux-omap at vger.kernel.org
Subject: Re: [PATCH 6/6] omap2/3/4: Add Kconfig option to compile in typical omap features

Quoted 5 lines
Quoted 5 lines · Shilimkar, Santosh
Quoted 2 lines
Quoted 2 lines
Quoted 1 line

With your series OMAP4 build breaks because of PM and SMP

dependencies.

Quoted 1 line
Quoted 1 line

To ensure that build doesn't break on OMAP4, I needed below

change.

Quoted 6 lines
Quoted 5 lines

With

Quoted 1 line
Quoted 1 line

This change I tried your series and it boots OK on OMAP4430 SDP

Hmm the build does not break for me?

Looks like I am missing something here. How do you build OMAP4 alone

with

Quoted 1 line

these new changes ??

Use your old config file, or just unselect CONFIG_ARCH_OMAP2 and CONFIG_ARCH_OMAP3. Note that if you now do:

$ yes "" | ARCH=arm make oldconfig
Quoted 9 lines

with your old omap4 only config file, then by default the typical features get added by default. So what you probably want to do is (untested):

$ echo "# CONFIG_ARCH_OMAP2PLUS_TYPICAL is not set" >> .config
$ yes "" | ARCH=arm make oldconfig

Then it should not change your old config file.

The above method works Tony. The series boot tested with 4430 SDP

Regards,
Santosh