* [PATCH 0/7] Kconfig cleanup part II
@ 2007-04-12 23:08 Kumar Gala
2007-04-12 23:09 ` [PATCH 1/7] Ensure platform CONFIG options have correct dependencies Kumar Gala
` (7 more replies)
0 siblings, 8 replies; 11+ messages in thread
From: Kumar Gala @ 2007-04-12 23:08 UTC (permalink / raw)
To: linuxppc-dev
Here the second part of the Kconfig cleanup to move all the
platform/*/Kconfig to be sourced by platform/Kconfig. Plus some other
minor cleanups.
- k
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 1/7] Ensure platform CONFIG options have correct dependencies
2007-04-12 23:08 [PATCH 0/7] Kconfig cleanup part II Kumar Gala
@ 2007-04-12 23:09 ` Kumar Gala
2007-04-12 23:09 ` [PATCH 2/7] Convert 86xx platform to unified platform Kconfig Kumar Gala
` (6 subsequent siblings)
7 siblings, 0 replies; 11+ messages in thread
From: Kumar Gala @ 2007-04-12 23:09 UTC (permalink / raw)
To: linuxppc-dev
We currently support TAU and CPU frequency scaling only on discrete
(non-SOC) processors.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
arch/powerpc/platforms/Kconfig | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/platforms/Kconfig b/arch/powerpc/platforms/Kconfig
index 161ab79..176a27f 100644
--- a/arch/powerpc/platforms/Kconfig
+++ b/arch/powerpc/platforms/Kconfig
@@ -3,6 +3,7 @@ menu "Platform support"
choice
prompt "Machine type"
+ depends on PPC64 || CLASSIC32
default PPC_MULTIPLATFORM
config PPC_MULTIPLATFORM
@@ -137,6 +138,9 @@ config GENERIC_IOMAP
bool
default n
+menu "CPU Frequency support"
+ depends on PPC64 || CLASSIC32
+
source "drivers/cpufreq/Kconfig"
config CPU_FREQ_PMAC
@@ -155,6 +159,7 @@ config CPU_FREQ_PMAC64
help
This adds support for frequency switching on Apple iMac G5,
and some of the more recent desktop G5 machines as well.
+endmenu
config PPC601_SYNC_FIX
bool "Workarounds for PPC601 bugs"
@@ -172,7 +177,7 @@ config PPC601_SYNC_FIX
config TAU
bool "On-chip CPU temperature sensor support"
- depends on 6xx
+ depends on CLASSIC32
help
G3 and G4 processors have an on-chip temperature sensor called the
'Thermal Assist Unit (TAU)', which, in theory, can measure the on-die
--
1.5.0.6
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 2/7] Convert 86xx platform to unified platform Kconfig
2007-04-12 23:08 [PATCH 0/7] Kconfig cleanup part II Kumar Gala
2007-04-12 23:09 ` [PATCH 1/7] Ensure platform CONFIG options have correct dependencies Kumar Gala
@ 2007-04-12 23:09 ` Kumar Gala
2007-04-12 23:10 ` [PATCH 3/7] Convert 83xx " Kumar Gala
` (5 subsequent siblings)
7 siblings, 0 replies; 11+ messages in thread
From: Kumar Gala @ 2007-04-12 23:09 UTC (permalink / raw)
To: linuxppc-dev
Moved 86xx platform Kconfig over to being sourced by the unified
arch/powerpc/platforms/Kconfig.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
arch/powerpc/Kconfig | 6 +++++-
arch/powerpc/platforms/86xx/Kconfig | 18 +++---------------
arch/powerpc/platforms/Kconfig | 3 ++-
3 files changed, 10 insertions(+), 17 deletions(-)
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 740892a..d37e0b8 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -380,7 +380,6 @@ source arch/powerpc/platforms/4xx/Kconfig
source arch/powerpc/platforms/82xx/Kconfig
source arch/powerpc/platforms/83xx/Kconfig
source arch/powerpc/platforms/85xx/Kconfig
-source arch/powerpc/platforms/86xx/Kconfig
source arch/powerpc/platforms/8xx/Kconfig
menu "Kernel options"
@@ -637,6 +636,11 @@ config PPC_INDIRECT_PCI
default y if 40x || 44x
default n
+config PPC_INDIRECT_PCI_BE
+ bool
+ depends PPC_INDIRECT_PCI
+ default n
+
config EISA
bool
diff --git a/arch/powerpc/platforms/86xx/Kconfig b/arch/powerpc/platforms/86xx/Kconfig
index 0c70944..d1bcff5 100644
--- a/arch/powerpc/platforms/86xx/Kconfig
+++ b/arch/powerpc/platforms/86xx/Kconfig
@@ -1,8 +1,6 @@
-menu "Platform Support"
- depends on PPC_86xx
-
choice
prompt "Machine Type"
+ depends on PPC_86xx
default MPC8641_HPCN
config MPC8641_HPCN
@@ -14,20 +12,10 @@ config MPC8641_HPCN
endchoice
-
config MPC8641
bool
select PPC_INDIRECT_PCI
+ select PPC_INDIRECT_PCI_BE
select PPC_UDBG_16550
+ select MPIC
default y if MPC8641_HPCN
-
-config MPIC
- bool
- default y
-
-config PPC_INDIRECT_PCI_BE
- bool
- depends on PPC_86xx
- default y
-
-endmenu
diff --git a/arch/powerpc/platforms/Kconfig b/arch/powerpc/platforms/Kconfig
index 176a27f..5f2cef0 100644
--- a/arch/powerpc/platforms/Kconfig
+++ b/arch/powerpc/platforms/Kconfig
@@ -1,5 +1,5 @@
menu "Platform support"
- depends on PPC64 || CLASSIC32
+ depends on PPC64 || CLASSIC32 || PPC_86xx
choice
prompt "Machine type"
@@ -45,6 +45,7 @@ source "arch/powerpc/platforms/pasemi/Kconfig"
source arch/powerpc/platforms/celleb/Kconfig
source arch/powerpc/platforms/ps3/Kconfig
source arch/powerpc/platforms/cell/Kconfig
+source "arch/powerpc/platforms/86xx/Kconfig"
config PPC_NATIVE
bool
--
1.5.0.6
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 3/7] Convert 83xx platform to unified platform Kconfig
2007-04-12 23:08 [PATCH 0/7] Kconfig cleanup part II Kumar Gala
2007-04-12 23:09 ` [PATCH 1/7] Ensure platform CONFIG options have correct dependencies Kumar Gala
2007-04-12 23:09 ` [PATCH 2/7] Convert 86xx platform to unified platform Kconfig Kumar Gala
@ 2007-04-12 23:10 ` Kumar Gala
2007-04-12 23:11 ` [PATCH 4/7] Convert 82xx " Kumar Gala
` (4 subsequent siblings)
7 siblings, 0 replies; 11+ messages in thread
From: Kumar Gala @ 2007-04-12 23:10 UTC (permalink / raw)
To: linuxppc-dev
Moved 83xx platform Kconfig over to being sourced by the unified
arch/powerpc/platforms/Kconfig.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
arch/powerpc/Kconfig | 1 -
arch/powerpc/platforms/83xx/Kconfig | 6 +-----
arch/powerpc/platforms/Kconfig | 3 ++-
3 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index d37e0b8..8576ff3 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -378,7 +378,6 @@ source "arch/powerpc/platforms/Kconfig"
source arch/powerpc/platforms/embedded6xx/Kconfig
source arch/powerpc/platforms/4xx/Kconfig
source arch/powerpc/platforms/82xx/Kconfig
-source arch/powerpc/platforms/83xx/Kconfig
source arch/powerpc/platforms/85xx/Kconfig
source arch/powerpc/platforms/8xx/Kconfig
diff --git a/arch/powerpc/platforms/83xx/Kconfig b/arch/powerpc/platforms/83xx/Kconfig
index 2a23392..19cafdf 100644
--- a/arch/powerpc/platforms/83xx/Kconfig
+++ b/arch/powerpc/platforms/83xx/Kconfig
@@ -1,8 +1,6 @@
-menu "Platform support"
- depends on PPC_83xx
-
choice
prompt "Machine Type"
+ depends on PPC_83xx
default MPC834x_MDS
config MPC8313_RDB
@@ -77,5 +75,3 @@ config PPC_MPC836x
select PPC_UDBG_16550
select PPC_INDIRECT_PCI
default y if MPC836x_MDS
-
-endmenu
diff --git a/arch/powerpc/platforms/Kconfig b/arch/powerpc/platforms/Kconfig
index 5f2cef0..d686806 100644
--- a/arch/powerpc/platforms/Kconfig
+++ b/arch/powerpc/platforms/Kconfig
@@ -1,5 +1,5 @@
menu "Platform support"
- depends on PPC64 || CLASSIC32 || PPC_86xx
+ depends on PPC64 || CLASSIC32 || PPC_83xx || PPC_86xx
choice
prompt "Machine type"
@@ -45,6 +45,7 @@ source "arch/powerpc/platforms/pasemi/Kconfig"
source arch/powerpc/platforms/celleb/Kconfig
source arch/powerpc/platforms/ps3/Kconfig
source arch/powerpc/platforms/cell/Kconfig
+source "arch/powerpc/platforms/83xx/Kconfig"
source "arch/powerpc/platforms/86xx/Kconfig"
config PPC_NATIVE
--
1.5.0.6
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 4/7] Convert 82xx platform to unified platform Kconfig
2007-04-12 23:08 [PATCH 0/7] Kconfig cleanup part II Kumar Gala
` (2 preceding siblings ...)
2007-04-12 23:10 ` [PATCH 3/7] Convert 83xx " Kumar Gala
@ 2007-04-12 23:11 ` Kumar Gala
2007-04-12 23:11 ` [PATCH 5/7] Convert 8xx " Kumar Gala
` (3 subsequent siblings)
7 siblings, 0 replies; 11+ messages in thread
From: Kumar Gala @ 2007-04-12 23:11 UTC (permalink / raw)
To: linuxppc-dev
Moved 82xx platform Kconfig over to being sourced by the unified
arch/powerpc/platforms/Kconfig. Also, cleaned up whitespace issues in 82xx
Kconfig.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
arch/powerpc/Kconfig | 1 -
arch/powerpc/platforms/82xx/Kconfig | 50 ++++++++++------------------------
arch/powerpc/platforms/Kconfig | 12 +++++++-
3 files changed, 26 insertions(+), 37 deletions(-)
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 8576ff3..659b41f 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -377,7 +377,6 @@ source "arch/powerpc/platforms/Kconfig"
source arch/powerpc/platforms/embedded6xx/Kconfig
source arch/powerpc/platforms/4xx/Kconfig
-source arch/powerpc/platforms/82xx/Kconfig
source arch/powerpc/platforms/85xx/Kconfig
source arch/powerpc/platforms/8xx/Kconfig
diff --git a/arch/powerpc/platforms/82xx/Kconfig b/arch/powerpc/platforms/82xx/Kconfig
index 4110716..de7fce9 100644
--- a/arch/powerpc/platforms/82xx/Kconfig
+++ b/arch/powerpc/platforms/82xx/Kconfig
@@ -1,56 +1,36 @@
-menu "Platform support"
- depends on PPC_82xx
-
choice
- prompt "Machine Type"
- default MPC82xx_ADS
+ prompt "Machine Type"
+ depends on PPC_82xx
+ default MPC82xx_ADS
config MPC82xx_ADS
- bool "Freescale MPC82xx ADS"
- select DEFAULT_UIMAGE
- select PQ2ADS
- select 8272
- select 8260
- select CPM2
- select FSL_SOC
- help
- This option enables support for the MPC8272 ADS board
+ bool "Freescale MPC82xx ADS"
+ select DEFAULT_UIMAGE
+ select PQ2ADS
+ select 8272
+ select 8260
+ select FSL_SOC
+ help
+ This option enables support for the MPC8272 ADS board
endchoice
config PQ2ADS
bool
- depends on ADS8272
- default y
-
-config ADS8272
- bool
+ default n
config 8260
- bool "CPM2 Support" if WILLOW
+ bool
depends on 6xx
- default y if PQ2FADS
+ select CPM2
help
- The MPC8260 is a typical embedded CPU made by Motorola. Selecting
+ The MPC8260 is a typical embedded CPU made by Freescale. Selecting
this option means that you wish to build a kernel for a machine with
an 8260 class CPU.
config 8272
bool
- depends on 6xx
- default y if ADS8272
select 8260
help
The MPC8272 CPM has a different internal dpram setup than other CPM2
devices
-
-config CPM2
- bool
- depends on 8260 || MPC8560 || MPC8555
- default y
- help
- The CPM2 (Communications Processor Module) is a coprocessor on
- embedded CPUs made by Motorola. Selecting this option means that
- you wish to build a kernel for a machine with a CPM2 coprocessor
- on it (826x, 827x, 8560).
-endmenu
diff --git a/arch/powerpc/platforms/Kconfig b/arch/powerpc/platforms/Kconfig
index d686806..efa3a03 100644
--- a/arch/powerpc/platforms/Kconfig
+++ b/arch/powerpc/platforms/Kconfig
@@ -1,5 +1,5 @@
menu "Platform support"
- depends on PPC64 || CLASSIC32 || PPC_83xx || PPC_86xx
+ depends on PPC64 || CLASSIC32 || PPC_82xx || PPC_83xx || PPC_86xx
choice
prompt "Machine type"
@@ -45,6 +45,7 @@ source "arch/powerpc/platforms/pasemi/Kconfig"
source arch/powerpc/platforms/celleb/Kconfig
source arch/powerpc/platforms/ps3/Kconfig
source arch/powerpc/platforms/cell/Kconfig
+source "arch/powerpc/platforms/82xx/Kconfig"
source "arch/powerpc/platforms/83xx/Kconfig"
source "arch/powerpc/platforms/86xx/Kconfig"
@@ -221,4 +222,13 @@ config TAU_AVERAGE
If in doubt, say N here.
+config CPM2
+ bool
+ default n
+ help
+ The CPM2 (Communications Processor Module) is a coprocessor on
+ embedded CPUs made by Freescale. Selecting this option means that
+ you wish to build a kernel for a machine with a CPM2 coprocessor
+ on it (826x, 827x, 8560).
+
endmenu
--
1.5.0.6
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 5/7] Convert 8xx platform to unified platform Kconfig
2007-04-12 23:08 [PATCH 0/7] Kconfig cleanup part II Kumar Gala
` (3 preceding siblings ...)
2007-04-12 23:11 ` [PATCH 4/7] Convert 82xx " Kumar Gala
@ 2007-04-12 23:11 ` Kumar Gala
2007-04-12 23:12 ` [PATCH 6/7] Convert 85xx " Kumar Gala
` (2 subsequent siblings)
7 siblings, 0 replies; 11+ messages in thread
From: Kumar Gala @ 2007-04-12 23:11 UTC (permalink / raw)
To: linuxppc-dev
Moved 8xx platform Kconfig over to being sourced by the unified
arch/powerpc/platforms/Kconfig. Also, cleaned up whitespace issues in 8xx
Kconfig.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
arch/powerpc/Kconfig | 1 -
arch/powerpc/platforms/8xx/Kconfig | 67 ++++++++++++++++-------------------
arch/powerpc/platforms/Kconfig | 4 ++-
3 files changed, 34 insertions(+), 38 deletions(-)
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 659b41f..89e9c85 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -378,7 +378,6 @@ source "arch/powerpc/platforms/Kconfig"
source arch/powerpc/platforms/embedded6xx/Kconfig
source arch/powerpc/platforms/4xx/Kconfig
source arch/powerpc/platforms/85xx/Kconfig
-source arch/powerpc/platforms/8xx/Kconfig
menu "Kernel options"
diff --git a/arch/powerpc/platforms/8xx/Kconfig b/arch/powerpc/platforms/8xx/Kconfig
index beea683..39bb8c5 100644
--- a/arch/powerpc/platforms/8xx/Kconfig
+++ b/arch/powerpc/platforms/8xx/Kconfig
@@ -1,6 +1,3 @@
-menu "Platform support"
- depends on PPC_8xx
-
config FADS
bool
@@ -9,6 +6,7 @@ config CPM1
choice
prompt "8xx Machine Type"
+ depends on PPC_8xx
depends on 8xx
default MPC885ADS
@@ -36,38 +34,36 @@ config MPC885ADS
endchoice
menu "Freescale Ethernet driver platform-specific options"
- depends on (FS_ENET && MPC885ADS)
-
- config MPC8xx_SECOND_ETH
- bool "Second Ethernet channel"
- depends on MPC885ADS
- default y
- help
- This enables support for second Ethernet on MPC885ADS and MPC86xADS boards.
- The latter will use SCC1, for 885ADS you can select it below.
-
- choice
- prompt "Second Ethernet channel"
- depends on MPC8xx_SECOND_ETH
- default MPC8xx_SECOND_ETH_FEC2
-
- config MPC8xx_SECOND_ETH_FEC2
- bool "FEC2"
- depends on MPC885ADS
- help
- Enable FEC2 to serve as 2-nd Ethernet channel. Note that SMC2
- (often 2-nd UART) will not work if this is enabled.
-
- config MPC8xx_SECOND_ETH_SCC3
- bool "SCC3"
- depends on MPC885ADS
- help
- Enable SCC3 to serve as 2-nd Ethernet channel. Note that SMC1
- (often 1-nd UART) will not work if this is enabled.
-
- endchoice
+ depends on (FS_ENET && MPC885ADS)
-endmenu
+ config MPC8xx_SECOND_ETH
+ bool "Second Ethernet channel"
+ depends on MPC885ADS
+ default y
+ help
+ This enables support for second Ethernet on MPC885ADS and MPC86xADS boards.
+ The latter will use SCC1, for 885ADS you can select it below.
+
+ choice
+ prompt "Second Ethernet channel"
+ depends on MPC8xx_SECOND_ETH
+ default MPC8xx_SECOND_ETH_FEC2
+
+ config MPC8xx_SECOND_ETH_FEC2
+ bool "FEC2"
+ depends on MPC885ADS
+ help
+ Enable FEC2 to serve as 2-nd Ethernet channel. Note that SMC2
+ (often 2-nd UART) will not work if this is enabled.
+
+ config MPC8xx_SECOND_ETH_SCC3
+ bool "SCC3"
+ depends on MPC885ADS
+ help
+ Enable SCC3 to serve as 2-nd Ethernet channel. Note that SMC1
+ (often 1-nd UART) will not work if this is enabled.
+
+ endchoice
endmenu
@@ -98,7 +94,7 @@ config 8xx_CPU6
require workarounds for Linux (and most other OSes to work). If you
get a BUG() very early in boot, this might fix the problem. For
more details read the document entitled "MPC860 Family Device Errata
- Reference" on Motorola's website. This option also incurs a
+ Reference" on Freescale's website. This option also incurs a
performance hit.
If in doubt, say N here.
@@ -135,4 +131,3 @@ config UCODE_PATCH
depends on !NO_UCODE_PATCH
endmenu
-
diff --git a/arch/powerpc/platforms/Kconfig b/arch/powerpc/platforms/Kconfig
index efa3a03..eb69e72 100644
--- a/arch/powerpc/platforms/Kconfig
+++ b/arch/powerpc/platforms/Kconfig
@@ -1,5 +1,6 @@
menu "Platform support"
- depends on PPC64 || CLASSIC32 || PPC_82xx || PPC_83xx || PPC_86xx
+ depends on PPC64 || CLASSIC32 || PPC_8xx || PPC_82xx || PPC_83xx || \
+ PPC_86xx
choice
prompt "Machine type"
@@ -45,6 +46,7 @@ source "arch/powerpc/platforms/pasemi/Kconfig"
source arch/powerpc/platforms/celleb/Kconfig
source arch/powerpc/platforms/ps3/Kconfig
source arch/powerpc/platforms/cell/Kconfig
+source "arch/powerpc/platforms/8xx/Kconfig"
source "arch/powerpc/platforms/82xx/Kconfig"
source "arch/powerpc/platforms/83xx/Kconfig"
source "arch/powerpc/platforms/86xx/Kconfig"
--
1.5.0.6
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 6/7] Convert 85xx platform to unified platform Kconfig
2007-04-12 23:08 [PATCH 0/7] Kconfig cleanup part II Kumar Gala
` (4 preceding siblings ...)
2007-04-12 23:11 ` [PATCH 5/7] Convert 8xx " Kumar Gala
@ 2007-04-12 23:12 ` Kumar Gala
2007-04-12 23:12 ` [PATCH 7/7] Miscellaneous arch/powerpc Kconfig and platform/Kconfig cleanup Kumar Gala
2007-04-13 11:37 ` [PATCH 0/7] Kconfig cleanup part II Arnd Bergmann
7 siblings, 0 replies; 11+ messages in thread
From: Kumar Gala @ 2007-04-12 23:12 UTC (permalink / raw)
To: linuxppc-dev
Moved 85xx platform Kconfig over to being sourced by the unified
arch/powerpc/platforms/Kconfig.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
arch/powerpc/Kconfig | 1 -
arch/powerpc/platforms/85xx/Kconfig | 29 ++++-------------------------
arch/powerpc/platforms/Kconfig | 3 ++-
3 files changed, 6 insertions(+), 27 deletions(-)
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 89e9c85..033666c 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -377,7 +377,6 @@ source "arch/powerpc/platforms/Kconfig"
source arch/powerpc/platforms/embedded6xx/Kconfig
source arch/powerpc/platforms/4xx/Kconfig
-source arch/powerpc/platforms/85xx/Kconfig
menu "Kernel options"
diff --git a/arch/powerpc/platforms/85xx/Kconfig b/arch/powerpc/platforms/85xx/Kconfig
index 124e2c5..c79ae86 100644
--- a/arch/powerpc/platforms/85xx/Kconfig
+++ b/arch/powerpc/platforms/85xx/Kconfig
@@ -1,8 +1,6 @@
-menu "Platform support"
- depends on PPC_85xx
-
choice
prompt "Machine Type"
+ depends on PPC_85xx
default MPC8540_ADS
config MPC8540_ADS
@@ -46,33 +44,14 @@ config MPC8540
config MPC8560
bool
- select PPC_INDIRECT_PCI
+ select CPM2
default y if MPC8560_ADS
config MPC85xx
bool
select PPC_UDBG_16550
select PPC_INDIRECT_PCI
+ select PPC_INDIRECT_PCI_BE
+ select MPIC
default y if MPC8540_ADS || MPC85xx_CDS || MPC8560_ADS \
|| MPC85xx_MDS || MPC8544_DS
-
-config PPC_INDIRECT_PCI_BE
- bool
- depends on PPC_85xx
- default y
-
-config MPIC
- bool
- default y
-
-config CPM2
- bool
- depends on MPC8560
- default y
- help
- The CPM2 (Communications Processor Module) is a coprocessor on
- embedded CPUs made by Motorola. Selecting this option means that
- you wish to build a kernel for a machine with a CPM2 coprocessor
- on it.
-
-endmenu
diff --git a/arch/powerpc/platforms/Kconfig b/arch/powerpc/platforms/Kconfig
index eb69e72..e173fd4 100644
--- a/arch/powerpc/platforms/Kconfig
+++ b/arch/powerpc/platforms/Kconfig
@@ -1,6 +1,6 @@
menu "Platform support"
depends on PPC64 || CLASSIC32 || PPC_8xx || PPC_82xx || PPC_83xx || \
- PPC_86xx
+ PPC_85xx || PPC_86xx
choice
prompt "Machine type"
@@ -49,6 +49,7 @@ source arch/powerpc/platforms/cell/Kconfig
source "arch/powerpc/platforms/8xx/Kconfig"
source "arch/powerpc/platforms/82xx/Kconfig"
source "arch/powerpc/platforms/83xx/Kconfig"
+source "arch/powerpc/platforms/85xx/Kconfig"
source "arch/powerpc/platforms/86xx/Kconfig"
config PPC_NATIVE
--
1.5.0.6
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 7/7] Miscellaneous arch/powerpc Kconfig and platform/Kconfig cleanup
2007-04-12 23:08 [PATCH 0/7] Kconfig cleanup part II Kumar Gala
` (5 preceding siblings ...)
2007-04-12 23:12 ` [PATCH 6/7] Convert 85xx " Kumar Gala
@ 2007-04-12 23:12 ` Kumar Gala
2007-04-13 11:37 ` [PATCH 0/7] Kconfig cleanup part II Arnd Bergmann
7 siblings, 0 replies; 11+ messages in thread
From: Kumar Gala @ 2007-04-12 23:12 UTC (permalink / raw)
To: linuxppc-dev
* Cleaned up some whitespace in arch/powerpc/Kconfig
* Moved sourcing of platforms/embedded6xx/Kconfig into platform/Kconfig
* Moved sourcing of platforms/4xx/Kconfig into platform/Kconfig and disabled it
* Removed EMBEDDEDBOOT since its not supported in arch/powerpc
* Removed PC_KEYBOARD since its not used anywhere
* Moved a few CONFIG options around in platform/Kconfig
* Moved interrupt controllers into platform/Kconfig out of bus section
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
arch/powerpc/Kconfig | 37 +++++--------------------------------
arch/powerpc/platforms/Kconfig | 38 +++++++++++++++++++++++++-------------
2 files changed, 30 insertions(+), 45 deletions(-)
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 033666c..26713da 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -192,7 +192,6 @@ config 44x
bool "AMCC 44x"
select PPC_DCR_NATIVE
-
config E200
bool "Freescale e200"
@@ -375,9 +374,6 @@ source "init/Kconfig"
source "arch/powerpc/platforms/Kconfig"
-source arch/powerpc/platforms/embedded6xx/Kconfig
-source arch/powerpc/platforms/4xx/Kconfig
-
menu "Kernel options"
config HIGHMEM
@@ -459,15 +455,6 @@ config CRASH_DUMP
Don't change this unless you know what you are doing.
-config EMBEDDEDBOOT
- bool
- depends on 8xx || 8260
- default y
-
-config PC_KEYBOARD
- bool "PC PS/2 style Keyboard"
- depends on 4xx || CPM2
-
config PPCBUG_NVRAM
bool "Enable reading PPCBUG NVRAM during boot" if PPLUS || LOPEC
default y if PPC_PREP
@@ -481,7 +468,6 @@ config IRQ_ALL_CPUS
CPU. Generally saying Y is safe, although some problems have been
reported with SMP Power Macintoshes with this option enabled.
-
config NUMA
bool "NUMA support"
depends on PPC64
@@ -531,10 +517,10 @@ config PPC_64K_PAGES
depends on PPC64
help
This option changes the kernel logical page size to 64k. On machines
- without processor support for 64k pages, the kernel will simulate
- them by loading each individual 4k page on demand transparently,
- while on hardware with such support, it will be used to map
- normal application pages.
+ without processor support for 64k pages, the kernel will simulate
+ them by loading each individual 4k page on demand transparently,
+ while on hardware with such support, it will be used to map
+ normal application pages.
config SCHED_SMT
bool "SMT (Hyperthreading) scheduler support"
@@ -614,18 +600,6 @@ config GENERIC_ISA_DMA
depends on PPC64 || POWER4 || 6xx && !CPM2
default y
-config MPIC
- bool
- default n
-
-config MPIC_WEIRD
- bool
- default n
-
-config PPC_I8259
- bool
- default n
-
config PPC_INDIRECT_PCI
bool
depends on PCI
@@ -857,11 +831,10 @@ source "fs/Kconfig"
source "arch/powerpc/sysdev/qe_lib/Kconfig"
-
source "lib/Kconfig"
menu "Instrumentation Support"
- depends on EXPERIMENTAL
+ depends on EXPERIMENTAL
source "arch/powerpc/oprofile/Kconfig"
diff --git a/arch/powerpc/platforms/Kconfig b/arch/powerpc/platforms/Kconfig
index e173fd4..86be82a 100644
--- a/arch/powerpc/platforms/Kconfig
+++ b/arch/powerpc/platforms/Kconfig
@@ -1,6 +1,4 @@
menu "Platform support"
- depends on PPC64 || CLASSIC32 || PPC_8xx || PPC_82xx || PPC_83xx || \
- PPC_85xx || PPC_86xx
choice
prompt "Machine type"
@@ -27,14 +25,6 @@ config APUS
<http://linux-apus.sourceforge.net/>.
endchoice
-config QUICC_ENGINE
- bool
- help
- The QUICC Engine (QE) is a new generation of communications
- coprocessors on Freescale embedded CPUs (akin to CPM in older chips).
- Selecting this option means that you wish to build a kernel
- for a machine with a QE coprocessor.
-
source "arch/powerpc/platforms/pseries/Kconfig"
source "arch/powerpc/platforms/iseries/Kconfig"
source "arch/powerpc/platforms/chrp/Kconfig"
@@ -43,14 +33,16 @@ source "arch/powerpc/platforms/powermac/Kconfig"
source "arch/powerpc/platforms/prep/Kconfig"
source "arch/powerpc/platforms/maple/Kconfig"
source "arch/powerpc/platforms/pasemi/Kconfig"
-source arch/powerpc/platforms/celleb/Kconfig
-source arch/powerpc/platforms/ps3/Kconfig
-source arch/powerpc/platforms/cell/Kconfig
+source "arch/powerpc/platforms/celleb/Kconfig"
+source "arch/powerpc/platforms/ps3/Kconfig"
+source "arch/powerpc/platforms/cell/Kconfig"
source "arch/powerpc/platforms/8xx/Kconfig"
source "arch/powerpc/platforms/82xx/Kconfig"
source "arch/powerpc/platforms/83xx/Kconfig"
source "arch/powerpc/platforms/85xx/Kconfig"
source "arch/powerpc/platforms/86xx/Kconfig"
+source "arch/powerpc/platforms/embedded6xx/Kconfig"
+#source "arch/powerpc/platforms/4xx/Kconfig
config PPC_NATIVE
bool
@@ -75,6 +67,18 @@ config XICS
bool
default y
+config MPIC
+ bool
+ default n
+
+config MPIC_WEIRD
+ bool
+ default n
+
+config PPC_I8259
+ bool
+ default n
+
config U3_DART
bool
depends on PPC_MULTIPLATFORM && PPC64
@@ -225,6 +229,14 @@ config TAU_AVERAGE
If in doubt, say N here.
+config QUICC_ENGINE
+ bool
+ help
+ The QUICC Engine (QE) is a new generation of communications
+ coprocessors on Freescale embedded CPUs (akin to CPM in older chips).
+ Selecting this option means that you wish to build a kernel
+ for a machine with a QE coprocessor.
+
config CPM2
bool
default n
--
1.5.0.6
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH 0/7] Kconfig cleanup part II
2007-04-12 23:08 [PATCH 0/7] Kconfig cleanup part II Kumar Gala
` (6 preceding siblings ...)
2007-04-12 23:12 ` [PATCH 7/7] Miscellaneous arch/powerpc Kconfig and platform/Kconfig cleanup Kumar Gala
@ 2007-04-13 11:37 ` Arnd Bergmann
2007-04-13 11:48 ` David Gibson
2007-04-13 15:02 ` Kumar Gala
7 siblings, 2 replies; 11+ messages in thread
From: Arnd Bergmann @ 2007-04-13 11:37 UTC (permalink / raw)
To: linuxppc-dev
On Friday 13 April 2007, Kumar Gala wrote:
> Here the second part of the Kconfig cleanup to move all the
> platform/*/Kconfig to be sourced by platform/Kconfig. =A0Plus some other
> minor cleanups.
Nice patches, I had thought about doing these as well after
I have cleaned up the CPU selection.
Two questions though:
=2D Is there a technical reason why we want to disallow building
a kernel that contains a combination of 6xx, 83xx, 86xx and
embedded6xx platforms, or are there only bugs that make it
impossible?
=2D I'm still not sure whether platform selection or cpu selection
should come first, three options I can think of are:
1. CPU first, then platform:
you might choose to build a kernel for 970 exclusively, which
would allow you to select powermac, pseries and maple but no
other platforms.
2. Platform first, the CPU:
You might select pseries as the only platform, and then get
presented with the choice between power3 to power6, rs64
and 970, but not cell or pa6t.
3. platform and CPU depend on instruction set, but not on each other,
You only choose between powerpc64, 4xx, 6xx, e200, e500 or 8xx.
This would allow nonworking setups though, like a 83xx platform
with a 601 cpu or a ps3 with power5 cpu.
Arnd <><
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 0/7] Kconfig cleanup part II
2007-04-13 11:37 ` [PATCH 0/7] Kconfig cleanup part II Arnd Bergmann
@ 2007-04-13 11:48 ` David Gibson
2007-04-13 15:02 ` Kumar Gala
1 sibling, 0 replies; 11+ messages in thread
From: David Gibson @ 2007-04-13 11:48 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: linuxppc-dev
On Fri, Apr 13, 2007 at 01:37:07PM +0200, Arnd Bergmann wrote:
> On Friday 13 April 2007, Kumar Gala wrote:
> > Here the second part of the Kconfig cleanup to move all the
> > platform/*/Kconfig to be sourced by platform/Kconfig. Plus some other
> > minor cleanups.
>
> Nice patches, I had thought about doing these as well after
> I have cleaned up the CPU selection.
>
> Two questions though:
> - Is there a technical reason why we want to disallow building
> a kernel that contains a combination of 6xx, 83xx, 86xx and
> embedded6xx platforms, or are there only bugs that make it
> impossible?
>
> - I'm still not sure whether platform selection or cpu selection
> should come first, three options I can think of are:
> 1. CPU first, then platform:
> you might choose to build a kernel for 970 exclusively, which
> would allow you to select powermac, pseries and maple but no
> other platforms.
> 2. Platform first, the CPU:
> You might select pseries as the only platform, and then get
> presented with the choice between power3 to power6, rs64
> and 970, but not cell or pa6t.
> 3. platform and CPU depend on instruction set, but not on each other,
> You only choose between powerpc64, 4xx, 6xx, e200, e500 or 8xx.
> This would allow nonworking setups though, like a 83xx platform
> with a 601 cpu or a ps3 with power5 cpu.
I would suggest CPU family first (where "family" mostly corresponds to
MMU design: 4xx, 44x, classic32, ppc64 etc.). Then platforms, with
any combination allowable from the selected CPU family. Specific CPU
models would usually be implied by platform selection.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 0/7] Kconfig cleanup part II
2007-04-13 11:37 ` [PATCH 0/7] Kconfig cleanup part II Arnd Bergmann
2007-04-13 11:48 ` David Gibson
@ 2007-04-13 15:02 ` Kumar Gala
1 sibling, 0 replies; 11+ messages in thread
From: Kumar Gala @ 2007-04-13 15:02 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: linuxppc-dev
On Apr 13, 2007, at 6:37 AM, Arnd Bergmann wrote:
> On Friday 13 April 2007, Kumar Gala wrote:
>> Here the second part of the Kconfig cleanup to move all the
>> platform/*/Kconfig to be sourced by platform/Kconfig. Plus some
>> other
>> minor cleanups.
>
> Nice patches, I had thought about doing these as well after
> I have cleaned up the CPU selection.
>
> Two questions though:
> - Is there a technical reason why we want to disallow building
> a kernel that contains a combination of 6xx, 83xx, 86xx and
> embedded6xx platforms, or are there only bugs that make it
> impossible?
I don't believe there's anything technical just a matter of effort.
There are a few things that need to happen before we get there. For
now, I figured we'd leave things as they are.
> - I'm still not sure whether platform selection or cpu selection
> should come first, three options I can think of are:
> 1. CPU first, then platform:
> you might choose to build a kernel for 970 exclusively, which
> would allow you to select powermac, pseries and maple but no
> other platforms.
> 2. Platform first, the CPU:
> You might select pseries as the only platform, and then get
> presented with the choice between power3 to power6, rs64
> and 970, but not cell or pa6t.
> 3. platform and CPU depend on instruction set, but not on each
> other,
> You only choose between powerpc64, 4xx, 6xx, e200, e500 or 8xx.
> This would allow nonworking setups though, like a 83xx platform
> with a 601 cpu or a ps3 with power5 cpu.
I think the way we do it now with processor family makes the most
sense. I have to believe that most people using a kernel on pseries,
iseries, pmac, etc aren't doing much kernel configuration. However
if your on the embedded side you most like know what processor you
have and go from there.
- k
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2007-04-13 15:02 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-12 23:08 [PATCH 0/7] Kconfig cleanup part II Kumar Gala
2007-04-12 23:09 ` [PATCH 1/7] Ensure platform CONFIG options have correct dependencies Kumar Gala
2007-04-12 23:09 ` [PATCH 2/7] Convert 86xx platform to unified platform Kconfig Kumar Gala
2007-04-12 23:10 ` [PATCH 3/7] Convert 83xx " Kumar Gala
2007-04-12 23:11 ` [PATCH 4/7] Convert 82xx " Kumar Gala
2007-04-12 23:11 ` [PATCH 5/7] Convert 8xx " Kumar Gala
2007-04-12 23:12 ` [PATCH 6/7] Convert 85xx " Kumar Gala
2007-04-12 23:12 ` [PATCH 7/7] Miscellaneous arch/powerpc Kconfig and platform/Kconfig cleanup Kumar Gala
2007-04-13 11:37 ` [PATCH 0/7] Kconfig cleanup part II Arnd Bergmann
2007-04-13 11:48 ` David Gibson
2007-04-13 15:02 ` 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).