linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc: Add 83xx and 86xx to 6xx Multiplatform
@ 2008-06-27 16:36 Kumar Gala
  2008-06-27 18:04 ` Scott Wood
  0 siblings, 1 reply; 5+ messages in thread
From: Kumar Gala @ 2008-06-27 16:36 UTC (permalink / raw)
  To: linuxppc-dev

There isn't any reason at this point that we can't build 83xx & 86xx support
in with the other 6xx based boards.  Twiddle the Kconfigs to allow this.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
 arch/powerpc/platforms/83xx/Kconfig |   10 ++++++----
 arch/powerpc/platforms/86xx/Kconfig |   16 +++++++++++-----
 arch/powerpc/platforms/Kconfig      |   14 --------------
 3 files changed, 17 insertions(+), 23 deletions(-)

diff --git a/arch/powerpc/platforms/83xx/Kconfig b/arch/powerpc/platforms/83xx/Kconfig
index fe75b2a..27d9bf8 100644
--- a/arch/powerpc/platforms/83xx/Kconfig
+++ b/arch/powerpc/platforms/83xx/Kconfig
@@ -1,10 +1,12 @@
-menuconfig MPC83xx
-	bool "83xx Board Type"
-	depends on PPC_83xx
+menuconfig PPC_83xx
+	bool "83xx-based boards"
+	depends on 6xx && PPC_MULTIPLATFORM
 	select PPC_UDBG_16550
 	select PPC_INDIRECT_PCI
+	select FSL_SOC
+	select IPIC

-if MPC83xx
+if PPC_83xx

 config MPC831x_RDB
 	bool "Freescale MPC831x RDB"
diff --git a/arch/powerpc/platforms/86xx/Kconfig b/arch/powerpc/platforms/86xx/Kconfig
index 053f49a..80a81e0 100644
--- a/arch/powerpc/platforms/86xx/Kconfig
+++ b/arch/powerpc/platforms/86xx/Kconfig
@@ -1,7 +1,13 @@
-choice
-	prompt "86xx Board Type"
-	depends on PPC_86xx
-	default MPC8641_HPCN
+config PPC_86xx
+menuconfig PPC_86xx
+	bool "86xx-based boards"
+	depends on 6xx && PPC_MULTIPLATFORM
+	select FSL_SOC
+	select ALTIVEC
+	help
+	  The Freescale E600 SoCs have 74xx cores.
+
+if PPC_86xx

 config MPC8641_HPCN
 	bool "Freescale MPC8641 HPCN"
@@ -24,7 +30,7 @@ config MPC8610_HPCD
 	help
 	  This option enables support for the MPC8610 HPCD board.

-endchoice
+endif

 config MPC8641
 	bool
diff --git a/arch/powerpc/platforms/Kconfig b/arch/powerpc/platforms/Kconfig
index 87454c5..3e2b645 100644
--- a/arch/powerpc/platforms/Kconfig
+++ b/arch/powerpc/platforms/Kconfig
@@ -16,20 +16,6 @@ config PPC_82xx
 	bool "Freescale 82xx"
 	depends on 6xx

-config PPC_83xx
-	bool "Freescale 83xx"
-	depends on 6xx
-	select FSL_SOC
-	select MPC83xx
-	select IPIC
-
-config PPC_86xx
-	bool "Freescale 86xx"
-	depends on 6xx
-	select FSL_SOC
-	select ALTIVEC
-	help
-	  The Freescale E600 SoCs have 74xx cores.
 endchoice

 config CLASSIC32
-- 
1.5.5.1

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

* Re: [PATCH] powerpc: Add 83xx and 86xx to 6xx Multiplatform
  2008-06-27 16:36 [PATCH] powerpc: Add 83xx and 86xx to 6xx Multiplatform Kumar Gala
@ 2008-06-27 18:04 ` Scott Wood
  2008-06-27 19:00   ` [PATCH v2] powerpc: Add 82xx/83xx/86xx " Kumar Gala
  2008-06-27 19:35   ` [PATCH] powerpc: Add 83xx and 86xx " Arnd Bergmann
  0 siblings, 2 replies; 5+ messages in thread
From: Scott Wood @ 2008-06-27 18:04 UTC (permalink / raw)
  To: Kumar Gala; +Cc: linuxppc-dev

On Fri, Jun 27, 2008 at 11:36:36AM -0500, Kumar Gala wrote:
> There isn't any reason at this point that we can't build 83xx & 86xx support
> in with the other 6xx based boards.  Twiddle the Kconfigs to allow this.

