arm: samsung: Move CONFIG_MISC_COMMON to Kconfig

This option controls using board/samsung/common/misc.c, so add a Kconfig
file there as well and select it from the boards which use this
functionality.

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Minkyu Kang <mk7.kang@samsung.com>
This commit is contained in:
Tom Rini 2022-11-19 18:45:26 -05:00
parent 00faea644a
commit 4982e123b2
10 changed files with 9 additions and 18 deletions

View File

@ -2342,6 +2342,7 @@ source "board/hisilicon/poplar/Kconfig"
source "board/isee/igep003x/Kconfig" source "board/isee/igep003x/Kconfig"
source "board/kontron/sl28/Kconfig" source "board/kontron/sl28/Kconfig"
source "board/myir/mys_6ulx/Kconfig" source "board/myir/mys_6ulx/Kconfig"
source "board/samsung/common/Kconfig"
source "board/siemens/common/Kconfig" source "board/siemens/common/Kconfig"
source "board/seeed/npi_imx6ull/Kconfig" source "board/seeed/npi_imx6ull/Kconfig"
source "board/socionext/developerbox/Kconfig" source "board/socionext/developerbox/Kconfig"

View File

@ -67,10 +67,12 @@ config TARGET_SMDKV310
select SUPPORT_SPL select SUPPORT_SPL
config TARGET_TRATS config TARGET_TRATS
select MISC_COMMON
bool "Exynos4210 Trats board" bool "Exynos4210 Trats board"
config TARGET_S5PC210_UNIVERSAL config TARGET_S5PC210_UNIVERSAL
bool "EXYNOS4210 Universal C210 board" bool "EXYNOS4210 Universal C210 board"
select MISC_COMMON
config TARGET_ORIGEN config TARGET_ORIGEN
bool "Exynos4412 Origen board" bool "Exynos4412 Origen board"
@ -79,9 +81,11 @@ config TARGET_ORIGEN
config TARGET_TRATS2 config TARGET_TRATS2
bool "Exynos4412 Trat2 board" bool "Exynos4412 Trat2 board"
select MISC_COMMON
config TARGET_ODROID config TARGET_ODROID
bool "Exynos4412 Odroid board" bool "Exynos4412 Odroid board"
select MISC_COMMON
endchoice endchoice
endif endif
@ -113,6 +117,7 @@ config TARGET_ODROID_XU3
bool "Exynos5422 Odroid board" bool "Exynos5422 Odroid board"
select EXYNOS5_DT select EXYNOS5_DT
select EXYNOS5420 select EXYNOS5420
select MISC_COMMON
select OF_CONTROL select OF_CONTROL
config TARGET_ARNDALE config TARGET_ARNDALE

View File

@ -9,6 +9,7 @@ config TARGET_S5P_GONI
select OF_CONTROL select OF_CONTROL
select BLK select BLK
select DM_MMC select DM_MMC
select MISC_COMMON
config TARGET_SMDKC100 config TARGET_SMDKC100
bool "Support smdkc100 board" bool "Support smdkc100 board"

View File

@ -0,0 +1,2 @@
config MISC_COMMON
bool

View File

@ -143,10 +143,4 @@
"kernel_addr_r=0x41000000\0" \ "kernel_addr_r=0x41000000\0" \
BOOTENV BOOTENV
/*
* Supported Odroid boards: X3, U3
* TODO: Add Odroid X support
*/
#define CONFIG_MISC_COMMON
#endif /* __CONFIG_H */ #endif /* __CONFIG_H */

View File

@ -57,7 +57,6 @@
"params.bin raw 0x1880 0x20\0" "params.bin raw 0x1880 0x20\0"
/* Enable: board/samsung/common/misc.c to use set_dfu_alt_info() */ /* Enable: board/samsung/common/misc.c to use set_dfu_alt_info() */
#define CONFIG_MISC_COMMON
#define CONFIG_SET_DFU_ALT_BUF_LEN (SZ_1K) #define CONFIG_SET_DFU_ALT_BUF_LEN (SZ_1K)
/* Set soc_rev, soc_id, board_rev, board_name, fdtfile */ /* Set soc_rev, soc_id, board_rev, board_name, fdtfile */

View File

@ -61,8 +61,6 @@
#define COMMON_BOOT "${console} ${meminfo} ${mtdparts}" #define COMMON_BOOT "${console} ${meminfo} ${mtdparts}"
#define CONFIG_MISC_COMMON
#define CONFIG_EXTRA_ENV_SETTINGS \ #define CONFIG_EXTRA_ENV_SETTINGS \
"updateb=" \ "updateb=" \
"onenand erase 0x0 0x100000;" \ "onenand erase 0x0 0x100000;" \

View File

@ -95,9 +95,6 @@ void universal_spi_sda(int bit);
int universal_spi_read(void); int universal_spi_read(void);
#endif #endif
/* Common misc for Samsung */
#define CONFIG_MISC_COMMON
/* Download menu - definitions for check keys */ /* Download menu - definitions for check keys */
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__

View File

@ -125,9 +125,6 @@
/* GPT */ /* GPT */
/* Common misc for Samsung */
#define CONFIG_MISC_COMMON
/* Download menu - definitions for check keys */ /* Download menu - definitions for check keys */
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__

View File

@ -115,9 +115,6 @@
/* GPT */ /* GPT */
/* Common misc for Samsung */
#define CONFIG_MISC_COMMON
/* Download menu - definitions for check keys */ /* Download menu - definitions for check keys */
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__