diff options
author | Sean Anderson <sean.anderson@seco.com> | 2022-03-22 16:59:33 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-04-01 16:56:54 -0400 |
commit | 53b953f2ebad6263352cb1247618dc5b965863cc (patch) | |
tree | 7f552f8d21ab9a36ca4d48eb11a8e5e17b54160a /arch | |
parent | 2332590c48ac15926d7ec23b0fa17b9ea4e305ed (diff) | |
download | u-boot-53b953f2ebad6263352cb1247618dc5b965863cc.zip u-boot-53b953f2ebad6263352cb1247618dc5b965863cc.tar.gz u-boot-53b953f2ebad6263352cb1247618dc5b965863cc.tar.bz2 |
arm64: ls1046a: Support semihosting fallback
Use the semihosting_enabled function to determine whether or not to
enable semihosting devices. This allows for graceful fallback in the
event a debugger is not attached.
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/cpu/armv8/fsl-layerscape/spl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/spl.c b/arch/arm/cpu/armv8/fsl-layerscape/spl.c index 1a7dde3..5f09ef0 100644 --- a/arch/arm/cpu/armv8/fsl-layerscape/spl.c +++ b/arch/arm/cpu/armv8/fsl-layerscape/spl.c @@ -12,6 +12,7 @@ #include <image.h> #include <init.h> #include <log.h> +#include <semihosting.h> #include <spl.h> #include <asm/cache.h> #include <asm/global_data.h> @@ -27,7 +28,7 @@ DECLARE_GLOBAL_DATA_PTR; u32 spl_boot_device(void) { - if (IS_ENABLED(CONFIG_SPL_SEMIHOSTING)) + if (semihosting_enabled()) return BOOT_DEVICE_SMH; #ifdef CONFIG_SPL_MMC return BOOT_DEVICE_MMC1; |