Likewise with 82xx -- why don't we just get rid of the "Machine type"
choice, and turn them all into bools?

At the very least, change the misleading prompt and help text of
PPC_MULTIPLATFORM before expanding the set of platforms that hide behind
it.

-Scott

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

* [PATCH v2] powerpc: Add 82xx/83xx/86xx to 6xx Multiplatform
  2008-06-27 18:04 ` Scott Wood
@ 2008-06-27 19:00   ` Kumar Gala
  2008-06-27 19:35   ` [PATCH] powerpc: Add 83xx and 86xx " Arnd Bergmann
  1 sibling, 0 replies; 5+ messages in thread
From: Kumar Gala @ 2008-06-27 19:00 UTC (permalink / raw)
  To: Scott Wood; +Cc: linuxppc-dev

There isn't any reason at this point that we can't build 82xx, 83xx & 86xx
support in with the other 6xx based boards.  Twiddle the Kconfigs to allow
this.

This allows us to remove the machine type selection for related to 6xx.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---

Added 82xx into multiplatform and removed Machine Type as a choice so there
is only one choice now.

 arch/powerpc/platforms/82xx/Kconfig |   11 ++++++-----
 arch/powerpc/platforms/83xx/Kconfig |   10 ++++++----
 arch/powerpc/platforms/86xx/Kconfig |   16 +++++++++++-----
 arch/powerpc/platforms/Kconfig      |   33 +++------------------------------
 4 files changed, 26 insertions(+), 44 deletions(-)

diff --git a/arch/powerpc/platforms/82xx/Kconfig b/arch/powerpc/platforms/82xx/Kconfig
index 917ac88..1c8034b 100644
--- a/arch/powerpc/platforms/82xx/Kconfig
+++ b/arch/powerpc/platforms/82xx/Kconfig
@@ -1,7 +1,8 @@
-choice
-	prompt "82xx Board Type"
-	depends on PPC_82xx
-	default MPC8272_ADS
+menuconfig PPC_82xx
+	bool "82xx-based boards (PQ II)"
+	depends on 6xx && PPC_MULTIPLATFORM
+
+if PPC_82xx

 config MPC8272_ADS
 	bool "Freescale MPC8272 ADS"
@@ -36,7 +37,7 @@ config EP8248E
 	  This board is also resold by Freescale as the QUICCStart
 	  MPC8248 Evaluation System and/or the CWH-PPC-8248N-VE.

-endchoice
+endif

 config PQ2ADS
 	bool
diff --git a/arch/powerpc/platforms/83xx/Kconfig b/arch/powerpc/platforms/83xx/Kconfig
index fe75b2a..27d9bf8 100644
--- a/arch/powerpc/platforms/83xx/Kconfig
+++ b/arch/powerpc/platforms/83xx/Kconfig
@@ -1,10 +1,12 @@
-menuconfig MPC83xx
-	bool "83xx Board Type"
-	depends on PPC_83xx
+menuconfig PPC_83xx
+	bool "83xx-based boards"
+	depends on 6xx && PPC_MULTIPLATFORM
 	select PPC_UDBG_16550
 	select PPC_INDIRECT_PCI
+	select FSL_SOC
+	select IPIC

-if MPC83xx
+if PPC_83xx

 config MPC831x_RDB
 	bool "Freescale MPC831x RDB"
diff --git a/arch/powerpc/platforms/86xx/Kconfig b/arch/powerpc/platforms/86xx/Kconfig
index 053f49a..80a81e0 100644
--- a/arch/powerpc/platforms/86xx/Kconfig
+++ b/arch/powerpc/platforms/86xx/Kconfig
@@ -1,7 +1,13 @@
-choice
-	prompt "86xx Board Type"
-	depends on PPC_86xx
-	default MPC8641_HPCN
+config PPC_86xx
+menuconfig PPC_86xx
+	bool "86xx-based boards"
+	depends on 6xx && PPC_MULTIPLATFORM
+	select FSL_SOC
+	select ALTIVEC
+	help
+	  The Freescale E600 SoCs have 74xx cores.
+
+if PPC_86xx

 config MPC8641_HPCN
 	bool "Freescale MPC8641 HPCN"
@@ -24,7 +30,7 @@ config MPC8610_HPCD
 	help
 	  This option enables support for the MPC8610 HPCD board.

-endchoice
+endif

 config MPC8641
 	bool
diff --git a/arch/powerpc/platforms/Kconfig b/arch/powerpc/platforms/Kconfig
index 87454c5..690c1f4 100644
--- a/arch/powerpc/platforms/Kconfig
+++ b/arch/powerpc/platforms/Kconfig
@@ -1,36 +1,9 @@
 menu "Platform support"

-choice
-	prompt "Machine type"
-	depends on PPC64 || 6xx
-	default PPC_MULTIPLATFORM
-
 config PPC_MULTIPLATFORM
-	bool "Generic desktop/server/laptop"
-	help
-	  Select this option if configuring for an IBM pSeries or
-	  RS/6000 machine, an Apple machine, or a PReP, CHRP,
-	  Maple or Cell-based machine.
-
-config PPC_82xx
-	bool "Freescale 82xx"
-	depends on 6xx
-
-config PPC_83xx
-	bool "Freescale 83xx"
-	depends on 6xx
-	select FSL_SOC
-	select MPC83xx
-	select IPIC
-
-config PPC_86xx
-	bool "Freescale 86xx"
-	depends on 6xx
-	select FSL_SOC
-	select ALTIVEC
-	help
-	  The Freescale E600 SoCs have 74xx cores.
-endchoice
+	bool
+	depends on PPC64 || 6xx
+	default y

 config CLASSIC32
 	def_bool y
-- 
1.5.5.1

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

* Re: [PATCH] powerpc: Add 83xx and 86xx to 6xx Multiplatform
  2008-06-27 18:04 ` Scott Wood
  2008-06-27 19:00   ` [PATCH v2] powerpc: Add 82xx/83xx/86xx " Kumar Gala
@ 2008-06-27 19:35   ` Arnd Bergmann
  2008-06-27 19:47     ` Kumar Gala
  1 sibling, 1 reply; 5+ messages in thread
From: Arnd Bergmann @ 2008-06-27 19:35 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Scott Wood

On Friday 27 June 2008, Scott Wood wrote:
> On Fri, Jun 27, 2008 at 11:36:36AM -0500, Kumar Gala wrote:
> > There isn't any reason at this point that we can't build 83xx & 86xx su=
pport
> > in with the other 6xx based boards. =A0Twiddle the Kconfigs to allow th=
is.
>=20
> Likewise with 82xx -- why don't we just get rid of the "Machine type"
> choice, and turn them all into bools?

I started looking for possible problems with hardcoded settings for some
of the platforms, and the only code that looked suspicious in this regard
was CPM2, but it turned out that this was all because of code built without
CONFIG_PPC_CPM_NEW_BINDING, which is practically gone in kumar's powerpc-ne=
xt
branch.

	Arnd <><

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

* Re: [PATCH] powerpc: Add 83xx and 86xx to 6xx Multiplatform
  2008-06-27 19:35   ` [PATCH] powerpc: Add 83xx and 86xx " Arnd Bergmann
