Skip to content

Commit 6c5431a

Browse files
masahir0ytrini
authored andcommitted
omap5: kconfig: move board select menu and common settings
Becuase the board select menu in arch/arm/Kconfig is too big, move the OMAP5 board select menu to omap5/Kconfig. Move also common settings (CONFIG_SYS_CPU="armv7" and CONFIG_SYS_SOC="omap5"). Signed-off-by: Masahiro Yamada <[email protected]> Reviewed-by: Tom Rini <[email protected]> Cc: Lokesh Vutla <[email protected]>
1 parent d08215a commit 6c5431a

File tree

11 files changed

+38
-36
lines changed

11 files changed

+38
-36
lines changed

arch/arm/Kconfig

+4-11
Original file line numberDiff line numberDiff line change
@@ -418,14 +418,8 @@ config OMAP34XX
418418
config OMAP44XX
419419
bool "OMAP44XX SoC"
420420

421-
config TARGET_CM_T54
422-
bool "Support cm_t54"
423-
424-
config TARGET_DRA7XX_EVM
425-
bool "Support dra7xx_evm"
426-
427-
config TARGET_OMAP5_UEVM
428-
bool "Support omap5_uevm"
421+
config OMAP54XX
422+
bool "OMAP54XX SoC"
429423

430424
config RMOBILE
431425
bool "Renesas ARM SoCs"
@@ -527,6 +521,8 @@ source "arch/arm/cpu/armv7/omap3/Kconfig"
527521

528522
source "arch/arm/cpu/armv7/omap4/Kconfig"
529523

524+
source "arch/arm/cpu/armv7/omap5/Kconfig"
525+
530526
source "arch/arm/cpu/armv7/rmobile/Kconfig"
531527

532528
source "arch/arm/cpu/armv7/tegra-common/Kconfig"
@@ -576,7 +572,6 @@ source "board/cirrus/edb93xx/Kconfig"
576572
source "board/cm4008/Kconfig"
577573
source "board/cm41xx/Kconfig"
578574
source "board/compulab/cm_t335/Kconfig"
579-
source "board/compulab/cm_t54/Kconfig"
580575
source "board/congatec/cgtqmx6eval/Kconfig"
581576
source "board/creative/xfi3/Kconfig"
582577
source "board/davedenx/qong/Kconfig"
@@ -661,9 +656,7 @@ source "board/syteco/zmx25/Kconfig"
661656
source "board/taskit/stamp9g20/Kconfig"
662657
source "board/ti/am335x/Kconfig"
663658
source "board/ti/am43xx/Kconfig"
664-
source "board/ti/dra7xx/Kconfig"
665659
source "board/ti/ks2_evm/Kconfig"
666-
source "board/ti/omap5_uevm/Kconfig"
667660
source "board/ti/ti814x/Kconfig"
668661
source "board/ti/ti816x/Kconfig"
669662
source "board/ti/tnetv107xevm/Kconfig"

arch/arm/cpu/armv7/omap5/Kconfig

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
if OMAP54XX
2+
3+
choice
4+
prompt "OMAP5 board select"
5+
6+
config TARGET_CM_T54
7+
bool "CompuLab CM-T54"
8+
9+
config TARGET_OMAP5_UEVM
10+
bool "TI OMAP5 uEVM board"
11+
12+
config TARGET_DRA7XX_EVM
13+
bool "TI DRA7XX"
14+
15+
endchoice
16+
17+
config SYS_CPU
18+
string
19+
default "armv7"
20+
21+
config SYS_SOC
22+
string
23+
default "omap5"
24+
25+
source "board/compulab/cm_t54/Kconfig"
26+
source "board/ti/omap5_uevm/Kconfig"
27+
source "board/ti/dra7xx/Kconfig"
28+
29+
endif

board/compulab/cm_t54/Kconfig

-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
if TARGET_CM_T54
22

3-
config SYS_CPU
4-
string
5-
default "armv7"
6-
73
config SYS_BOARD
84
string
95
default "cm_t54"
@@ -12,10 +8,6 @@ config SYS_VENDOR
128
string
139
default "compulab"
1410

15-
config SYS_SOC
16-
string
17-
default "omap5"
18-
1911
config SYS_CONFIG_NAME
2012
string
2113
default "cm_t54"

board/ti/dra7xx/Kconfig

-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
if TARGET_DRA7XX_EVM
22

3-
config SYS_CPU
4-
string
5-
default "armv7"
6-
73
config SYS_BOARD
84
string
95
default "dra7xx"
@@ -12,10 +8,6 @@ config SYS_VENDOR
128
string
139
default "ti"
1410

15-
config SYS_SOC
16-
string
17-
default "omap5"
18-
1911
config SYS_CONFIG_NAME
2012
string
2113
default "dra7xx_evm"

board/ti/omap5_uevm/Kconfig

-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
if TARGET_OMAP5_UEVM
22

3-
config SYS_CPU
4-
string
5-
default "armv7"
6-
73
config SYS_BOARD
84
string
95
default "omap5_uevm"
@@ -12,10 +8,6 @@ config SYS_VENDOR
128
string
139
default "ti"
1410

15-
config SYS_SOC
16-
string
17-
default "omap5"
18-
1911
config SYS_CONFIG_NAME
2012
string
2113
default "omap5_uevm"

configs/cm_t54_defconfig

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
CONFIG_SPL=y
22
+S:CONFIG_ARM=y
3+
+S:CONFIG_OMAP54XX=y
34
+S:CONFIG_TARGET_CM_T54=y

configs/dra7xx_evm_defconfig

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
CONFIG_SPL=y
22
CONFIG_SYS_EXTRA_OPTIONS="CONS_INDEX=1"
33
+S:CONFIG_ARM=y
4+
+S:CONFIG_OMAP54XX=y
45
+S:CONFIG_TARGET_DRA7XX_EVM=y

configs/dra7xx_evm_qspiboot_defconfig

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
CONFIG_SPL=y
22
CONFIG_SYS_EXTRA_OPTIONS="CONS_INDEX=1,QSPI_BOOT"
33
+S:CONFIG_ARM=y
4+
+S:CONFIG_OMAP54XX=y
45
+S:CONFIG_TARGET_DRA7XX_EVM=y

configs/dra7xx_evm_uart3_defconfig

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
CONFIG_SPL=y
22
CONFIG_SYS_EXTRA_OPTIONS="CONS_INDEX=3,SPL_YMODEM_SUPPORT"
33
+S:CONFIG_ARM=y
4+
+S:CONFIG_OMAP54XX=y
45
+S:CONFIG_TARGET_DRA7XX_EVM=y

configs/omap5_uevm_defconfig

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
CONFIG_SPL=y
22
+S:CONFIG_ARM=y
3+
+S:CONFIG_OMAP54XX=y
34
+S:CONFIG_TARGET_OMAP5_UEVM=y

include/configs/ti_omap5_common.h

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#ifndef __CONFIG_TI_OMAP5_COMMON_H
1818
#define __CONFIG_TI_OMAP5_COMMON_H
1919

20-
#define CONFIG_OMAP54XX
2120
#define CONFIG_DISPLAY_CPUINFO
2221
#define CONFIG_DISPLAY_BOARDINFO
2322
#define CONFIG_MISC_INIT_R

0 commit comments

Comments
 (0)