Browse Source

sysreset: enable driver support in SPL/TPL

SPL/TPL also need use sysreset for some feature like panic callback.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
tags/2020-06-01
Kever Yang 1 year ago
committed by Troy Kisky
parent
commit
de3420aa26
5 changed files with 22 additions and 1 deletions
  1. +1
    -0
      arch/Kconfig
  2. +1
    -0
      arch/arm/Kconfig
  3. +1
    -0
      configs/sandbox_spl_defconfig
  4. +18
    -0
      drivers/sysreset/Kconfig
  5. +1
    -1
      drivers/sysreset/Makefile

+ 1
- 0
arch/Kconfig View File

@@ -126,6 +126,7 @@ config X86
imply CMD_SF_TEST
imply CMD_ZBOOT
imply USB_HOST_ETHER
imply SPL_SYSRESET
imply USB_ETHER_ASIX
imply USB_ETHER_SMSC95XX



+ 1
- 0
arch/arm/Kconfig View File

@@ -1254,6 +1254,7 @@ config ARCH_STM32MP
select SYSCON
select SYSRESET
select SYS_THUMB_BUILD
imply SPL_SYSRESET
help
Support for STM32MP SoC family developed by STMicroelectronics,
MPUs based on ARM cortex A core


+ 1
- 0
configs/sandbox_spl_defconfig View File

@@ -171,6 +171,7 @@ CONFIG_SANDBOX_SPI=y
CONFIG_SPMI=y
CONFIG_SPMI_SANDBOX=y
CONFIG_SYSRESET=y
CONFIG_SPL_SYSRESET=y
CONFIG_TIMER=y
CONFIG_TIMER_EARLY=y
CONFIG_SANDBOX_TIMER=y


+ 18
- 0
drivers/sysreset/Kconfig View File

@@ -13,6 +13,24 @@ config SYSRESET
to effect a reset. The uclass will try all available drivers when
reset_walk() is called.

config SPL_SYSRESET
bool "Enable support for system reset drivers in SPL mode"
depends on SYSRESET && SPL_DM
help
Enable system reset drivers which can be used to reset the CPU or
board. Each driver can provide a reset method which will be called
to effect a reset. The uclass will try all available drivers when
reset_walk() is called.

config TPL_SYSRESET
bool "Enable support for system reset drivers in TPL mode"
depends on SYSRESET && TPL_DM
help
Enable system reset drivers which can be used to reset the CPU or
board. Each driver can provide a reset method which will be called
to effect a reset. The uclass will try all available drivers when
reset_walk() is called.

if SYSRESET

config SYSRESET_PSCI


+ 1
- 1
drivers/sysreset/Makefile View File

@@ -2,7 +2,7 @@
#
# (C) Copyright 2016 Cadence Design Systems Inc.

obj-$(CONFIG_SYSRESET) += sysreset-uclass.o
obj-$(CONFIG_$(SPL_TPL_)SYSRESET) += sysreset-uclass.o
obj-$(CONFIG_SYSRESET_PSCI) += sysreset_psci.o
obj-$(CONFIG_SYSRESET_SYSCON) += sysreset_syscon.o
obj-$(CONFIG_SYSRESET_WATCHDOG) += sysreset_watchdog.o


Loading…
Cancel
Save