Files
opensbi/lib/utils/reset/Kconfig
Yu Chien Peter Lin 8234fc1bdf lib: utils/reset: Add Andes fdt reset driver support
Add ATCWDT200 as reset device of AE350 platform, this driver requires
SMU to program the reset vector registers before triggering WDT software
restart signal.

dts example:

  smu@f0100000 {
    compatible = "andestech,atcsmu";
    reg = <0x00000000 0xf0100000 0x00000000 0x00001000>;
  };

  wdt: wdt@f0500000 {
    compatible = "andestech,atcwdt200";
    reg = <0x00000000 0xf0500000 0x00000000 0x00001000>;
    interrupts = <3 4>;
    interrupt-parent = <&plic0>;
    clock-frequency = <15000000>;
  };

Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
2022-10-23 10:29:23 +05:30

42 lines
685 B
Plaintext

# SPDX-License-Identifier: BSD-2-Clause
menu "System Reset Support"
config FDT_RESET
bool "FDT based reset drivers"
depends on FDT
default n
if FDT_RESET
config FDT_RESET_ATCWDT200
bool "Andes WDT FDT reset driver"
default n
config FDT_RESET_GPIO
bool "GPIO FDT reset driver"
depends on FDT_GPIO
default n
config FDT_RESET_HTIF
bool "Host transfer interface (HTIF) FDT reset driver"
select SYS_HTIF
default n
config FDT_RESET_SIFIVE_TEST
bool "SiFive Test FDT reset driver"
select SYS_SIFIVE_TEST
default n
config FDT_RESET_SUNXI_WDT
bool "Sunxi WDT FDT reset driver"
default n
config FDT_RESET_THEAD
bool "T-HEAD FDT reset driver"
default n
endif
endmenu