macintosh/via-pmu: Add support for m68k PowerBooks
authorFinn Thain <fthain@telegraphics.com.au>
Mon, 2 Jul 2018 08:21:19 +0000 (04:21 -0400)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 31 Jul 2018 09:56:41 +0000 (19:56 +1000)
commitc16a85a5aad47d712860b42f0ca989b0cb62257a
tree8ad55e30af2d81e2e337cc2144fef4914810a0b6
parentc70c35da52c064983199b1b1cbd4daa5a07ef60c
macintosh/via-pmu: Add support for m68k PowerBooks

Put #ifdefs around the Open Firmware, xmon, interrupt dispatch,
battery and suspend code. Add the necessary interrupt handling to
support m68k PowerBooks.

The pmu_kind value is available to userspace using the
PMU_IOC_GET_MODEL ioctl. It is not clear yet what hardware classes
are be needed to describe m68k PowerBook models, so pmu_kind is given
the provisional value PMU_UNKNOWN.

To find out about the hardware, user programs can use /proc/bootinfo
or /proc/hardware, or send the PMU_GET_VERSION command using /dev/adb.

Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/macintosh/Kconfig
drivers/macintosh/via-pmu.c