Commit 09259fce1e8b4ac34a47d4590f42878a38b42826
1 parent
c34643e0db
Exists in
smarc_8mq_lf_v2020.04
and in
9 other branches
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>
Showing 10 changed files with 27 additions and 1 deletions Side-by-side Diff
arch/Kconfig
arch/arm/Kconfig
configs/am65x_evm_a53_defconfig
configs/am65x_evm_r5_defconfig
configs/am65x_hs_evm_a53_defconfig
configs/am65x_hs_evm_r5_defconfig
configs/mt7629_rfb_defconfig
configs/sandbox_spl_defconfig
drivers/sysreset/Kconfig
... | ... | @@ -13,6 +13,24 @@ |
13 | 13 | to effect a reset. The uclass will try all available drivers when |
14 | 14 | reset_walk() is called. |
15 | 15 | |
16 | +config SPL_SYSRESET | |
17 | + bool "Enable support for system reset drivers in SPL mode" | |
18 | + depends on SYSRESET && SPL_DM | |
19 | + help | |
20 | + Enable system reset drivers which can be used to reset the CPU or | |
21 | + board. Each driver can provide a reset method which will be called | |
22 | + to effect a reset. The uclass will try all available drivers when | |
23 | + reset_walk() is called. | |
24 | + | |
25 | +config TPL_SYSRESET | |
26 | + bool "Enable support for system reset drivers in TPL mode" | |
27 | + depends on SYSRESET && TPL_DM | |
28 | + help | |
29 | + Enable system reset drivers which can be used to reset the CPU or | |
30 | + board. Each driver can provide a reset method which will be called | |
31 | + to effect a reset. The uclass will try all available drivers when | |
32 | + reset_walk() is called. | |
33 | + | |
16 | 34 | if SYSRESET |
17 | 35 | |
18 | 36 | config SYSRESET_GPIO |
drivers/sysreset/Makefile
... | ... | @@ -2,7 +2,7 @@ |
2 | 2 | # |
3 | 3 | # (C) Copyright 2016 Cadence Design Systems Inc. |
4 | 4 | |
5 | -obj-$(CONFIG_SYSRESET) += sysreset-uclass.o | |
5 | +obj-$(CONFIG_$(SPL_TPL_)SYSRESET) += sysreset-uclass.o | |
6 | 6 | obj-$(CONFIG_ARCH_ASPEED) += sysreset_ast.o |
7 | 7 | obj-$(CONFIG_ARCH_ROCKCHIP) += sysreset_rockchip.o |
8 | 8 | obj-$(CONFIG_ARCH_STI) += sysreset_sti.o |