[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 0/7] mac99: add via-pmu support
From: |
Mark Cave-Ayland |
Subject: |
[Qemu-ppc] [PATCH 0/7] mac99: add via-pmu support |
Date: |
Tue, 12 Jun 2018 17:43:55 +0100 |
This patchset is based upon Ben H's experimental branch which adds PMU
support to the QEMU mac99 machine. Currently mac99 uses the via-cuda
device which works in a lot of cases, but many OSs such as MacOS 10.5
only support via-pmu.
A lot of the work I've been doing on the Mac machines over the past
year or so has been to enable me to remove all the hacks from the PMU
work to enable it to be submitted upstream, and here we are.
The choice of via is controlled with a new "via" machine option which
has 3 values:
via=cuda
- Use via-cuda as per the current mac99 machine but largely unsupported
via=pmu-adb
- Use via-pmu but attach the mouse and keyboard to the PMU ADB bus
rather than USB (useful for esoteric OS X images)
via=pmu
- Use via-pmu with USB mouse and keyboards, as per a real PowerMac3,1
machine
Eventually the aim is to switch the mac99 default option to via=pmu but
there are some minor issues with older OS X related to timer calibration
and USB that means I'm not ready to do that just yet.
Note that the via-pmu device also requires an updated OpenBIOS containing
a suitable PMU driver which have been posted over to the OpenBIOS mailing
list at https://mail.coreboot.org/pipermail/openbios/2018-June/010384.html.
Signed-off-by: Mark Cave-Ayland <address@hidden>
Mark Cave-Ayland (7):
ppc: introduce Core99MachinesState for the mac99 machine
mac_newworld: add via machine option to control mac99 VIA/ADB
configuration
mac_newworld: add gpios to macio devices with PMU enabled
mac_newworld: wire up programmer switch to NMI handler
adb: fix read reg 3 byte ordering
adb: add property to disable direct reg 3 writes
mac_newworld: add PMU device
default-configs/ppc-softmmu.mak | 2 +
hw/input/adb-kbd.c | 29 +-
hw/input/adb-mouse.c | 41 +-
hw/input/adb.c | 7 +
hw/misc/macio/Makefile.objs | 2 +
hw/misc/macio/gpio.c | 231 +++++++++++
hw/misc/macio/macio.c | 89 +++-
hw/misc/macio/pmu.c | 871 ++++++++++++++++++++++++++++++++++++++++
hw/misc/macio/trace-events | 28 ++
hw/ppc/mac.h | 20 +
hw/ppc/mac_newworld.c | 84 +++-
include/hw/input/adb.h | 1 +
include/hw/misc/macio/gpio.h | 47 +++
include/hw/misc/macio/macio.h | 7 +
include/hw/misc/macio/pmu.h | 237 +++++++++++
include/hw/ppc/ppc.h | 1 +
16 files changed, 1639 insertions(+), 58 deletions(-)
create mode 100644 hw/misc/macio/gpio.c
create mode 100644 hw/misc/macio/pmu.c
create mode 100644 include/hw/misc/macio/gpio.h
create mode 100644 include/hw/misc/macio/pmu.h
--
2.11.0
- [Qemu-ppc] [PATCH 0/7] mac99: add via-pmu support,
Mark Cave-Ayland <=
- [Qemu-ppc] [PATCH 5/7] adb: fix read reg 3 byte ordering, Mark Cave-Ayland, 2018/06/12
- [Qemu-ppc] [PATCH 1/7] ppc: introduce Core99MachinesState for the mac99 machine, Mark Cave-Ayland, 2018/06/12
- [Qemu-ppc] [PATCH 4/7] mac_newworld: wire up programmer switch to NMI handler, Mark Cave-Ayland, 2018/06/12
- [Qemu-ppc] [PATCH 2/7] mac_newworld: add via machine option to control mac99 VIA/ADB configuration, Mark Cave-Ayland, 2018/06/12
- [Qemu-ppc] [PATCH 6/7] adb: add property to disable direct reg 3 writes, Mark Cave-Ayland, 2018/06/12
- [Qemu-ppc] [PATCH 3/7] mac_newworld: add gpios to macio devices with PMU enabled, Mark Cave-Ayland, 2018/06/12
- [Qemu-ppc] [PATCH 7/7] mac_newworld: add PMU device, Mark Cave-Ayland, 2018/06/12
- Re: [Qemu-ppc] [PATCH 0/7] mac99: add via-pmu support, David Gibson, 2018/06/12