summaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-11-06 15:55:22 +0900
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>2014-11-13 08:48:48 +0900
commit887363b5f0441b8ec22b586ac77df4bf5a1b09f1 (patch)
tree36123371883d40db7e66e4a661ab0dbcefdfbddf /arch/sh
parent7d2366627e1f4d1dbf80e65d5bf72b832ca128c9 (diff)
downloadtalos-obmc-uboot-887363b5f0441b8ec22b586ac77df4bf5a1b09f1.tar.gz
talos-obmc-uboot-887363b5f0441b8ec22b586ac77df4bf5a1b09f1.zip
sh: consolidate CONFIG_SYS_CPU defines
Now each board selects one of CONFIG_CPU_SH2, CONFIG_CPU_SH3, CONFIG_CPU_SH4, so let's move CONFIG_SYS_CPU definition to arch/sh/Kconfig. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Cc: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/Kconfig11
1 files changed, 8 insertions, 3 deletions
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig
index 49b00da8fb..a77e6f9c07 100644
--- a/arch/sh/Kconfig
+++ b/arch/sh/Kconfig
@@ -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"
OpenPOWER on IntegriCloud