linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/6] arm: U8500 depends on MMU
@ 2012-02-25 19:55 mathieu.poirier at linaro.org
  2012-02-25 19:55 ` [PATCH 2/6] ARM: ux500: Add board autoselection mathieu.poirier at linaro.org
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: mathieu.poirier at linaro.org @ 2012-02-25 19:55 UTC (permalink / raw)
  To: linux-arm-kernel

From: Arnd Bergmann <arnd@arndb.de>

There is no way to build  U8500 kernels without an MMU
at this point because of dependencies on MMU-only functions.

As long as nobody is interested in fixing this, let's just disable
the platforms for nommu kernels.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
---
 arch/arm/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index a48aecc..f489e52 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -901,6 +901,7 @@ config ARCH_U300
 
 config ARCH_U8500
 	bool "ST-Ericsson U8500 Series"
+	depends on MMU
 	select CPU_V7
 	select ARM_AMBA
 	select GENERIC_CLOCKEVENTS
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/6] ARM: ux500: Add board autoselection
  2012-02-25 19:55 [PATCH 1/6] arm: U8500 depends on MMU mathieu.poirier at linaro.org
@ 2012-02-25 19:55 ` mathieu.poirier at linaro.org
  2012-02-25 19:55 ` [PATCH 3/6] ux500: select MFD_SUPPORT when needed mathieu.poirier at linaro.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: mathieu.poirier at linaro.org @ 2012-02-25 19:55 UTC (permalink / raw)
  To: linux-arm-kernel

From: Arnd Bergmann <arnd@arndb.de>

At least one platform needs to be selected, so pick the u8500
development board if nothing else is selected. The first
menu to choose the actual platform is meaningless and can be
made invisible.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
---
 arch/arm/mach-ux500/Kconfig |   24 ++++++++++++++----------
 1 files changed, 14 insertions(+), 10 deletions(-)

diff --git a/arch/arm/mach-ux500/Kconfig b/arch/arm/mach-ux500/Kconfig
index 5cfa539..dc488de 100644
--- a/arch/arm/mach-ux500/Kconfig
+++ b/arch/arm/mach-ux500/Kconfig
@@ -9,24 +9,20 @@ config UX500_SOC_COMMON
 	select ARM_ERRATA_754322
 	select ARM_ERRATA_764369
 
-menu "Ux500 SoC"
-
 config UX500_SOC_DB5500
-	bool "DB5500"
+	bool
 	select MFD_DB5500_PRCMU
 
 config UX500_SOC_DB8500
-	bool "DB8500"
+	bool
 	select MFD_DB8500_PRCMU
 	select REGULATOR_DB8500_PRCMU
 
-endmenu
-
 menu "Ux500 target platform (boards)"
 
 config MACH_U8500
 	bool "U8500 Development platform"
-	depends on UX500_SOC_DB8500
+	select UX500_SOC_DB8500
 	select TPS6105X
 	select SOC_BUS
 	help
@@ -34,22 +30,30 @@ config MACH_U8500
 
 config MACH_HREFV60
        bool "U85000 Development platform, HREFv60 version"
-       depends on UX500_SOC_DB8500
+       select UX500_SOC_DB8500
        help
          Include support for the HREFv60 new development platform.
 
 config MACH_SNOWBALL
 	bool "U8500 Snowball platform"
-	depends on UX500_SOC_DB8500
 	select MACH_U8500
 	help
 	  Include support for the snowball development platform.
 
 config MACH_U5500
 	bool "U5500 Development platform"
-	depends on UX500_SOC_DB5500
+	select UX500_SOC_DB5500
 	help
 	  Include support for the U5500 development platform.
+
+config UX500_AUTO_PLATFORM
+	def_bool y
+	depends on !MACH_U5500
+	select MACH_U8500
+	help
+	  At least one platform needs to be selected in order to build
+	  a working kernel. If everything else is disabled, this
+	  automatically enables MACH_U8500.
 endmenu
 
 config UX500_DEBUG_UART
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 3/6] ux500: select MFD_SUPPORT when needed
  2012-02-25 19:55 [PATCH 1/6] arm: U8500 depends on MMU mathieu.poirier at linaro.org
  2012-02-25 19:55 ` [PATCH 2/6] ARM: ux500: Add board autoselection mathieu.poirier at linaro.org
