[POWERPC] Split several platforms into their respective Kconfig file
[cascardo/linux.git] / arch / powerpc / Kconfig
index d6abe49..c5014ba 100644 (file)
@@ -89,7 +89,7 @@ config SCHED_NO_NO_OMIT_FRAME_POINTER
 
 config ARCH_MAY_HAVE_PC_FDC
        bool
-       default y
+       default !PPC_PSERIES || PCI
 
 config PPC_OF
        def_bool y
@@ -173,6 +173,11 @@ config PPC_86xx
        help
          The Freescale E600 SoCs have 74xx cores.
 
+config PPC_8xx
+       bool "Freescale 8xx"
+       select FSL_SOC
+       select 8xx
+
 config 40x
        bool "AMCC 40x"
        select PPC_DCR_NATIVE
@@ -181,8 +186,6 @@ config 44x
        bool "AMCC 44x"
        select PPC_DCR_NATIVE
 
-config 8xx
-       bool "Freescale 8xx"
 
 config E200
        bool "Freescale e200"
@@ -210,6 +213,10 @@ config POWER4
 config 6xx
        bool
 
+# this is temp to handle compat with arch=ppc
+config 8xx
+       bool
+
 # this is temp to handle compat with arch=ppc
 config 83xx
        bool
@@ -397,144 +404,17 @@ config QUICC_ENGINE
          Selecting this option means that you wish to build a kernel
          for a machine with a QE coprocessor.
 
-config PPC_PSERIES
-       depends on PPC_MULTIPLATFORM && PPC64
-       bool "IBM pSeries & new (POWER5-based) iSeries"
-       select MPIC
-       select PPC_I8259
-       select PPC_RTAS
-       select RTAS_ERROR_LOGGING
-       select PPC_UDBG_16550
-       select PPC_NATIVE
-       default y
-
-config PPC_ISERIES
-       bool "IBM Legacy iSeries"
-       depends on PPC_MULTIPLATFORM && PPC64
-       select PPC_INDIRECT_IO
-
-config PPC_CHRP
-       bool "Common Hardware Reference Platform (CHRP) based machines"
-       depends on PPC_MULTIPLATFORM && PPC32
-       select MPIC
-       select PPC_I8259
-       select PPC_INDIRECT_PCI
-       select PPC_RTAS
-       select PPC_MPC106
-       select PPC_UDBG_16550
-       select PPC_NATIVE
-       default y
-
-config PPC_MPC52xx
-       bool
-       default n
-
-config PPC_EFIKA
-       bool "bPlan Efika 5k2. MPC5200B based computer"
-       depends on PPC_MULTIPLATFORM && PPC32
-       select PPC_RTAS
-       select RTAS_PROC
-       select PPC_MPC52xx
-       select PPC_NATIVE
-       default n
-
-config PPC_LITE5200
-       bool "Freescale Lite5200 Eval Board"
-       depends on PPC_MULTIPLATFORM && PPC32
-       select PPC_MPC52xx
-       default n
-
-config PPC_PMAC
-       bool "Apple PowerMac based machines"
-       depends on PPC_MULTIPLATFORM
-       select MPIC
-       select PPC_INDIRECT_PCI if PPC32
-       select PPC_MPC106 if PPC32
-       select PPC_NATIVE
-       default y
-
-config PPC_PMAC64
-       bool
-       depends on PPC_PMAC && POWER4
-       select MPIC
-       select U3_DART
-       select MPIC_BROKEN_U3
-       select GENERIC_TBSYNC
-       select PPC_970_NAP
-       default y
-
-config PPC_PREP
-       bool "PowerPC Reference Platform (PReP) based machines"
-       depends on PPC_MULTIPLATFORM && PPC32 && BROKEN
-       select MPIC
-       select PPC_I8259
-       select PPC_INDIRECT_PCI
-       select PPC_UDBG_16550
-       select PPC_NATIVE
-       default n
-
-config PPC_MAPLE
-       depends on PPC_MULTIPLATFORM && PPC64
-       bool "Maple 970FX Evaluation Board"
-       select MPIC
-       select U3_DART
-       select MPIC_BROKEN_U3
-       select GENERIC_TBSYNC
-       select PPC_UDBG_16550
-       select PPC_970_NAP
-       select PPC_NATIVE
-       select PPC_RTAS
-       select ATA_NONSTANDARD if ATA
-       default n
-       help
-          This option enables support for the Maple 970FX Evaluation Board.
-         For more information, refer to <http://www.970eval.com>
-
-config PPC_PASEMI
-       depends on PPC_MULTIPLATFORM && PPC64
-       bool "PA Semi SoC-based platforms"
-       default n
-       select MPIC
-       select PPC_UDBG_16550
-       select GENERIC_TBSYNC
-       select PPC_NATIVE
-       help
-         This option enables support for PA Semi's PWRficient line
-         of SoC processors, including PA6T-1682M
-
-config PPC_CELL
-       bool
-       default n
-
-config PPC_CELL_NATIVE
-       bool
-       select PPC_CELL
-       select PPC_DCR_MMIO
-       select PPC_OF_PLATFORM_PCI
-       select PPC_INDIRECT_IO
-       select PPC_NATIVE
-       select MPIC
-       default n
-
-config PPC_IBM_CELL_BLADE
-       bool "IBM Cell Blade"
-       depends on PPC_MULTIPLATFORM && PPC64
-       select PPC_CELL_NATIVE
-       select PPC_RTAS
-       select MMIO_NVRAM
-       select PPC_UDBG_16550
-       select UDBG_RTAS_CONSOLE
-
-config PPC_PS3
-       bool "Sony PS3 (incomplete)"
-       depends on PPC_MULTIPLATFORM && PPC64
-       select PPC_CELL
-       help
-         This option enables support for the Sony PS3 game console
-         and other platforms using the PS3 hypervisor.
-         Support for this platform is not yet complete, so
-         enabling this will not result in a bootable kernel on a
-         PS3 system.
+source "arch/powerpc/platforms/pseries/Kconfig"
+source "arch/powerpc/platforms/iseries/Kconfig"
+source "arch/powerpc/platforms/chrp/Kconfig"
+source "arch/powerpc/platforms/52xx/Kconfig"
+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
 
 config PPC_NATIVE
        bool
