]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: lsxl: automatically select CONFIG_MISC_INIT_R
authorMichael Walle <michael@walle.cc>
Wed, 17 Aug 2022 19:37:58 +0000 (21:37 +0200)
committerStefan Roese <sr@denx.de>
Tue, 23 Aug 2022 10:39:36 +0000 (12:39 +0200)
The board code needs this to be set. Otherwise, the recovery mechanism
doesn't work. Therefore, select this option automatically with the
board.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Stefan Roese <sr@denx.de>
arch/arm/mach-kirkwood/Kconfig
board/buffalo/lsxl/lsxl.c
configs/lschlv2_defconfig
configs/lsxhl_defconfig

index 98bb10c2dee3dc554eacd8aef568cb5da8ceb735..f5460f3bd36449feb786c006752f60f67d05760b 100644 (file)
@@ -45,6 +45,7 @@ config TARGET_LSXL
        bool "lsxl Board"
        select FEROCEON_88FR131
        select KW88F6281
+       select MISC_INIT_R
 
 config TARGET_POGO_E02
        bool "pogo_e02 Board"
index 42221eef3a3243923093adcdb01eb9504801eb64..eca7da2f6dac5895dd07106ee1260d03ddb84c04 100644 (file)
@@ -172,7 +172,6 @@ int board_init(void)
        return 0;
 }
 
-#ifdef CONFIG_MISC_INIT_R
 static void check_power_switch(void)
 {
        if (kw_gpio_get_value(GPIO_POWER_SWITCH)) {
@@ -259,7 +258,6 @@ int misc_init_r(void)
 
        return 0;
 }
-#endif
 
 #if CONFIG_IS_ENABLED(BOOTSTAGE)
 void show_boot_progress(int progress)
index 87dc1be61ba68c569cac431840b45dc404119ded..081a2448fc32d195c342212cbc0955d32cfac6db 100644 (file)
@@ -28,7 +28,6 @@ CONFIG_BOOTCOMMAND="run bootcmd_${bootsource}"
 CONFIG_SYS_CONSOLE_IS_IN_ENV=y
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 # CONFIG_DISPLAY_BOARDINFO is not set
-CONFIG_MISC_INIT_R=y
 CONFIG_SYS_MAXARGS=32
 # CONFIG_CMD_FLASH is not set
 CONFIG_CMD_SATA=y
index 35e414f0590e868e33ab41c05554c5facd64297b..33bec601474fe5518a43c8b328a84f3815140c0e 100644 (file)
@@ -29,7 +29,6 @@ CONFIG_BOOTCOMMAND="run bootcmd_${bootsource}"
 CONFIG_SYS_CONSOLE_IS_IN_ENV=y
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 # CONFIG_DISPLAY_BOARDINFO is not set
-CONFIG_MISC_INIT_R=y
 CONFIG_SYS_MAXARGS=32
 # CONFIG_CMD_FLASH is not set
 CONFIG_CMD_SATA=y