]> git.baikalelectronics.ru Git - uboot.git/commitdiff
arm: samsung: Move CONFIG_MISC_COMMON to Kconfig
authorTom Rini <trini@konsulko.com>
Sat, 19 Nov 2022 23:45:26 +0000 (18:45 -0500)
committerTom Rini <trini@konsulko.com>
Mon, 5 Dec 2022 21:07:13 +0000 (16:07 -0500)
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>
arch/arm/Kconfig
arch/arm/mach-exynos/Kconfig
arch/arm/mach-s5pc1xx/Kconfig
board/samsung/common/Kconfig [new file with mode: 0644]
include/configs/odroid.h
include/configs/odroid_xu3.h
include/configs/s5p_goni.h
include/configs/s5pc210_universal.h
include/configs/trats.h
include/configs/trats2.h

index eb5e3b69d8462010c5a464e681b0d285ffcf5077..fb696abac8092f23fa088c6815d580dc5e756aac 100644 (file)
@@ -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"
index 84102908561e129dc7643d7e95b9c12c3ccc0a20..29e35e443c6a3284c86c1a4589a033ad69d938e6 100644 (file)
@@ -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
index 8cffced5512b6950e0f50e4185fda0008d114376..b6a4b0b653fb6b5adf4fcedb2c2a40a9dca34f58 100644 (file)
@@ -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 (file)
index 0000000..849aeff
--- /dev/null
@@ -0,0 +1,2 @@
+config MISC_COMMON
+       bool
index 8b00a2792150a797b834245c21120e8feeac98a9..f252b349437c64bbc2c47c1e80d34b0630d91a0c 100644 (file)
        "kernel_addr_r=0x41000000\0" \
        BOOTENV
 
-/*
- * Supported Odroid boards: X3, U3
- * TODO: Add Odroid X support
- */
-#define CONFIG_MISC_COMMON
-
 #endif /* __CONFIG_H */
index d2d7fca54450497ccdb6da31b51e3538c7d5571c..5bbe7aadcb2555a0787a1c3c608bf1c539db0d0d 100644 (file)
@@ -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 */
index 3d49d52b381c2f9f783b5063e60c298c9254b517..fdade1ee66fafccae99c63a0859a12ecba9a341d 100644 (file)
@@ -61,8 +61,6 @@
 
 #define COMMON_BOOT    "${console} ${meminfo} ${mtdparts}"
 
-#define CONFIG_MISC_COMMON
-
 #define CONFIG_EXTRA_ENV_SETTINGS                                      \
        "updateb=" \
                "onenand erase 0x0 0x100000;" \
index 06be9c0f65288e4706249e5e3efccbe8bd1fb8dc..80d3fc9258cccf731ff29a7f49aa5e1c72e2c470 100644 (file)
@@ -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__
 
index 5bd0ca2a96454ae8346857d5e87729700753899c..ec18842bbe8ce3d24d6453b50a4624933282337b 100644 (file)
 
 /* GPT */
 
-/* Common misc for Samsung */
-#define CONFIG_MISC_COMMON
-
 /* Download menu - definitions for check keys */
 #ifndef __ASSEMBLY__
 
index cef563696bde6bf7e3b6d1889bbbe67d7fcbad77..0aa331e393598bfd8bbbed4a6157d69cc7703ba2 100644 (file)
 
 /* GPT */
 
-/* Common misc for Samsung */
-#define CONFIG_MISC_COMMON
-
 /* Download menu - definitions for check keys */
 #ifndef __ASSEMBLY__