@@ -549,6 +429,11 @@ config UDBG_RTAS_CONSOLE
        depends on PPC_RTAS
        default n
 
+config PPC_UDBG_BEAT
+       bool "BEAT based debug console"
+       depends on PPC_CELLEB
+       default n
+
 config XICS
        depends on PPC_PSERIES
        bool
@@ -577,6 +462,15 @@ config RTAS_FLASH
        tristate "Firmware flash interface"
        depends on PPC64 && RTAS_PROC
 
+config PPC_PMI
+       tristate "Support for PMI"
+       depends PPC_IBM_CELL_BLADE
+       help
+         PMI (Platform Management Interrupt) is a way to
+         communicate with the BMC (Baseboard Mangement Controller).
+         It is used in some IBM Cell blades.
+       default m
+
 config MMIO_NVRAM
        bool
        default n
@@ -700,8 +594,6 @@ source arch/powerpc/platforms/83xx/Kconfig
 source arch/powerpc/platforms/85xx/Kconfig
 source arch/powerpc/platforms/86xx/Kconfig
 source arch/powerpc/platforms/8xx/Kconfig
-source arch/powerpc/platforms/cell/Kconfig
-source arch/powerpc/platforms/ps3/Kconfig
 
 menu "Kernel options"
 
@@ -724,7 +616,7 @@ config FORCE_MAX_ZONEORDER
 
 config MATH_EMULATION
        bool "Math emulation"
-       depends on 4xx || 8xx || E200 || PPC_83xx || E500
+       depends on 4xx || 8xx || E200 || PPC_MPC832x || E500
        ---help---
          Some PowerPC chips designed for embedded applications do not have
          a floating-point unit and therefore do not implement the
@@ -806,7 +698,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.
 
-source "arch/powerpc/platforms/pseries/Kconfig"
 
 config NUMA
        bool "NUMA support"
@@ -832,7 +723,7 @@ config ARCH_SPARSEMEM_ENABLE
 
 config ARCH_SPARSEMEM_DEFAULT
        def_bool y
-       depends on (SMP && PPC_PSERIES) || PPC_CELL
+       depends on (SMP && PPC_PSERIES) || PPC_PS3
 
 config ARCH_POPULATES_NODE_MAP
        def_bool y
@@ -878,8 +769,6 @@ config PROC_DEVICETREE
          an image of the device tree that the kernel copies from Open
          Firmware or other boot firmware. If unsure, say Y here.
 
-source "arch/powerpc/platforms/prep/Kconfig"
-
 config CMDLINE_BOOL
        bool "Default bootloader kernel arguments"
 
@@ -933,6 +822,10 @@ config ISA
          have an IBM RS/6000 or pSeries machine or a PReP machine, say Y.  If
          you have an embedded board, consult your board documentation.
 
+config ZONE_DMA
+       bool
+       default y
+
 config GENERIC_ISA_DMA
        bool
        depends on PPC64 || POWER4 || 6xx && !CPM2
@@ -971,7 +864,8 @@ config MCA
 
 config PCI
        bool "PCI support" if 40x || CPM2 || PPC_83xx || PPC_85xx || PPC_86xx \
-               || PPC_MPC52xx || (EMBEDDED && PPC_ISERIES) || MPC7448HPC2 || PPC_PS3
+               || PPC_MPC52xx || (EMBEDDED && (PPC_PSERIES || PPC_ISERIES)) \
+               || MPC7448HPC2 || PPC_PS3
        default y if !40x && !CPM2 && !8xx && !APUS && !PPC_83xx \
                && !PPC_85xx && !PPC_86xx
        default PCI_PERMEDIA if !4xx && !CPM2 && !8xx && APUS
@@ -1171,7 +1065,6 @@ source "fs/Kconfig"
 
 source "arch/powerpc/sysdev/qe_lib/Kconfig"
 
-source "arch/powerpc/platforms/iseries/Kconfig"
 
 source "lib/Kconfig"
 
@@ -1182,7 +1075,7 @@ source "arch/powerpc/oprofile/Kconfig"
 
 config KPROBES
        bool "Kprobes (EXPERIMENTAL)"
-       depends on PPC64 && KALLSYMS && EXPERIMENTAL && MODULES
+       depends on !BOOKE && !4xx && KALLSYMS && EXPERIMENTAL && MODULES
        help
          Kprobes allows you to trap at almost any kernel address and
          execute a callback function.  register_kprobe() establishes