OSDN Git Service

powerpc: wii.dts: Expose HW_SRNPROT on this platform
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Wed, 15 Dec 2021 17:54:59 +0000 (18:54 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 16 Dec 2021 09:46:35 +0000 (10:46 +0100)
This Hollywood register isn’t properly understood, but can allow or
reject access to the SRAM, which we need to set for RTC usage if it
isn’t previously set correctly beforehand.

See https://wiibrew.org/wiki/Hardware/Hollywood_Registers#HW_SRNPROT

Signed-off-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc)
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20211215175501.6761-4-linkmauve@linkmauve.fr
arch/powerpc/boot/dts/wii.dts

index e9c945b..e46143c 100644 (file)
                        interrupts = <14>;
                };
 
+               srnprot@d800060 {
+                       compatible = "nintendo,hollywood-srnprot";
+                       reg = <0x0d800060 0x4>;
+               };
+
                GPIO: gpio@d8000c0 {
                        #gpio-cells = <2>;
                        compatible = "nintendo,hollywood-gpio";