From: tony@atomide.com (Tony Lindgren)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 7/7] ARM: OMAP2+: Fix multiple randconfig errors with SOC_OMAP and SOC_OMAP_NOOP
Date: Thu, 23 Feb 2012 16:54:17 -0800 [thread overview]
Message-ID: <20120224005417.16794.52875.stgit@kaulin.local> (raw)
In-Reply-To: <20120224005324.16794.73852.stgit@kaulin.local>
If we don't have ARCH_OMAP2, 3 or 4 selected randconfig will always
fail with multiple errors as the CPU and MACHINE are not set.
Fix this by changing arch/arm/Makefile to build mach-omap2 based on
ARCH_OMAP2PLUS. And let's introduce SOC_OMAP and SOC_OMAP_NOOP that
allow randconfig to generate buildable .config files.
Note that we can also remove few uncecssary ARCH_OMAP2PLUS lines
as they are all within if ARCH_OMAP2PLUS block.
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
arch/arm/Makefile | 4 +--
arch/arm/mach-omap2/Kconfig | 51 +++++++++++++++++++++++++++++--------------
2 files changed, 35 insertions(+), 20 deletions(-)
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 1683bfb..ea69448 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -164,9 +164,7 @@ machine-$(CONFIG_ARCH_MXS) := mxs
machine-$(CONFIG_ARCH_NETX) := netx
machine-$(CONFIG_ARCH_NOMADIK) := nomadik
machine-$(CONFIG_ARCH_OMAP1) := omap1
-machine-$(CONFIG_ARCH_OMAP2) := omap2
-machine-$(CONFIG_ARCH_OMAP3) := omap2
-machine-$(CONFIG_ARCH_OMAP4) := omap2
+machine-$(CONFIG_ARCH_OMAP2PLUS) := omap2
machine-$(CONFIG_ARCH_ORION5X) := orion5x
machine-$(CONFIG_ARCH_PICOXCELL) := picoxcell
machine-$(CONFIG_ARCH_PNX4008) := pnx4008
diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig
index 337f98d..c4ae0a7 100644
--- a/arch/arm/mach-omap2/Kconfig
+++ b/arch/arm/mach-omap2/Kconfig
@@ -21,16 +21,12 @@ config ARCH_OMAP2PLUS_TYPICAL
Compile a kernel suitable for booting most boards
config ARCH_OMAP2
- bool "TI OMAP2"
- depends on ARCH_OMAP2PLUS
- default y
+ bool
select CPU_V6
select MULTI_IRQ_HANDLER
config ARCH_OMAP3
- bool "TI OMAP3"
- depends on ARCH_OMAP2PLUS
- default y
+ bool
select CPU_V7
select USB_ARCH_HAS_EHCI if USB_SUPPORT
select ARCH_HAS_OPP
@@ -39,9 +35,7 @@ config ARCH_OMAP3
select MULTI_IRQ_HANDLER
config ARCH_OMAP4
- bool "TI OMAP4"
- default y
- depends on ARCH_OMAP2PLUS
+ bool
select CACHE_L2X0
select CPU_V7
select ARM_GIC
@@ -56,36 +50,58 @@ config ARCH_OMAP4
select ARM_CPU_SUSPEND if PM
comment "OMAP Core Type"
- depends on ARCH_OMAP2
+
+config SOC_OMAP
+ bool
config SOC_OMAP2420
bool "OMAP2420 support"
- depends on ARCH_OMAP2
default y
+ select SOC_OMAP
+ select ARCH_OMAP2
select OMAP_DM_TIMER
select ARCH_OMAP_OTG
config SOC_OMAP2430
bool "OMAP2430 support"
- depends on ARCH_OMAP2
default y
+ select SOC_OMAP
+ select ARCH_OMAP2
select ARCH_OMAP_OTG
config SOC_OMAP3430
bool "OMAP3430 support"
- depends on ARCH_OMAP3
default y
+ select SOC_OMAP
+ select ARCH_OMAP3
select ARCH_OMAP_OTG
config SOC_OMAPTI81XX
bool "TI81XX support"
- depends on ARCH_OMAP3
default y
+ select SOC_OMAP
+ select ARCH_OMAP3
config SOC_OMAPAM33XX
bool "AM33XX support"
- depends on ARCH_OMAP3
default y
+ select SOC_OMAP
+ select ARCH_OMAP3
+
+config SOC_OMAP44XX
+ bool "OMAP44XX support"
+ default y
+ select SOC_OMAP
+ select ARCH_OMAP4
+
+config SOC_OMAP_NOOP
+ bool
+ depends on !SOC_OMAP
+ default y
+ select ARCH_OMAP2
+ select ARCH_OMAP3
+ select ARCH_OMAP4
+ select MACH_OMAP_GENERIC
config OMAP_PACKAGE_ZAF
bool
@@ -112,17 +128,17 @@ config OMAP_PACKAGE_CBS
bool
comment "OMAP Board Type"
- depends on ARCH_OMAP2PLUS
config MACH_OMAP_GENERIC
bool "Generic OMAP2+ board"
- depends on ARCH_OMAP2PLUS
select USE_OF
default y
help
Support for generic TI OMAP2+ boards using Flattened Device Tree.
More information at Documentation/devicetree
+if SOC_OMAP
+
config MACH_OMAP2_TUSB6010
bool
depends on ARCH_OMAP2 && SOC_OMAP2420
@@ -343,6 +359,7 @@ config MACH_OMAP4_PANDA
select OMAP_PACKAGE_CBS
select REGULATOR_FIXED_VOLTAGE if REGULATOR
+endif
config OMAP3_EMU
bool "OMAP3 debugging peripherals"
depends on ARCH_OMAP3
prev parent reply other threads:[~2012-02-24 0:54 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-24 0:54 [PATCH 0/7] More omap2+ randconfig fixes Tony Lindgren
2012-02-24 0:54 ` [PATCH 1/7] ARM: OMAP2+: Fix Kconfig dependencies for USB_ARCH_HAS_EHCI Tony Lindgren
2012-02-24 0:54 ` [PATCH 2/7] ARM: OMAP2+: Fix OMAP_HDQ_BASE build error Tony Lindgren
2012-02-24 0:54 ` [PATCH 3/7] ARM: OMAP2+: Fix board_mux section type conflict when OMAP_MUX is not set Tony Lindgren
2012-02-24 0:54 ` [PATCH 4/7] ARM: OMAP2+: Fix zoom LCD backlight if TWL_CORE is not selected Tony Lindgren
2012-02-24 11:53 ` Sergei Shtylyov
2012-02-24 16:25 ` Tony Lindgren
2012-02-24 0:54 ` [PATCH 5/7] ARM: OMAP2+: Fix devexit for smartreflex when CONFIG_HOTPLUG is not set Tony Lindgren
2012-02-24 0:54 ` [PATCH 6/7] ARM: OMAP: Fix devexit for dma " Tony Lindgren
2012-02-24 0:54 ` Tony Lindgren [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120224005417.16794.52875.stgit@kaulin.local \
--to=tony@atomide.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).