forked from Mirrors/opensbi
		
	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>
			
			
This commit is contained in:
		
				
					committed by
					
						
						Anup Patel
					
				
			
			
				
	
			
			
			
						parent
						
							ef9f02e7fb
						
					
				
				
					commit
					8234fc1bdf
				
			@@ -9,6 +9,10 @@ config FDT_RESET
 | 
			
		||||
 | 
			
		||||
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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user