diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-07-25 03:26:10 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-07-26 02:35:24 -0400 |
commit | ac79fd58a25dbd9848f2c2857da6a79494dabb9a (patch) | |
tree | 833dd6ad0d462f88183d1da9994e26097a2323d5 /arch/sh/Kconfig | |
parent | b067c50a7f58838d8a53670ea3c07e18d7391900 (diff) |
sh: Restrict DSP support to specific CPUs.
Not all CPUs support the DSP, and this leads to problems when mixing
and matching CPU types and DSP opcodes. Fix this up by only allowing
CONFIG_SH_DSP to be enabled for the CPUs that explicitly have such a
block.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/Kconfig')
-rw-r--r-- | arch/sh/Kconfig | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index 2aad2ff39a2f..0a631d0f75f1 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig | |||
@@ -134,8 +134,8 @@ config SH_FPU_EMU | |||
134 | 134 | ||
135 | config SH_DSP | 135 | config SH_DSP |
136 | bool "DSP support" | 136 | bool "DSP support" |
137 | default y if SH4AL_DSP || !CPU_SH4 | 137 | depends on CPU_HAS_DSP |
138 | default n | 138 | default y |
139 | help | 139 | help |
140 | Selecting this option will enable support for SH processors that | 140 | Selecting this option will enable support for SH processors that |
141 | have DSP units (ie, SH2-DSP, SH3-DSP, and SH4AL-DSP). | 141 | have DSP units (ie, SH2-DSP, SH3-DSP, and SH4AL-DSP). |
@@ -199,6 +199,9 @@ config CPU_HAS_SR_RB | |||
199 | config CPU_HAS_PTEA | 199 | config CPU_HAS_PTEA |
200 | bool | 200 | bool |
201 | 201 | ||
202 | config CPU_HAS_DSP | ||
203 | bool | ||
204 | |||
202 | endmenu | 205 | endmenu |
203 | 206 | ||
204 | menu "Board support" | 207 | menu "Board support" |