linux/arch/powerpc/platforms/embedded6xx
Jonathan Neuschäfer 9cbaaec1cf powerpc/wii: Explicitly configure GPIO owner for poweroff pin
The Hollywood chipset's GPIO controller has two sets of registers: One
for access by the PowerPC CPU, and one for access by the ARM coprocessor
(but both are accessible from the PPC because the memory firewall
(AHBPROT) is usually disabled when booting Linux, today).

The wii_power_off function currently assumes that the poweroff GPIO pin
is configured for use via the ARM side, but the upcoming GPIO driver
configures all pins for use via the PPC side, breaking poweroff.

Configure the owner register explicitly in wii_power_off to make
wii_power_off work with and without the new GPIO driver.

I think the Wii can be switched to the generic gpio-poweroff driver,
after the GPIO driver is merged.

Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2018-04-01 00:47:39 +11:00
..
c2k.c powerpc: Get rid of ppc_md.init_early() 2016-07-21 19:07:26 +10:00
flipper-pic.c powerpc/embedded6xx: Make functions flipper_pic_init() & ug_udbg_putc() static 2018-03-13 15:50:34 +11:00
flipper-pic.h powerpc: gamecube/wii: flipper interrupt controller support 2009-12-12 22:24:28 -07:00
gamecube.c powerpc: Get rid of ppc_md.init_early() 2016-07-21 19:07:26 +10:00
hlwd-pic.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
hlwd-pic.h powerpc: wii: hollywood interrupt controller support 2009-12-12 22:24:30 -07:00
holly.c powerpc: Add support for relative exception tables 2016-11-14 11:11:51 +11:00
Kconfig License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
linkstation.c powerpc: Convert to using %pOF instead of full_name 2017-08-23 22:27:04 +10:00
ls_uart.c [POWERPC] 82xx and embedded6xx: Use machine_*_initcall() hooks in platform code 2008-01-28 08:30:41 -06:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mpc10x.h powerpc32: remove ioremap_base 2016-03-11 17:18:02 -06:00
mpc7448_hpc2.c powerpc: Add support for relative exception tables 2016-11-14 11:11:51 +11:00
mvme5100.c powerpc: Convert to using %pOF instead of full_name 2017-08-23 22:27:04 +10:00
storcenter.c powerpc: Convert to using %pOF instead of full_name 2017-08-23 22:27:04 +10:00
usbgecko_udbg.c powerpc/embedded6xx: Make functions flipper_pic_init() & ug_udbg_putc() static 2018-03-13 15:50:34 +11:00
usbgecko_udbg.h powerpc: gamecube/wii: early debugging using usbgecko 2009-12-12 22:24:31 -07:00
wii.c powerpc/wii: Explicitly configure GPIO owner for poweroff pin 2018-04-01 00:47:39 +11:00