@ 2012-02-25 19:55 ` mathieu.poirier at linaro.org
  2012-02-26  9:33   ` Arnd Bergmann
  2012-02-25 19:55 ` [PATCH 4/6] ARM: ux500: select L2X0 cache on ux500 mathieu.poirier at linaro.org
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 8+ messages in thread
From: mathieu.poirier at linaro.org @ 2012-02-25 19:55 UTC (permalink / raw)
  To: linux-arm-kernel

From: Arnd Bergmann <arnd@arndb.de>

When the MFD_DBx500_PRCMU driver is selected, we
also need to select MFD_SUPPORT to guarantee a
successful build.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
---
 arch/arm/mach-ux500/Kconfig |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-ux500/Kconfig b/arch/arm/mach-ux500/Kconfig
index dc488de..50010b8 100644
--- a/arch/arm/mach-ux500/Kconfig
+++ b/arch/arm/mach-ux500/Kconfig
@@ -12,11 +12,13 @@ config UX500_SOC_COMMON
 config UX500_SOC_DB5500
 	bool
 	select MFD_DB5500_PRCMU
+	select MFD_SUPPORT
 
 config UX500_SOC_DB8500
 	bool
 	select MFD_DB8500_PRCMU
 	select REGULATOR_DB8500_PRCMU
+	select MFD_SUPPORT
 
 menu "Ux500 target platform (boards)"
 
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 4/6] ARM: ux500: select L2X0 cache on ux500
  2012-02-25 19:55 [PATCH 1/6] arm: U8500 depends on MMU mathieu.poirier at linaro.org
  2012-02-25 19:55 ` [PATCH 2/6] ARM: ux500: Add board autoselection mathieu.poirier at linaro.org
  2012-02-25 19:55 ` [PATCH 3/6] ux500: select MFD_SUPPORT when needed mathieu.poirier at linaro.org
@ 2012-02-25 19:55 ` mathieu.poirier at linaro.org
  2012-02-25 19:55 ` [PATCH 5/6] ARM: ux500: select CPU_FREQ_TABLE where needed mathieu.poirier at linaro.org
  2012-02-25 19:55 ` [PATCH 6/6] ARM: ux500: select I2C for U8500 mathieu.poirier at linaro.org
  4 siblings, 0 replies; 8+ messages in thread
From: mathieu.poirier at linaro.org @ 2012-02-25 19:55 UTC (permalink / raw)
  To: linux-arm-kernel

From: Arnd Bergmann <arnd@arndb.de>

The cache controller needs to be enabled for the
cortex-a9 specific errata that are also selected
to work.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
---
 arch/arm/mach-ux500/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-ux500/Kconfig b/arch/arm/mach-ux500/Kconfig
index 50010b8..7ee7013 100644
--- a/arch/arm/mach-ux500/Kconfig
+++ b/arch/arm/mach-ux500/Kconfig
@@ -8,6 +8,7 @@ config UX500_SOC_COMMON
 	select ARM_ERRATA_753970
 	select ARM_ERRATA_754322
 	select ARM_ERRATA_764369
+	select CACHE_L2X0
 
 config UX500_SOC_DB5500
 	bool
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 5/6] ARM: ux500: select CPU_FREQ_TABLE where needed
  2012-02-25 19:55 [PATCH 1/6] arm: U8500 depends on MMU mathieu.poirier at linaro.org
                   ` (2 preceding siblings ...)
  2012-02-25 19:55 ` [PATCH 4/6] ARM: ux500: select L2X0 cache on ux500 mathieu.poirier at linaro.org
@ 2012-02-25 19:55 ` mathieu.poirier at linaro.org
  2012-02-25 19:55 ` [PATCH 6/6] ARM: ux500: select I2C for U8500 mathieu.poirier at linaro.org
  4 siblings, 0 replies; 8+ messages in thread
From: mathieu.poirier at linaro.org @ 2012-02-25 19:55 UTC (permalink / raw)
  To: linux-arm-kernel

From: Arnd Bergmann <arnd@arndb.de>

The ux500 platform requires CPU_FREQ_TABLE support to be enabled for its
CPU_FREQ implementations, so automatically select that when CPU_FREQ
is enabled.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
---
 arch/arm/mach-ux500/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-ux500/Kconfig b/arch/arm/mach-ux500/Kconfig
index 7ee7013..c7d1fb5 100644
--- a/arch/arm/mach-ux500/Kconfig
+++ b/arch/arm/mach-ux500/Kconfig
@@ -20,6 +20,7 @@ config UX500_SOC_DB8500
 	select MFD_DB8500_PRCMU
 	select REGULATOR_DB8500_PRCMU
 	select MFD_SUPPORT
