Commit f3d22298 authored by Paul Mundt's avatar Paul Mundt Committed by Paul Mundt

sh: Rework CPU/board dependencies.

This was a big mess, rework the logic a bit so that we constrain
to a particular subtype and figure out the board support based
on that. This makes building subtype specific kernels supporting
multiple boards possible again.
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 882c12c4
This diff is collapsed.
...@@ -6,18 +6,18 @@ choice ...@@ -6,18 +6,18 @@ choice
config SH_R7780RP config SH_R7780RP
bool "R7780RP-1 board support" bool "R7780RP-1 board support"
select CPU_SUBTYPE_SH7780 depends on CPU_SUBTYPE_SH7780
config SH_R7780MP config SH_R7780MP
bool "R7780MP board support" bool "R7780MP board support"
select CPU_SUBTYPE_SH7780 depends on CPU_SUBTYPE_SH7780
help help
Selecting this option will enable support for the mass-production Selecting this option will enable support for the mass-production
version of the R7780RP. If in doubt, say Y. version of the R7780RP. If in doubt, say Y.
config SH_R7785RP config SH_R7785RP
bool "R7785RP board support" bool "R7785RP board support"
select CPU_SUBTYPE_SH7785 depends on CPU_SUBTYPE_SH7785
endchoice endchoice
......
menu "Processor selection"
# #
# Processor families # Processor families
# #
...@@ -38,11 +36,14 @@ config CPU_SUBTYPE_ST40 ...@@ -38,11 +36,14 @@ config CPU_SUBTYPE_ST40
config CPU_SHX2 config CPU_SHX2
bool bool
choice
prompt "Processor sub-type selection"
# #
# Processor subtypes # Processor subtypes
# #
comment "SH-2 Processor Support" # SH-2 Processor Support
config CPU_SUBTYPE_SH7604 config CPU_SUBTYPE_SH7604
bool "Support SH7604 processor" bool "Support SH7604 processor"
...@@ -52,13 +53,13 @@ config CPU_SUBTYPE_SH7619 ...@@ -52,13 +53,13 @@ config CPU_SUBTYPE_SH7619
bool "Support SH7619 processor" bool "Support SH7619 processor"
select CPU_SH2 select CPU_SH2
comment "SH-2A Processor Support" # SH-2A Processor Support
config CPU_SUBTYPE_SH7206 config CPU_SUBTYPE_SH7206
bool "Support SH7206 processor" bool "Support SH7206 processor"
select CPU_SH2A select CPU_SH2A
comment "SH-3 Processor Support" # SH-3 Processor Support
config CPU_SUBTYPE_SH7300 config CPU_SUBTYPE_SH7300
bool "Support SH7300 processor" bool "Support SH7300 processor"
...@@ -113,7 +114,7 @@ config CPU_SUBTYPE_SH7712 ...@@ -113,7 +114,7 @@ config CPU_SUBTYPE_SH7712
help help
Select SH7712 if you have a SH3-DSP SH7712 CPU. Select SH7712 if you have a SH3-DSP SH7712 CPU.
comment "SH-4 Processor Support" # SH-4 Processor Support
config CPU_SUBTYPE_SH7750 config CPU_SUBTYPE_SH7750
bool "Support SH7750 processor" bool "Support SH7750 processor"
...@@ -166,7 +167,7 @@ config CPU_SUBTYPE_SH4_202 ...@@ -166,7 +167,7 @@ config CPU_SUBTYPE_SH4_202
bool "Support SH4-202 processor" bool "Support SH4-202 processor"
select CPU_SH4 select CPU_SH4
comment "ST40 Processor Support" # ST40 Processor Support
config CPU_SUBTYPE_ST40STB1 config CPU_SUBTYPE_ST40STB1
bool "Support ST40STB1/ST40RA processors" bool "Support ST40STB1/ST40RA processors"
...@@ -181,7 +182,7 @@ config CPU_SUBTYPE_ST40GX1 ...@@ -181,7 +182,7 @@ config CPU_SUBTYPE_ST40GX1
help help
Select ST40GX1 if you have a ST40GX1 CPU. Select ST40GX1 if you have a ST40GX1 CPU.
comment "SH-4A Processor Support" # SH-4A Processor Support
config CPU_SUBTYPE_SH7770 config CPU_SUBTYPE_SH7770
bool "Support SH7770 processor" bool "Support SH7770 processor"
...@@ -198,7 +199,7 @@ config CPU_SUBTYPE_SH7785 ...@@ -198,7 +199,7 @@ config CPU_SUBTYPE_SH7785
select CPU_SHX2 select CPU_SHX2
select CPU_HAS_INTC2_IRQ select CPU_HAS_INTC2_IRQ
comment "SH4AL-DSP Processor Support" # SH4AL-DSP Processor Support
config CPU_SUBTYPE_SH73180 config CPU_SUBTYPE_SH73180
bool "Support SH73180 processor" bool "Support SH73180 processor"
...@@ -214,7 +215,7 @@ config CPU_SUBTYPE_SH7722 ...@@ -214,7 +215,7 @@ config CPU_SUBTYPE_SH7722
select CPU_SHX2 select CPU_SHX2
select CPU_HAS_IPR_IRQ select CPU_HAS_IPR_IRQ
endmenu endchoice
menu "Memory management options" menu "Memory management options"
......
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