From ac79fd58a25dbd9848f2c2857da6a79494dabb9a Mon Sep 17 00:00:00 2001 From: Paul Mundt Date: Wed, 25 Jul 2007 16:26:10 +0900 Subject: 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 --- arch/sh/Kconfig | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'arch/sh/Kconfig') diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index 2aad2ff39a2..0a631d0f75f 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig @@ -134,8 +134,8 @@ config SH_FPU_EMU config SH_DSP bool "DSP support" - default y if SH4AL_DSP || !CPU_SH4 - default n + depends on CPU_HAS_DSP + default y help Selecting this option will enable support for SH processors that have DSP units (ie, SH2-DSP, SH3-DSP, and SH4AL-DSP). @@ -199,6 +199,9 @@ config CPU_HAS_SR_RB config CPU_HAS_PTEA bool +config CPU_HAS_DSP + bool + endmenu menu "Board support" -- cgit v1.2.3-18-g5258