Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: wii.dts: Expose HW_SRNPROT on this platform

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

authored by

Emmanuel Gil Peyrot and committed by
Alexandre Belloni
5479618e 322539a0

+5
+5
arch/powerpc/boot/dts/wii.dts
··· 168 168 interrupts = <14>; 169 169 }; 170 170 171 + srnprot@d800060 { 172 + compatible = "nintendo,hollywood-srnprot"; 173 + reg = <0x0d800060 0x4>; 174 + }; 175 + 171 176 GPIO: gpio@d8000c0 { 172 177 #gpio-cells = <2>; 173 178 compatible = "nintendo,hollywood-gpio";