+	select CPU_FREQ_TABLE if CPU_FREQ
 
 menu "Ux500 target platform (boards)"
 
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 6/6] ARM: ux500: select I2C for U8500
  2012-02-25 19:55 [PATCH 1/6] arm: U8500 depends on MMU mathieu.poirier at linaro.org
                   ` (3 preceding siblings ...)
  2012-02-25 19:55 ` [PATCH 5/6] ARM: ux500: select CPU_FREQ_TABLE where needed mathieu.poirier at linaro.org
@ 2012-02-25 19:55 ` mathieu.poirier at linaro.org
  4 siblings, 0 replies; 8+ messages in thread
From: mathieu.poirier at linaro.org @ 2012-02-25 19:55 UTC (permalink / raw)
  To: linux-arm-kernel

From: Arnd Bergmann <arnd@arndb.de>

The U8500 platform selects the TPS6105X, so also select the I2C
layer that this driver depends on.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
---
 arch/arm/mach-ux500/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-ux500/Kconfig b/arch/arm/mach-ux500/Kconfig
index c7d1fb5..f0f6199 100644
--- a/arch/arm/mach-ux500/Kconfig
+++ b/arch/arm/mach-ux500/Kconfig
@@ -29,6 +29,7 @@ config MACH_U8500
 	select UX500_SOC_DB8500
 	select TPS6105X
 	select SOC_BUS
+	select I2C
 	help
 	  Include support for the mop500 development platform.
 
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 3/6] ux500: select MFD_SUPPORT when needed
  2012-02-25 19:55 ` [PATCH 3/6] ux500: select MFD_SUPPORT when needed mathieu.poirier at linaro.org
@ 2012-02-26  9:33   ` Arnd Bergmann
  2012-02-29 15:43     ` Linus Walleij
  0 siblings, 1 reply; 8+ messages in thread
From: Arnd Bergmann @ 2012-02-26  9:33 UTC (permalink / raw)
  To: linux-arm-kernel

On Saturday 25 February 2012, mathieu.poirier at linaro.org wrote:
> From: Arnd Bergmann <arnd@arndb.de>
> 
> When the MFD_DBx500_PRCMU driver is selected, we
> also need to select MFD_SUPPORT to guarantee a
> successful build.
> 
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>

This one has actually become obsolete now, the MFD_SUPPORT
option was recently removed.

	Arnd

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 3/6] ux500: select MFD_SUPPORT when needed
  2012-02-26  9:33   ` Arnd Bergmann
@ 2012-02-29 15:43     ` Linus Walleij
  0 siblings, 0 replies; 8+ messages in thread
From: Linus Walleij @ 2012-02-29 15:43 UTC (permalink / raw)
  To: linux-arm-kernel

On Sun, Feb 26, 2012 at 10:33 AM, Arnd Bergmann <arnd@arndb.de> wrote:
> On Saturday 25 February 2012, mathieu.poirier at linaro.org wrote:
>> From: Arnd Bergmann <arnd@arndb.de>
>>
>> When the MFD_DBx500_PRCMU driver is selected, we
>> also need to select MFD_SUPPORT to guarantee a
>> successful build.
>>
>> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
>> Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
>
> This one has actually become obsolete now, the MFD_SUPPORT
> option was recently removed.

OK skipping this and trying to apply the rest...

Thanks,
Linus Walleij

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-02-29 15:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-25 19:55 [PATCH 1/6] arm: U8500 depends on MMU mathieu.poirier at linaro.org
2012-02-25 19:55 ` [PATCH 2/6] ARM: ux500: Add board autoselection mathieu.poirier at linaro.org
2012-02-25 19:55 ` [PATCH 3/6] ux500: select MFD_SUPPORT when needed mathieu.poirier at linaro.org
2012-02-26  9:33   ` Arnd Bergmann
2012-02-29 15:43     ` Linus Walleij
2012-02-25 19:55 ` [PATCH 4/6] ARM: ux500: select L2X0 cache on ux500 mathieu.poirier at linaro.org
2012-02-25 19:55 ` [PATCH 5/6] ARM: ux500: select CPU_FREQ_TABLE where needed mathieu.poirier at linaro.org
2012-02-25 19:55 ` [PATCH 6/6] ARM: ux500: select I2C for U8500 mathieu.poirier at linaro.org

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