]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/sh/Kconfig
sh: consolidate CONFIG_SYS_CPU defines
[karo-tx-uboot.git] / arch / sh / Kconfig
index 49b00da8fb0a397d635621143daded08f0e06fcc..a77e6f9c07d10538f3f442df8fd1215f270a665e 100644 (file)
@@ -1,9 +1,6 @@
 menu "SuperH architecture"
        depends on SH
 
-config SYS_ARCH
-       default "sh"
-
 config CPU_SH2
        bool
 
@@ -110,6 +107,14 @@ config TARGET_SH7785LCR
 
 endchoice
 
+config SYS_ARCH
+       default "sh"
+
+config SYS_CPU
+       default "sh2" if CPU_SH2
+       default "sh3" if CPU_SH3
+       default "sh4" if CPU_SH4
+
 source "board/alphaproject/ap_sh4a_4a/Kconfig"
 source "board/espt/Kconfig"
 source "board/mpr2/Kconfig"