Skip to content

Commit

Permalink
powerpc/85xx: Kconfig cleanup
Browse files Browse the repository at this point in the history
Introduce new FSL_SOC_BOOKE Kconfig to handle both 85xx and QorIQ
based chips.

Signed-off-by: Kumar Gala <[email protected]>
  • Loading branch information
kumargala committed Nov 20, 2009
1 parent 2e9d546 commit 5753c08
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
11 changes: 6 additions & 5 deletions arch/powerpc/platforms/85xx/Kconfig
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
menuconfig MPC85xx
bool "Machine Type"
depends on PPC_85xx
menuconfig FSL_SOC_BOOKE
bool "Freescale Book-E Machine Type"
depends on PPC_85xx || PPC_BOOK3E
select FSL_SOC
select PPC_UDBG_16550
select MPIC
select PPC_PCI_CHOICE
select FSL_PCI if PCI
select SERIAL_8250_SHARE_IRQ if SERIAL_8250
default y

if MPC85xx
if FSL_SOC_BOOKE

config MPC8540_ADS
bool "Freescale MPC8540 ADS"
Expand Down Expand Up @@ -144,7 +145,7 @@ config SBC8560
help
This option enables support for the Wind River SBC8560 board

endif # MPC85xx
endif # FSL_SOC_BOOKE

config TQM85xx
bool
4 changes: 2 additions & 2 deletions arch/powerpc/platforms/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ config QE_GPIO

config CPM2
bool "Enable support for the CPM2 (Communications Processor Module)"
depends on MPC85xx || 8260
depends on (FSL_SOC_BOOKE && PPC32) || 8260
select CPM
select PPC_LIB_RHEAP
select PPC_PCI_CHOICE
Expand Down Expand Up @@ -305,7 +305,7 @@ source "arch/powerpc/sysdev/bestcomm/Kconfig"

config MPC8xxx_GPIO
bool "MPC8xxx GPIO support"
depends on PPC_MPC831x || PPC_MPC834x || PPC_MPC837x || PPC_85xx || PPC_86xx
depends on PPC_MPC831x || PPC_MPC834x || PPC_MPC837x || FSL_SOC_BOOKE || PPC_86xx
select GENERIC_GPIO
select ARCH_REQUIRE_GPIOLIB
help
Expand Down
17 changes: 8 additions & 9 deletions arch/powerpc/platforms/Kconfig.cputype
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ config PPC_BOOK3S_32
config PPC_85xx
bool "Freescale 85xx"
select E500
select FSL_SOC
select MPC85xx

config PPC_8xx
bool "Freescale 8xx"
Expand Down Expand Up @@ -138,6 +136,14 @@ config PPC_FPU
bool
default y if PPC64

config FSL_EMB_PERFMON
bool "Freescale Embedded Perfmon"
depends on E500 || PPC_83xx
help
This is the Performance Monitor support found on the e500 core
and some e300 cores (c3 and c4). Select this only if your
core supports the Embedded Performance Monitor APU

config 4xx
bool
depends on 40x || 44x
Expand All @@ -153,13 +159,6 @@ config FSL_BOOKE
depends on E200 || E500
default y

config FSL_EMB_PERFMON
bool "Freescale Embedded Perfmon"
depends on E500 || PPC_83xx
help
This is the Performance Monitor support found on the e500 core
and some e300 cores (c3 and c4). Select this only if your
core supports the Embedded Performance Monitor APU

config PTE_64BIT
bool
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ obj-$(CONFIG_PPC_MPC52xx) += 52xx/
obj-$(CONFIG_PPC_8xx) += 8xx/
obj-$(CONFIG_PPC_82xx) += 82xx/
obj-$(CONFIG_PPC_83xx) += 83xx/
obj-$(CONFIG_PPC_85xx) += 85xx/
obj-$(CONFIG_FSL_SOC_BOOKE) += 85xx/
obj-$(CONFIG_PPC_86xx) += 86xx/
obj-$(CONFIG_PPC_PSERIES) += pseries/
obj-$(CONFIG_PPC_ISERIES) += iseries/
Expand Down
4 changes: 2 additions & 2 deletions arch/powerpc/sysdev/fsl_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ static int __init fsl_pcie_check_link(struct pci_controller *hose)
return 0;
}

#if defined(CONFIG_PPC_85xx) || defined(CONFIG_PPC_86xx)
#if defined(CONFIG_FSL_SOC_BOOKE) || defined(CONFIG_PPC_86xx)
static int __init setup_one_atmu(struct ccsr_pci __iomem *pci,
unsigned int index, const struct resource *res,
resource_size_t offset)
Expand Down Expand Up @@ -394,7 +394,7 @@ DECLARE_PCI_FIXUP_HEADER(0x1957, PCI_DEVICE_ID_MPC8641D, quirk_fsl_pcie_header);
DECLARE_PCI_FIXUP_HEADER(0x1957, PCI_DEVICE_ID_MPC8610, quirk_fsl_pcie_header);
DECLARE_PCI_FIXUP_HEADER(0x1957, PCI_DEVICE_ID_P2020E, quirk_fsl_pcie_header);
DECLARE_PCI_FIXUP_HEADER(0x1957, PCI_DEVICE_ID_P2020, quirk_fsl_pcie_header);
#endif /* CONFIG_PPC_85xx || CONFIG_PPC_86xx */
#endif /* CONFIG_FSL_SOC_BOOKE || CONFIG_PPC_86xx */

#if defined(CONFIG_PPC_83xx) || defined(CONFIG_PPC_MPC512x)
DECLARE_PCI_FIXUP_HEADER(0x1957, PCI_DEVICE_ID_MPC8314E, quirk_fsl_pcie_header);
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/sysdev/fsl_soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ static int __init fsl_usb_of_init(void)

arch_initcall(fsl_usb_of_init);

#if defined(CONFIG_PPC_85xx) || defined(CONFIG_PPC_86xx)
#if defined(CONFIG_FSL_SOC_BOOKE) || defined(CONFIG_PPC_86xx)
static __be32 __iomem *rstcr;

static int __init setup_rstcr(void)
Expand Down

0 comments on commit 5753c08

Please sign in to comment.