powerpc/kconfig: Kill PPC_MULTIPLATFORM
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 10 Mar 2009 17:53:27 +0000 (17:53 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 11 Mar 2009 06:11:35 +0000 (17:11 +1100)
CONFIG_PPC_MULTIPLATFORM is a remain of the pre-powerpc days and isn't
really meaningful anymore. It was basically equivalent to PPC64 || 6xx.

This removes it along with the following changes:

 - 32-bit platforms that relied on PPC32 && PPC_MULTIPLATFORM now rely
   on 6xx which is what they want anyway.

 - A new symbol, PPC_BOOK3S, is defined that represent compliance with
   the "Server" variant of the architecture. This is set when either 6xx
   or PPC64 is set and open the door for future BOOK3E 64-bit.

 - 64-bit platforms that relied on PPC64 && PPC_MULTIPLATFORM now use
   PPC64 && PPC_BOOK3S

 - A separate and selectable CONFIG_PPC_OF_BOOT_TRAMPOLINE option is now
   used to control the use of prom_init.c

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
23 files changed:
arch/powerpc/Kconfig
arch/powerpc/Kconfig.debug
arch/powerpc/kernel/Makefile
arch/powerpc/kernel/head_32.S
arch/powerpc/kernel/head_64.S
arch/powerpc/platforms/512x/Kconfig
arch/powerpc/platforms/52xx/Kconfig
arch/powerpc/platforms/82xx/Kconfig
arch/powerpc/platforms/83xx/Kconfig
arch/powerpc/platforms/86xx/Kconfig
arch/powerpc/platforms/Kconfig
arch/powerpc/platforms/Kconfig.cputype
arch/powerpc/platforms/amigaone/Kconfig
arch/powerpc/platforms/cell/Kconfig
arch/powerpc/platforms/chrp/Kconfig
arch/powerpc/platforms/embedded6xx/Kconfig
arch/powerpc/platforms/iseries/Kconfig
arch/powerpc/platforms/maple/Kconfig
arch/powerpc/platforms/pasemi/Kconfig
arch/powerpc/platforms/powermac/Kconfig
arch/powerpc/platforms/prep/Kconfig
arch/powerpc/platforms/ps3/Kconfig
arch/powerpc/platforms/pseries/Kconfig

index 5c10af66fb518eb8f7b96ab519f40e1a94ed5bb4..ad6b1c084fe35ddcfdeb26695519237b49e7368f 100644 (file)
@@ -313,7 +313,7 @@ config ARCH_ENABLE_MEMORY_HOTREMOVE
 
 config KEXEC
        bool "kexec system call (EXPERIMENTAL)"
-       depends on (PPC_PRPMC2800 || PPC_MULTIPLATFORM) && EXPERIMENTAL
+       depends on BOOK3S && EXPERIMENTAL
        help
          kexec is a system call that implements the ability to shutdown your
          current kernel, and to start another kernel.  It is like a reboot
index 08f7cc0a1953a2c3bae6c88e165f44e50379c23d..22091bbfdc9b8dd0919dea550aeb9aeb6178bf77 100644 (file)
@@ -129,7 +129,7 @@ config BDI_SWITCH
 
 config BOOTX_TEXT
        bool "Support for early boot text console (BootX or OpenFirmware only)"
-       depends on PPC_OF && PPC_MULTIPLATFORM
+       depends on PPC_OF && PPC_BOOK3S
        help
          Say Y here to see progress messages from the boot firmware in text
          mode. Requires either BootX or Open Firmware.
index dfec3d2790b2829118fdb424f659569f2e4b94db..71901fbda4a5649d737e7f37177da4fa46c3a666 100644 (file)
@@ -75,7 +75,7 @@ obj-y                         += time.o prom.o traps.o setup-common.o \
 obj-$(CONFIG_PPC32)            += entry_32.o setup_32.o
 obj-$(CONFIG_PPC64)            += dma-iommu.o iommu.o
 obj-$(CONFIG_KGDB)             += kgdb.o
-obj-$(CONFIG_PPC_MULTIPLATFORM)        += prom_init.o
+obj-$(CONFIG_PPC_OF_BOOT_TRAMPOLINE)   += prom_init.o
 obj-$(CONFIG_MODULES)          += ppc_ksyms.o
 obj-$(CONFIG_BOOTX_TEXT)       += btext.o
 obj-$(CONFIG_SMP)              += smp.o
index a1c4cfd25dedb0fee8e01cdddd8ba66f76f0dc88..f8c2e6b6f457dabda37f54da8250548534bc04d6 100644 (file)
@@ -108,18 +108,21 @@ __start:
  * because OF may have I/O devices mapped into that area
  * (particularly on CHRP).
  */
-#ifdef CONFIG_PPC_MULTIPLATFORM
        cmpwi   0,r5,0
        beq     1f
 
+#ifdef CONFIG_PPC_OF_BOOT_TRAMPOLINE
        /* find out where we are now */
        bcl     20,31,$+4
 0:     mflr    r8                      /* r8 = runtime addr here */
        addis   r8,r8,(_stext - 0b)@ha
        addi    r8,r8,(_stext - 0b)@l   /* current runtime base addr */
        bl      prom_init
+#endif /* CONFIG_PPC_OF_BOOT_TRAMPOLINE */
+
+       /* We never return. We also hit that trap if trying to boot
+        * from OF while CONFIG_PPC_OF_BOOT_TRAMPOLINE isn't selected */
        trap
-#endif
 
 /*
  * Check for BootX signature when supporting PowerMac and branch to
index ebaedafc8e67403efe716703d6110825d589a77d..50ef505b8fb6d0c9bedf58b22978292391ee83fa 100644 (file)
@@ -1360,6 +1360,7 @@ _GLOBAL(__start_initialization_multiplatform)
        b       .__after_prom_start
 
 _INIT_STATIC(__boot_from_prom)
+#ifdef CONFIG_PPC_OF_BOOT_TRAMPOLINE
        /* Save parameters */
        mr      r31,r3
        mr      r30,r4
@@ -1390,7 +1391,10 @@ _INIT_STATIC(__boot_from_prom)
        /* Do all of the interaction with OF client interface */
        mr      r8,r26
        bl      .prom_init
-       /* We never return */
+#endif /* #CONFIG_PPC_OF_BOOT_TRAMPOLINE */
+
+       /* We never return. We also hit that trap if trying to boot
+        * from OF while CONFIG_PPC_OF_BOOT_TRAMPOLINE isn't selected */
        trap
 
 _STATIC(__after_prom_start)
index 326852c78b8fa79caf1349f0e1776b955285a26c..4dac9b0525a458337c353bf0e95dba28ffd327e0 100644 (file)
@@ -12,7 +12,7 @@ config PPC_MPC5121
 
 config MPC5121_ADS
        bool "Freescale MPC5121E ADS"
-       depends on PPC_MULTIPLATFORM && PPC32
+       depends on 6xx
        select DEFAULT_UIMAGE
        select PPC_MPC5121
        select MPC5121_ADS_CPLD
@@ -21,7 +21,7 @@ config MPC5121_ADS
 
 config MPC5121_GENERIC
        bool "Generic support for simple MPC5121 based boards"
-       depends on PPC_MULTIPLATFORM && PPC32
+       depends on 6xx
        select DEFAULT_UIMAGE
        select PPC_MPC5121
        help
index 0465e5b36e6a97de744a134353496b7b926f01ca..e0b9454ae691df693908bbbe9173148548f64888 100644 (file)
@@ -1,6 +1,6 @@
 config PPC_MPC52xx
        bool "52xx-based boards"
-       depends on PPC_MULTIPLATFORM && PPC32
+       depends on 6xx
        select PPC_CLOCK
        select PPC_PCI_CHOICE
 
index 30f008b2f92e825f64cd518defc8bab99a9bb892..7c7df40038207b28ca1eaeb745ad725689cc400a 100644 (file)
@@ -1,6 +1,6 @@
 menuconfig PPC_82xx
        bool "82xx-based boards (PQ II)"
-       depends on 6xx && PPC_MULTIPLATFORM
+       depends on 6xx
 
 if PPC_82xx
 
index 83c664afc897c76023d65e7e4b231e9fa26c0310..437d29a59d725c379569253b4ef400bae1734287 100644 (file)
@@ -1,6 +1,6 @@
 menuconfig PPC_83xx
        bool "83xx-based boards"
-       depends on 6xx && PPC_MULTIPLATFORM
+       depends on 6xx
        select PPC_UDBG_16550
        select PPC_PCI_CHOICE
        select FSL_PCI if PCI
index fa276c689cf93a8bf8b4d74d229f99ec964df828..3492784507365856aa0cb8054f0bd271dcbe9f1a 100644 (file)
@@ -1,7 +1,7 @@
 config PPC_86xx
 menuconfig PPC_86xx
        bool "86xx-based boards"
-       depends on 6xx && PPC_MULTIPLATFORM
+       depends on 6xx
        select FSL_SOC
        select ALTIVEC
        help
index b4ab3728653efbcc936fee5709e75e9a1dbf50cb..68b9b8fd9f85f66e0cd0ddef52b3ad47fd747c79 100644 (file)
@@ -1,14 +1,5 @@
 menu "Platform support"
 
-config PPC_MULTIPLATFORM
-       bool
-       depends on PPC64 || 6xx
-       default y
-
-config CLASSIC32
-       def_bool y
-       depends on 6xx && PPC_MULTIPLATFORM
-
 source "arch/powerpc/platforms/pseries/Kconfig"
 source "arch/powerpc/platforms/iseries/Kconfig"
 source "arch/powerpc/platforms/chrp/Kconfig"
@@ -32,12 +23,24 @@ source "arch/powerpc/platforms/amigaone/Kconfig"
 
 config PPC_NATIVE
        bool
-       depends on PPC_MULTIPLATFORM
+       depends on 6xx || PPC64
        help
          Support for running natively on the hardware, i.e. without
          a hypervisor. This option is not user-selectable but should
          be selected by all platforms that need it.
 
+config PPC_OF_BOOT_TRAMPOLINE
+       bool "Support booting from Open Firmware or yaboot"
+       depends on 6xx || PPC64
+       default y
+       help
+         Support from booting from Open Firmware or yaboot using an
+         Open Firmware client interface. This enables the kernel to
+         communicate with open firmware to retrieve system informations
+         such as the device tree.
+
+         In case of doubt, say Y
+
 config UDBG_RTAS_CONSOLE
        bool "RTAS based debug console"
        depends on PPC_RTAS
@@ -71,7 +74,7 @@ config PPC_I8259
 
 config U3_DART
        bool
-       depends on PPC_MULTIPLATFORM && PPC64
+       depends on PPC64
        default n
 
 config PPC_RTAS
@@ -188,7 +191,7 @@ config PPC601_SYNC_FIX
 
 config TAU
        bool "On-chip CPU temperature sensor support"
-       depends on CLASSIC32
+       depends on 6xx
        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
index 9428c0e11b20d2f5304e342128f67aa993016a82..9da795e49337d0ae14e0357ba00aae37d4f41df1 100644 (file)
@@ -57,9 +57,17 @@ config E200
 
 endchoice
 
+# Until we have a choice of exclusive CPU types on 64-bit, we always
+# use PPC_BOOK3S. On 32-bit, this is equivalent to 6xx which is
+# "classic" MMU
+
+config PPC_BOOK3S
+       def_bool y
+       depends on PPC64 || 6xx
+
 config POWER4_ONLY
        bool "Optimize for POWER4"
-       depends on PPC64
+       depends on PPC64 && PPC_BOOK3S
        default n
        ---help---
          Cause the compiler to optimize for POWER4/POWER5/PPC970 processors.
@@ -68,16 +76,16 @@ config POWER4_ONLY
 
 config POWER3
        bool
-       depends on PPC64
+       depends on PPC64 && PPC_BOOK3S
        default y if !POWER4_ONLY
 
 config POWER4
-       depends on PPC64
+       depends on PPC64 && PPC_BOOK3S
        def_bool y
 
 config TUNE_CELL
        bool "Optimize for Cell Broadband Engine"
-       depends on PPC64
+       depends on PPC64 && PPC_BOOK3S
        help
          Cause the compiler to optimize for the PPE of the Cell Broadband
          Engine. This will make the code run considerably faster on Cell
@@ -147,7 +155,7 @@ config PHYS_64BIT
 
 config ALTIVEC
        bool "AltiVec Support"
-       depends on CLASSIC32 || POWER4
+       depends on 6xx || POWER4
        ---help---
          This option enables kernel support for the Altivec extensions to the
          PowerPC processor. The kernel currently supports saving and restoring
index 9276a96cedeef2d369a5b78f7e9c8c57a749a5a9..02247671771862b07581a9a0ae85ca345ff36abd 100644 (file)
@@ -1,6 +1,6 @@
 config AMIGAONE
        bool "Eyetech AmigaOne/MAI Teron"
-       depends on PPC32 && BROKEN_ON_SMP && PPC_MULTIPLATFORM
+       depends on 6xx && BROKEN_ON_SMP
        select PPC_I8259
        select PPC_INDIRECT_PCI
        select PPC_UDBG_16550
index 17b9b193557ca4e0e00eb596da8585b7813ca030..40e24c39ad0671e2ce945ccbff1240dd885ba2ba 100644 (file)
@@ -23,7 +23,7 @@ config PPC_CELL_NATIVE
 
 config PPC_IBM_CELL_BLADE
        bool "IBM Cell Blade"
-       depends on PPC_MULTIPLATFORM && PPC64
+       depends on PPC64 && PPC_BOOK3S
        select PPC_CELL_NATIVE
        select MMIO_NVRAM
        select PPC_UDBG_16550
@@ -31,7 +31,7 @@ config PPC_IBM_CELL_BLADE
 
 config PPC_CELLEB
        bool "Toshiba's Cell Reference Set 'Celleb' Architecture"
-       depends on PPC_MULTIPLATFORM && PPC64
+       depends on PPC64 && PPC_BOOK3S
        select PPC_CELL_NATIVE
        select HAS_TXX9_SERIAL
        select PPC_UDBG_BEAT
@@ -40,7 +40,7 @@ config PPC_CELLEB
 
 config PPC_CELL_QPACE
        bool "IBM Cell - QPACE"
-       depends on PPC_MULTIPLATFORM && PPC64
+       depends on PPC64 && PPC_BOOK3S
        select PPC_CELL_COMMON
 
 config AXON_MSI
index 22b4b4e3b6f020e6e1625980f92dcd7c97cc7133..37d438bd5b7a10f29a9b40eafc8f2edf1cc5ffe1 100644 (file)
@@ -1,6 +1,6 @@
 config PPC_CHRP
        bool "Common Hardware Reference Platform (CHRP) based machines"
-       depends on PPC_MULTIPLATFORM && PPC32
+       depends on 6xx
        select MPIC
        select PPC_I8259
        select PPC_INDIRECT_PCI
index 4f9f8184d164146a577727e67ab1999f74a9e963..291ac9d8cbee09d4966fa0a46b846bebdb2c71df 100644 (file)
@@ -1,6 +1,6 @@
 config EMBEDDED6xx
        bool "Embedded 6xx/7xx/7xxx-based boards"
-       depends on PPC32 && BROKEN_ON_SMP && PPC_MULTIPLATFORM
+       depends on 6xx && BROKEN_ON_SMP
 
 config LINKSTATION
        bool "Linkstation / Kurobox(HG) from Buffalo"
index 7ddd0a2c80276e3538088dc6e290a881285e2788..647e87787437e43d058278a078ac52372410b2fb 100644 (file)
@@ -1,6 +1,6 @@
 config PPC_ISERIES
        bool "IBM Legacy iSeries"
-       depends on PPC_MULTIPLATFORM && PPC64
+       depends on PPC64 && PPC_BOOK3S
        select PPC_INDIRECT_IO
        select PPC_PCI_CHOICE if EMBEDDED
 
index a6467a5591fa921a3ac4faa0ea5b6450c08f5ea2..1ea621a94c3b37b7be099b5e54bb36fbee0c6dcc 100644 (file)
@@ -1,5 +1,5 @@
 config PPC_MAPLE
-       depends on PPC_MULTIPLATFORM && PPC64
+       depends on PPC64 && PPC_BOOK3S
        bool "Maple 970FX Evaluation Board"
        select PCI
        select MPIC
index 348e0619e3e53cd085e37c820b9732fde2e7ab94..a2aeb327d185a4c1d1e4bbb77c117f1a22558736 100644 (file)
@@ -1,5 +1,5 @@
 config PPC_PASEMI
-       depends on PPC_MULTIPLATFORM && PPC64
+       depends on PPC64 && PPC_BOOK3S
        bool "PA Semi SoC-based platforms"
        default n
        select MPIC
index 055990ca8ce6cb989d43c384fb3ca1c17502bed6..1e1a0873e1ddfe47c6427ebddecb024e17054291 100644 (file)
@@ -1,6 +1,6 @@
 config PPC_PMAC
        bool "Apple PowerMac based machines"
-       depends on PPC_MULTIPLATFORM
+       depends on PPC_BOOK3S
        select MPIC
        select PCI
        select PPC_INDIRECT_PCI if PPC32
index 29d411279b0cbbde12e7c93cd6524b6b27fd8365..bf8330ef2e768771a0be8004ee40b06a411d1c10 100644 (file)
@@ -1,6 +1,6 @@
 config PPC_PREP
        bool "PowerPC Reference Platform (PReP) based machines"
-       depends on PPC_MULTIPLATFORM && PPC32 && BROKEN
+       depends on 6xx && BROKEN
        select MPIC
        select PPC_I8259
        select PPC_INDIRECT_PCI
index 920cf7a454b1d26df440baf93409dad33c9b2394..204ae5c402fad507d1b333f18fb70befecc87700 100644 (file)
@@ -1,6 +1,6 @@
 config PPC_PS3
        bool "Sony PS3"
-       depends on PPC_MULTIPLATFORM && PPC64
+       depends on PPC64 && PPC_BOOK3S
        select PPC_CELL
        select USB_ARCH_HAS_OHCI
        select USB_OHCI_LITTLE_ENDIAN
index 095ff6f846b9028d2f3cb2e1ad1ed1893e7b78e1..c0e6ec240f46acd388230c616c2702487b727e1f 100644 (file)
@@ -1,5 +1,5 @@
 config PPC_PSERIES
-       depends on PPC_MULTIPLATFORM && PPC64
+       depends on PPC64 && PPC_BOOK3S
        bool "IBM pSeries & new (POWER5-based) iSeries"
        select MPIC
        select PPC_I8259
This page took 0.03881 seconds and 5 git commands to generate.