summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2022-11-19 18:45:26 -0500
committerTom Rini <[email protected]>2022-12-05 16:07:13 -0500
commit4982e123b293b1fd44164b6760ee3647720d72ba (patch)
tree459f7c801351b729688f832e014a82fd8b7d8620
parent00faea644a0afb8eccb332af446c4ca9d0abe095 (diff)
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 <[email protected]> Reviewed-by: Simon Glass <[email protected]> Reviewed-by: Minkyu Kang <[email protected]>
-rw-r--r--arch/arm/Kconfig1
-rw-r--r--arch/arm/mach-exynos/Kconfig5
-rw-r--r--arch/arm/mach-s5pc1xx/Kconfig1
-rw-r--r--board/samsung/common/Kconfig2
-rw-r--r--include/configs/odroid.h6
-rw-r--r--include/configs/odroid_xu3.h1
-rw-r--r--include/configs/s5p_goni.h2
-rw-r--r--include/configs/s5pc210_universal.h3
-rw-r--r--include/configs/trats.h3
-rw-r--r--include/configs/trats2.h3
10 files changed, 9 insertions, 18 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index eb5e3b69d84..fb696abac80 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -2342,6 +2342,7 @@ source "board/hisilicon/poplar/Kconfig"
source "board/isee/igep003x/Kconfig"
source "board/kontron/sl28/Kconfig"
source "board/myir/mys_6ulx/Kconfig"
+source "board/samsung/common/Kconfig"
source "board/siemens/common/Kconfig"
source "board/seeed/npi_imx6ull/Kconfig"
source "board/socionext/developerbox/Kconfig"
diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig
index 84102908561..29e35e443c6 100644
--- a/arch/arm/mach-exynos/Kconfig
+++ b/arch/arm/mach-exynos/Kconfig
@@ -67,10 +67,12 @@ config TARGET_SMDKV310
select SUPPORT_SPL
config TARGET_TRATS
+ select MISC_COMMON
bool "Exynos4210 Trats board"
config TARGET_S5PC210_UNIVERSAL
bool "EXYNOS4210 Universal C210 board"
+ select MISC_COMMON
config TARGET_ORIGEN
bool "Exynos4412 Origen board"
@@ -79,9 +81,11 @@ config TARGET_ORIGEN
config TARGET_TRATS2
bool "Exynos4412 Trat2 board"
+ select MISC_COMMON
config TARGET_ODROID
bool "Exynos4412 Odroid board"
+ select MISC_COMMON
endchoice
endif
@@ -113,6 +117,7 @@ config TARGET_ODROID_XU3
bool "Exynos5422 Odroid board"
select EXYNOS5_DT
select EXYNOS5420
+ select MISC_COMMON
select OF_CONTROL
config TARGET_ARNDALE
diff --git a/arch/arm/mach-s5pc1xx/Kconfig b/arch/arm/mach-s5pc1xx/Kconfig
index 8cffced5512..b6a4b0b653f 100644
--- a/arch/arm/mach-s5pc1xx/Kconfig
+++ b/arch/arm/mach-s5pc1xx/Kconfig
@@ -9,6 +9,7 @@ config TARGET_S5P_GONI
select OF_CONTROL
select BLK
select DM_MMC
+ select MISC_COMMON
config TARGET_SMDKC100
bool "Support smdkc100 board"
diff --git a/board/samsung/common/Kconfig b/board/samsung/common/Kconfig
new file mode 100644
index 00000000000..849aeff6134
--- /dev/null
+++ b/board/samsung/common/Kconfig
@@ -0,0 +1,2 @@
+config MISC_COMMON
+ bool
diff --git a/include/configs/odroid.h b/include/configs/odroid.h
index 8b00a279215..f252b349437 100644
--- a/include/configs/odroid.h
+++ b/include/configs/odroid.h
@@ -143,10 +143,4 @@
"kernel_addr_r=0x41000000\0" \
BOOTENV
-/*
- * Supported Odroid boards: X3, U3
- * TODO: Add Odroid X support
- */
-#define CONFIG_MISC_COMMON
-
#endif /* __CONFIG_H */
diff --git a/include/configs/odroid_xu3.h b/include/configs/odroid_xu3.h
index d2d7fca5445..5bbe7aadcb2 100644
--- a/include/configs/odroid_xu3.h
+++ b/include/configs/odroid_xu3.h
@@ -57,7 +57,6 @@
"params.bin raw 0x1880 0x20\0"
/* 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)
/* Set soc_rev, soc_id, board_rev, board_name, fdtfile */
diff --git a/include/configs/s5p_goni.h b/include/configs/s5p_goni.h
index 3d49d52b381..fdade1ee66f 100644
--- a/include/configs/s5p_goni.h
+++ b/include/configs/s5p_goni.h
@@ -61,8 +61,6 @@
#define COMMON_BOOT "${console} ${meminfo} ${mtdparts}"
-#define CONFIG_MISC_COMMON
-
#define CONFIG_EXTRA_ENV_SETTINGS \
"updateb=" \
"onenand erase 0x0 0x100000;" \
diff --git a/include/configs/s5pc210_universal.h b/include/configs/s5pc210_universal.h
index 06be9c0f652..80d3fc9258c 100644
--- a/include/configs/s5pc210_universal.h
+++ b/include/configs/s5pc210_universal.h
@@ -95,9 +95,6 @@ void universal_spi_sda(int bit);
int universal_spi_read(void);
#endif
-/* Common misc for Samsung */
-#define CONFIG_MISC_COMMON
-
/* Download menu - definitions for check keys */
#ifndef __ASSEMBLY__
diff --git a/include/configs/trats.h b/include/configs/trats.h
index 5bd0ca2a964..ec18842bbe8 100644
--- a/include/configs/trats.h
+++ b/include/configs/trats.h
@@ -125,9 +125,6 @@
/* GPT */
-/* Common misc for Samsung */
-#define CONFIG_MISC_COMMON
-
/* Download menu - definitions for check keys */
#ifndef __ASSEMBLY__
diff --git a/include/configs/trats2.h b/include/configs/trats2.h
index cef563696bd..0aa331e3935 100644
--- a/include/configs/trats2.h
+++ b/include/configs/trats2.h
@@ -115,9 +115,6 @@
/* GPT */
-/* Common misc for Samsung */
-#define CONFIG_MISC_COMMON
-
/* Download menu - definitions for check keys */
#ifndef __ASSEMBLY__