diff options
| author | Yu Chien Peter Lin <[email protected]> | 2022-10-14 08:32:47 +0800 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2022-10-23 10:29:23 +0530 |
| commit | 8234fc1bdf4629fc0fec41ebc2e091c407ef8d6a (patch) | |
| tree | 99b85e606ba6d59473b4d6a60037e69e8618b1a9 /lib/utils/reset/objects.mk | |
| parent | ef9f02e7fba47412d6c057ba78fd3d89cb4e5fc3 (diff) | |
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 <[email protected]>
Reviewed-by: Leo Yu-Chi Liang <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils/reset/objects.mk')
| -rw-r--r-- | lib/utils/reset/objects.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/utils/reset/objects.mk b/lib/utils/reset/objects.mk index 8a50dd04..c9f851cd 100644 --- a/lib/utils/reset/objects.mk +++ b/lib/utils/reset/objects.mk @@ -10,6 +10,9 @@ libsbiutils-objs-$(CONFIG_FDT_RESET) += reset/fdt_reset.o libsbiutils-objs-$(CONFIG_FDT_RESET) += reset/fdt_reset_drivers.o +carray-fdt_reset_drivers-$(CONFIG_FDT_RESET_ATCWDT200) += fdt_reset_atcwdt200 +libsbiutils-objs-$(CONFIG_FDT_RESET_ATCWDT200) += reset/fdt_reset_atcwdt200.o + carray-fdt_reset_drivers-$(CONFIG_FDT_RESET_GPIO) += fdt_poweroff_gpio carray-fdt_reset_drivers-$(CONFIG_FDT_RESET_GPIO) += fdt_reset_gpio libsbiutils-objs-$(CONFIG_FDT_RESET_GPIO) += reset/fdt_reset_gpio.o |
