Commit b38308ac authored by Kumar Gala's avatar Kumar Gala

[POWERPC] 83xx: rework platform Kconfig

* Allow multiple boards to be selected in a single build
* Removed Kconfig option '83xx' which existed only for compat with arch/ppc
* Removed Kconfig option 'PPC_MPC836x' since its not used
* Renamed Kconfig option 'MPC834x' to 'PPC_MPC834x' to match others
* Added a multiplatform 83xx defconfig (mpc83xx_defconfig).
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 3a83156b
This diff is collapsed.
choice menuconfig MPC83xx
prompt "83xx Board Type" bool "83xx Board Type"
depends on PPC_83xx depends on PPC_83xx
default MPC834x_MDS select PPC_UDBG_16550
select PPC_INDIRECT_PCI
if MPC83xx
config MPC831x_RDB config MPC831x_RDB
bool "Freescale MPC831x RDB" bool "Freescale MPC831x RDB"
select DEFAULT_UIMAGE select DEFAULT_UIMAGE
select PPC_MPC831x
help help
This option enables support for the MPC8313 RDB and MPC8315 RDB boards. This option enables support for the MPC8313 RDB and MPC8315 RDB boards.
...@@ -13,6 +17,7 @@ config MPC832x_MDS ...@@ -13,6 +17,7 @@ config MPC832x_MDS
bool "Freescale MPC832x MDS" bool "Freescale MPC832x MDS"
select DEFAULT_UIMAGE select DEFAULT_UIMAGE
select QUICC_ENGINE select QUICC_ENGINE
select PPC_MPC832x
help help
This option enables support for the MPC832x MDS evaluation board. This option enables support for the MPC832x MDS evaluation board.
...@@ -20,12 +25,14 @@ config MPC832x_RDB ...@@ -20,12 +25,14 @@ config MPC832x_RDB
bool "Freescale MPC832x RDB" bool "Freescale MPC832x RDB"
select DEFAULT_UIMAGE select DEFAULT_UIMAGE
select QUICC_ENGINE select QUICC_ENGINE
select PPC_MPC832x
help help
This option enables support for the MPC8323 RDB board. This option enables support for the MPC8323 RDB board.
config MPC834x_MDS config MPC834x_MDS
bool "Freescale MPC834x MDS" bool "Freescale MPC834x MDS"
select DEFAULT_UIMAGE select DEFAULT_UIMAGE
select PPC_MPC834x
help help
This option enables support for the MPC 834x MDS evaluation board. This option enables support for the MPC 834x MDS evaluation board.
...@@ -37,6 +44,7 @@ config MPC834x_MDS ...@@ -37,6 +44,7 @@ config MPC834x_MDS
config MPC834x_ITX config MPC834x_ITX
bool "Freescale MPC834x ITX" bool "Freescale MPC834x ITX"
select DEFAULT_UIMAGE select DEFAULT_UIMAGE
select PPC_MPC834x
help help
This option enables support for the MPC 834x ITX evaluation board. This option enables support for the MPC 834x ITX evaluation board.
...@@ -53,49 +61,38 @@ config MPC836x_MDS ...@@ -53,49 +61,38 @@ config MPC836x_MDS
config MPC837x_MDS config MPC837x_MDS
bool "Freescale MPC837x MDS" bool "Freescale MPC837x MDS"
select DEFAULT_UIMAGE select DEFAULT_UIMAGE
select PPC_MPC837x
help help
This option enables support for the MPC837x MDS Processor Board. This option enables support for the MPC837x MDS Processor Board.
config MPC837x_RDB config MPC837x_RDB
bool "Freescale MPC837x RDB" bool "Freescale MPC837x RDB"
select DEFAULT_UIMAGE select DEFAULT_UIMAGE
select PPC_MPC837x
help help
This option enables support for the MPC837x RDB Board. This option enables support for the MPC837x RDB Board.
config SBC834x config SBC834x
bool "Wind River SBC834x" bool "Wind River SBC834x"
select DEFAULT_UIMAGE select DEFAULT_UIMAGE
select PPC_MPC834x
help help
This option enables support for the Wind River SBC834x board. This option enables support for the Wind River SBC834x board.
endchoice endif
# used for usb
config PPC_MPC831x config PPC_MPC831x
bool bool
select PPC_UDBG_16550
select PPC_INDIRECT_PCI
default y if MPC831x_RDB
# used for math-emu
config PPC_MPC832x config PPC_MPC832x
bool bool
select PPC_UDBG_16550
select PPC_INDIRECT_PCI
default y if MPC832x_MDS || MPC832x_RDB
config MPC834x # used for usb
config PPC_MPC834x
bool bool
select PPC_UDBG_16550
select PPC_INDIRECT_PCI
default y if MPC834x_MDS || MPC834x_ITX || SBC834x
config PPC_MPC836x
bool
select PPC_UDBG_16550
select PPC_INDIRECT_PCI
default y if MPC836x_MDS
# used for usb
config PPC_MPC837x config PPC_MPC837x
bool bool
select PPC_UDBG_16550
select PPC_INDIRECT_PCI
default y if MPC837x_MDS || MPC837x_RDB
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include "mpc83xx.h" #include "mpc83xx.h"
#ifdef CONFIG_MPC834x #ifdef CONFIG_PPC_MPC834x
int mpc834x_usb_cfg(void) int mpc834x_usb_cfg(void)
{ {
unsigned long sccr, sicrl, sicrh; unsigned long sccr, sicrl, sicrh;
...@@ -96,7 +96,7 @@ int mpc834x_usb_cfg(void) ...@@ -96,7 +96,7 @@ int mpc834x_usb_cfg(void)
iounmap(immap); iounmap(immap);
return 0; return 0;
} }
#endif /* CONFIG_MPC834x */ #endif /* CONFIG_PPC_MPC834x */
#ifdef CONFIG_PPC_MPC831x #ifdef CONFIG_PPC_MPC831x
int mpc831x_usb_cfg(void) int mpc831x_usb_cfg(void)
......
...@@ -21,7 +21,7 @@ config PPC_83xx ...@@ -21,7 +21,7 @@ config PPC_83xx
bool "Freescale 83xx" bool "Freescale 83xx"
depends on 6xx depends on 6xx
select FSL_SOC select FSL_SOC
select 83xx select MPC83xx
select IPIC select IPIC
select WANT_DEVICE_TREE select WANT_DEVICE_TREE
......
...@@ -93,10 +93,6 @@ config 6xx ...@@ -93,10 +93,6 @@ config 6xx
config 8xx config 8xx
bool bool
# this is temp to handle compat with arch=ppc
config 83xx
bool
config E500 config E500
bool bool
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment