From: Stefan Roese Date: Thu, 16 Aug 2018 13:27:32 +0000 (+0200) Subject: mips: mt76xx: Add sysreset support X-Git-Tag: v2018.11-rc1~112^2~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=41f6e6eb644751678fb3c0b92b74e7f058c7cb89;p=oweals%2Fu-boot.git mips: mt76xx: Add sysreset support This patch adds the necessary sysreset DT node and enables the required drivers via Kconfig. Signed-off-by: Stefan Roese Cc: Daniel Schwierzeck --- diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 10b55c914e..071dea04ec 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -83,6 +83,7 @@ config ARCH_MT7620 select SUPPORTS_CPU_MIPS32_R1 select SUPPORTS_CPU_MIPS32_R2 select SUPPORTS_LITTLE_ENDIAN + select SYSRESET config MACH_PIC32 bool "Support Microchip PIC32" diff --git a/arch/mips/dts/mt7628a.dtsi b/arch/mips/dts/mt7628a.dtsi index d00f528e1f..d525f019fe 100644 --- a/arch/mips/dts/mt7628a.dtsi +++ b/arch/mips/dts/mt7628a.dtsi @@ -41,6 +41,13 @@ reg = <0x0 0x100>; }; + syscon-reboot { + compatible = "syscon-reboot"; + regmap = <&sysc>; + offset = <0x34>; + mask = <0x1>; + }; + intc: interrupt-controller@200 { compatible = "ralink,rt2880-intc"; reg = <0x200 0x100>;