Currently we get a number of warnings about using "select" statements on "choice" options and that this as no effect. Rework some of these so that we use "depends on" rather than select for the CPU, and have the CPU select the MMU version. The MMU version is no longer prompted for.
Signed-off-by: Tom Rini <tr...@konsulko.com> --- Cc: Alexey Brodkin <alexey.brod...@synopsys.com> Cc: Eugeniy Paltsev <eugeniy.palt...@synopsys.com> Cc: uboot-snps-...@synopsys.com --- arch/arc/Kconfig | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig index 6ae66bb163c0..be9774dc2896 100644 --- a/arch/arc/Kconfig +++ b/arch/arc/Kconfig @@ -66,28 +66,20 @@ config CPU_ARCHS38 endchoice -choice - prompt "MMU Version" - default ARC_MMU_V3 if CPU_ARC770D - default ARC_MMU_V2 if CPU_ARC750D - default ARC_MMU_ABSENT if CPU_ARCEM6 - default ARC_MMU_ABSENT if CPU_ARCHS36 - default ARC_MMU_V4 if CPU_ARCHS38 - config ARC_MMU_ABSENT - bool "No MMU" + bool help No MMU config ARC_MMU_V2 - bool "MMU v2" + bool depends on CPU_ARC750D help Fixed the deficiency of v1 - possible thrashing in memcpy sceanrio when 2 D-TLB and 1 I-TLB entries index into same 2way set. config ARC_MMU_V3 - bool "MMU v3" + bool depends on CPU_ARC770D help Introduced with ARC700 4.10: New Features @@ -95,13 +87,11 @@ config ARC_MMU_V3 Shared Address Spaces (SASID) config ARC_MMU_V4 - bool "MMU v4" + bool depends on CPU_ARCHS38 help Introduced as a part of ARC HS38 release. -endchoice - config ARC_MMU_VER int default 0 if ARC_MMU_ABSENT @@ -172,14 +162,14 @@ config TARGET_AXS103 config TARGET_EMSDP bool "Synopsys EM Software Development Platform" - select CPU_ARCEM6 + depends on CPU_ARCEM6 config TARGET_HSDK bool "Support Synopsys HSDK or HSDK-4xD board" config TARGET_IOT_DEVKIT bool "Synopsys Brite IoT Development kit" - select CPU_ARCEM6 + depends on CPU_ARCEM6 endchoice -- 2.43.0