mips: mt76xx: Add sysreset support
authorStefan Roese <sr@denx.de>
Thu, 16 Aug 2018 13:27:32 +0000 (15:27 +0200)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Sun, 23 Sep 2018 12:27:51 +0000 (14:27 +0200)
This patch adds the necessary sysreset DT node and enables the required
drivers via Kconfig.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
arch/mips/Kconfig
arch/mips/dts/mt7628a.dtsi

index 10b55c914e689718522199aefee79ea2b525434d..071dea04ec7c1f554afe12096d10b6a83dc6a444 100644 (file)
@@ -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"
index d00f528e1fe9ae0edddb8e5f18c506f63d5f1244..d525f019fe993c3804b9c59b635839bb2287f46a 100644 (file)
                        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>;