Skip to content

Commit 16e16fd

Browse files
masahir0ytrini
authored andcommitted
nomadik: kconfig: move board select menu and common settings
Becuase the board select menu in arch/arm/Kconfig is too big, move the Nomadik board select menu to nomadik/Kconfig. Move also common settings (CONFIG_SYS_CPU="arm926ejs" and CONFIG_SYS_SOC="nomadik"). Signed-off-by: Masahiro Yamada <[email protected]>
1 parent ef2b694 commit 16e16fd

File tree

6 files changed

+30
-16
lines changed

6 files changed

+30
-16
lines changed

arch/arm/Kconfig

+4-3
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ config TARGET_SANSA_FUZE_PLUS
190190
config TARGET_SC_SPS_1
191191
bool "Support sc_sps_1"
192192

193-
config TARGET_NHK8815
194-
bool "Support nhk8815"
193+
config ARCH_NOMADIK
194+
bool "ST-Ericsson Nomadik"
195195

196196
config ORION5X
197197
bool "Marvell Orion"
@@ -518,6 +518,8 @@ source "arch/arm/cpu/armv7/keystone/Kconfig"
518518

519519
source "arch/arm/cpu/arm926ejs/kirkwood/Kconfig"
520520

521+
source "arch/arm/cpu/arm926ejs/nomadik/Kconfig"
522+
521523
source "arch/arm/cpu/armv7/omap3/Kconfig"
522524

523525
source "arch/arm/cpu/armv7/omap4/Kconfig"
@@ -650,7 +652,6 @@ source "board/spear/spear600/Kconfig"
650652
source "board/spear/x600/Kconfig"
651653
source "board/st-ericsson/snowball/Kconfig"
652654
source "board/st-ericsson/u8500/Kconfig"
653-
source "board/st/nhk8815/Kconfig"
654655
source "board/sunxi/Kconfig"
655656
source "board/syteco/jadecpu/Kconfig"
656657
source "board/syteco/zmx25/Kconfig"
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
if ARCH_NOMADIK
2+
3+
choice
4+
prompt "Nomadik board select"
5+
6+
config NOMADIK_NHK8815
7+
bool "ST 8815 Nomadik Hardware Kit"
8+
9+
endchoice
10+
11+
config SYS_CPU
12+
string
13+
default "arm926ejs"
14+
15+
config SYS_SOC
16+
string
17+
default "nomadik"
18+
19+
source "board/st/nhk8815/Kconfig"
20+
21+
endif

board/st/nhk8815/Kconfig

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
if TARGET_NHK8815
2-
3-
config SYS_CPU
4-
string
5-
default "arm926ejs"
1+
if NOMADIK_NHK8815
62

73
config SYS_BOARD
84
string
@@ -12,10 +8,6 @@ config SYS_VENDOR
128
string
139
default "st"
1410

15-
config SYS_SOC
16-
string
17-
default "nomadik"
18-
1911
config SYS_CONFIG_NAME
2012
string
2113
default "nhk8815"

configs/nhk8815_defconfig

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
CONFIG_ARM=y
2-
CONFIG_TARGET_NHK8815=y
2+
CONFIG_ARCH_NOMADIK=y
3+
CONFIG_NOMADIK_NHK8815=y

configs/nhk8815_onenand_defconfig

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
CONFIG_SYS_EXTRA_OPTIONS="BOOT_ONENAND"
22
CONFIG_ARM=y
3-
CONFIG_TARGET_NHK8815=y
3+
CONFIG_ARCH_NOMADIK=y
4+
CONFIG_NOMADIK_NHK8815=y

include/configs/nhk8815.h

-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
#include <nomadik.h>
1414

1515
#define CONFIG_ARM926EJS
16-
#define CONFIG_NOMADIK
1716
#define CONFIG_NOMADIK_8815 /* cpu variant */
18-
#define CONFIG_NOMADIK_NHK8815 /* board variant */
1917

2018
#define CONFIG_SKIP_LOWLEVEL_INIT /* we have already been loaded to RAM */
2119

0 commit comments

Comments
 (0)