From 47e0621bb7e0165da3cc11753048a203c89b0420 Mon Sep 17 00:00:00 2001 From: Flavio Ceolin Date: Thu, 7 Jan 2021 16:07:20 -0800 Subject: [PATCH] power: Remove not used build option There is no usage of BOOTLOADER_CONTEXT_RESTORE since quark support was removed. Signed-off-by: Flavio Ceolin --- Kconfig.zephyr | 9 --------- arch/Kconfig | 6 ------ arch/arc/core/reset.S | 3 +-- 3 files changed, 1 insertion(+), 17 deletions(-) diff --git a/Kconfig.zephyr b/Kconfig.zephyr index 2f5093bed4d..c71f0fe0316 100644 --- a/Kconfig.zephyr +++ b/Kconfig.zephyr @@ -496,15 +496,6 @@ config BOOTLOADER_BOSSA_ADAFRUIT_UF2 endchoice -config BOOTLOADER_CONTEXT_RESTORE - bool "Boot loader has context restore support" - default y - depends on PM_DEEP_SLEEP_STATES && BOOTLOADER_CONTEXT_RESTORE_SUPPORTED - help - This option signifies that the target has a bootloader - that restores CPU context upon resuming from deep sleep - power state. - config REBOOT bool "Reboot functionality" select SYSTEM_CLOCK_DISABLE diff --git a/arch/Kconfig b/arch/Kconfig index a95db66f8dc..0e2218d727e 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -476,12 +476,6 @@ config ARCH_HAS_THREAD_LOCAL_STORAGE config ARCH_HAS_THREAD_ABORT bool -config BOOTLOADER_CONTEXT_RESTORE_SUPPORTED - bool - help - This option signifies that the target has options of bootloaders - that support context restore upon resume from deep sleep - # # Hidden CPU family configs # diff --git a/arch/arc/core/reset.S b/arch/arc/core/reset.S index 05565266e0b..1cdfb89a868 100644 --- a/arch/arc/core/reset.S +++ b/arch/arc/core/reset.S @@ -154,8 +154,7 @@ done_mpu_regions_reset: #endif #endif -#if defined(CONFIG_PM_DEEP_SLEEP_STATES) && \ - !defined(CONFIG_BOOTLOADER_CONTEXT_RESTORE) +#if defined(CONFIG_PM_DEEP_SLEEP_STATES) jl @pm_system_resume_from_deep_sleep #endif