@ 2008-06-27 19:47     ` Kumar Gala
  0 siblings, 0 replies; 5+ messages in thread
From: Kumar Gala @ 2008-06-27 19:47 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: Scott Wood, linuxppc-dev


On Jun 27, 2008, at 2:35 PM, Arnd Bergmann wrote:

> On Friday 27 June 2008, Scott Wood wrote:
>> On Fri, Jun 27, 2008 at 11:36:36AM -0500, Kumar Gala wrote:
>>> There isn't any reason at this point that we can't build 83xx &  
>>> 86xx support
>>> in with the other 6xx based boards.  Twiddle the Kconfigs to allow  
>>> this.
>>
>> Likewise with 82xx -- why don't we just get rid of the "Machine type"
>> choice, and turn them all into bools?
>
> I started looking for possible problems with hardcoded settings for  
> some
> of the platforms, and the only code that looked suspicious in this  
> regard
> was CPM2, but it turned out that this was all because of code built  
> without
> CONFIG_PPC_CPM_NEW_BINDING, which is practically gone in kumar's  
> powerpc-next
> branch.

I've posted patches to remove CONFIG_PPC_CPM_NEW_BINDING, and just  
holding off on the enet ones to see how merging goes w/Jeff.

- k

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

end of thread, other threads:[~2008-06-27 19:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-27 16:36 [PATCH] powerpc: Add 83xx and 86xx to 6xx Multiplatform Kumar Gala
2008-06-27 18:04 ` Scott Wood
2008-06-27 19:00   ` [PATCH v2] powerpc: Add 82xx/83xx/86xx " Kumar Gala
2008-06-27 19:35   ` [PATCH] powerpc: Add 83xx and 86xx " Arnd Bergmann
2008-06-27 19:47     ` Kumar Gala

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