forked from Mirrors/opensbi
		
	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>
		
	
		
			
				
	
	
		
			32 lines
		
	
	
		
			564 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			564 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
# SPDX-License-Identifier: BSD-2-Clause
 | 
						|
 | 
						|
config PLATFORM_ANDES_AE350
 | 
						|
	bool
 | 
						|
	select FDT
 | 
						|
	select IRQCHIP_PLIC
 | 
						|
	select FDT_SERIAL
 | 
						|
	select FDT_SERIAL_UART8250
 | 
						|
	select FDT_TIMER
 | 
						|
	select FDT_TIMER_PLMT
 | 
						|
	select FDT_RESET
 | 
						|
	select FDT_RESET_ATCWDT200
 | 
						|
	default y
 | 
						|
 | 
						|
if PLATFORM_ANDES_AE350
 | 
						|
 | 
						|
config PLATFORM_ANDES_AE350_NAME
 | 
						|
	string "Platform default name"
 | 
						|
	default "Andes AE350"
 | 
						|
 | 
						|
config PLATFORM_ANDES_AE350_MAJOR_VER
 | 
						|
	int "Platform major version"
 | 
						|
	range 0 65535
 | 
						|
	default 0
 | 
						|
 | 
						|
config PLATFORM_ANDES_AE350_MINOR_VER
 | 
						|
	int "Platform minor version"
 | 
						|
	range 0 65535
 | 
						|
	default 1
 | 
						|
 | 
						|
endif
 |