diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2008-01-28 11:52:15 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2008-01-28 14:15:24 -0500 |
commit | b38308ac8e0404eea82fec09d560a2bc29a514f4 (patch) | |
tree | b65519d8f51ccce382de60016a463b0f8dda1c0b /arch/powerpc/platforms/83xx | |
parent | 3a83156bd857f31ed264816321b78466bed8e4f4 (diff) |
[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: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/83xx')
-rw-r--r-- | arch/powerpc/platforms/83xx/Kconfig | 43 | ||||
-rw-r--r-- | arch/powerpc/platforms/83xx/usb.c | 4 |
2 files changed, 22 insertions, 25 deletions
diff --git a/arch/powerpc/platforms/83xx/Kconfig b/arch/powerpc/platforms/83xx/Kconfig index ba28882a3914..13587e2e8680 100644 --- a/arch/powerpc/platforms/83xx/Kconfig +++ b/arch/powerpc/platforms/83xx/Kconfig | |||
@@ -1,11 +1,15 @@ | |||
1 | choice | 1 | menuconfig MPC83xx |
2 | prompt "83xx Board Type" | 2 | bool "83xx Board Type" |
3 | depends on PPC_83xx | 3 | depends on PPC_83xx |
4 | default MPC834x_MDS | 4 | select PPC_UDBG_16550 |
5 | select PPC_INDIRECT_PCI | ||
6 | |||
7 | if MPC83xx | ||
5 | 8 | ||
6 | config MPC831x_RDB | 9 | config MPC831x_RDB |
7 | bool "Freescale MPC831x RDB" | 10 | bool "Freescale MPC831x RDB" |
8 | select DEFAULT_UIMAGE | 11 | select DEFAULT_UIMAGE |
12 | select PPC_MPC831x | ||
9 | help | 13 | help |
10 | This option enables support for the MPC8313 RDB and MPC8315 RDB boards. | 14 | This option enables support for the MPC8313 RDB and MPC8315 RDB boards. |
11 | 15 | ||
@@ -13,6 +17,7 @@ config MPC832x_MDS | |||
13 | bool "Freescale MPC832x MDS" | 17 | bool "Freescale MPC832x MDS" |
14 | select DEFAULT_UIMAGE | 18 | select DEFAULT_UIMAGE |
15 | select QUICC_ENGINE | 19 | select QUICC_ENGINE |
20 | select PPC_MPC832x | ||
16 | help | 21 | help |
17 | This option enables support for the MPC832x MDS evaluation board. | 22 | This option enables support for the MPC832x MDS evaluation board. |
18 | 23 | ||
@@ -20,12 +25,14 @@ config MPC832x_RDB | |||
20 | bool "Freescale MPC832x RDB" | 25 | bool "Freescale MPC832x RDB" |
21 | select DEFAULT_UIMAGE | 26 | select DEFAULT_UIMAGE |
22 | select QUICC_ENGINE | 27 | select QUICC_ENGINE |
28 | select PPC_MPC832x | ||
23 | help | 29 | help |
24 | This option enables support for the MPC8323 RDB board. | 30 | This option enables support for the MPC8323 RDB board. |
25 | 31 | ||
26 | config MPC834x_MDS | 32 | config MPC834x_MDS |
27 | bool "Freescale MPC834x MDS" | 33 | bool "Freescale MPC834x MDS" |
28 | select DEFAULT_UIMAGE | 34 | select DEFAULT_UIMAGE |
35 | select PPC_MPC834x | ||
29 | help | 36 | help |
30 | This option enables support for the MPC 834x MDS evaluation board. | 37 | This option enables support for the MPC 834x MDS evaluation board. |
31 | 38 | ||
@@ -37,6 +44,7 @@ config MPC834x_MDS | |||
37 | config MPC834x_ITX | 44 | config MPC834x_ITX |
38 | bool "Freescale MPC834x ITX" | 45 | bool "Freescale MPC834x ITX" |
39 | select DEFAULT_UIMAGE | 46 | select DEFAULT_UIMAGE |
47 | select PPC_MPC834x | ||
40 | help | 48 | help |
41 | This option enables support for the MPC 834x ITX evaluation board. | 49 | This option enables support for the MPC 834x ITX evaluation board. |
42 | 50 | ||
@@ -53,49 +61,38 @@ config MPC836x_MDS | |||
53 | config MPC837x_MDS | 61 | config MPC837x_MDS |
54 | bool "Freescale MPC837x MDS" | 62 | bool "Freescale MPC837x MDS" |
55 | select DEFAULT_UIMAGE | 63 | select DEFAULT_UIMAGE |
64 | select PPC_MPC837x | ||
56 | help | 65 | help |
57 | This option enables support for the MPC837x MDS Processor Board. | 66 | This option enables support for the MPC837x MDS Processor Board. |
58 | 67 | ||
59 | config MPC837x_RDB | 68 | config MPC837x_RDB |
60 | bool "Freescale MPC837x RDB" | 69 | bool "Freescale MPC837x RDB" |
61 | select DEFAULT_UIMAGE | 70 | select DEFAULT_UIMAGE |
71 | select PPC_MPC837x | ||
62 | help | 72 | help |
63 | This option enables support for the MPC837x RDB Board. | 73 | This option enables support for the MPC837x RDB Board. |
64 | 74 | ||
65 | config SBC834x | 75 | config SBC834x |
66 | bool "Wind River SBC834x" | 76 | bool "Wind River SBC834x" |
67 | select DEFAULT_UIMAGE | 77 | select DEFAULT_UIMAGE |
78 | select PPC_MPC834x | ||
68 | help | 79 | help |
69 | This option enables support for the Wind River SBC834x board. | 80 | This option enables support for the Wind River SBC834x board. |
70 | 81 | ||
71 | endchoice | 82 | endif |
72 | 83 | ||
84 | # used for usb | ||
73 | config PPC_MPC831x | 85 | config PPC_MPC831x |
74 | bool | 86 | bool |
75 | select PPC_UDBG_16550 | ||
76 | select PPC_INDIRECT_PCI | ||
77 | default y if MPC831x_RDB | ||
78 | 87 | ||
88 | # used for math-emu | ||
79 | config PPC_MPC832x | 89 | config PPC_MPC832x |
80 | bool | 90 | bool |
81 | select PPC_UDBG_16550 | ||
82 | select PPC_INDIRECT_PCI | ||
83 | default y if MPC832x_MDS || MPC832x_RDB | ||
84 | 91 | ||
85 | config MPC834x | 92 | # used for usb |
93 | config PPC_MPC834x | ||
86 | bool | 94 | bool |
87 | select PPC_UDBG_16550 | ||
88 | select PPC_INDIRECT_PCI | ||
89 | default y if MPC834x_MDS || MPC834x_ITX || SBC834x | ||
90 | |||
91 | config PPC_MPC836x | ||
92 | bool | ||
93 | select PPC_UDBG_16550 | ||
94 | select PPC_INDIRECT_PCI | ||
95 | default y if MPC836x_MDS | ||
96 | 95 | ||
96 | # used for usb | ||
97 | config PPC_MPC837x | 97 | config PPC_MPC837x |
98 | bool | 98 | bool |
99 | select PPC_UDBG_16550 | ||
100 | select PPC_INDIRECT_PCI | ||
101 | default y if MPC837x_MDS || MPC837x_RDB | ||
diff --git a/arch/powerpc/platforms/83xx/usb.c b/arch/powerpc/platforms/83xx/usb.c index 6a454a4087c8..681230a30acd 100644 --- a/arch/powerpc/platforms/83xx/usb.c +++ b/arch/powerpc/platforms/83xx/usb.c | |||
@@ -22,7 +22,7 @@ | |||
22 | #include "mpc83xx.h" | 22 | #include "mpc83xx.h" |
23 | 23 | ||
24 | 24 | ||
25 | #ifdef CONFIG_MPC834x | 25 | #ifdef CONFIG_PPC_MPC834x |
26 | int mpc834x_usb_cfg(void) | 26 | int mpc834x_usb_cfg(void) |
27 | { | 27 | { |
28 | unsigned long sccr, sicrl, sicrh; | 28 | unsigned long sccr, sicrl, sicrh; |
@@ -96,7 +96,7 @@ int mpc834x_usb_cfg(void) | |||
96 | iounmap(immap); | 96 | iounmap(immap); |
97 | return 0; | 97 | return 0; |
98 | } | 98 | } |
99 | #endif /* CONFIG_MPC834x */ | 99 | #endif /* CONFIG_PPC_MPC834x */ |
100 | 100 | ||
101 | #ifdef CONFIG_PPC_MPC831x | 101 | #ifdef CONFIG_PPC_MPC831x |
102 | int mpc831x_usb_cfg(void) | 102 | int mpc831x_usb_cfg(void) |