mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
mac_newworld: add gpios to macio devices with PMU enabled
PMU-enabled New World Macs expose their GPIOs via a separate memory region within the macio device. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
f1114c17ee
commit
7c4166a971
8 changed files with 292 additions and 0 deletions
|
@ -13,3 +13,10 @@ cuda_packet_send_data(int i, const uint8_t data) "[%d] 0x%02x"
|
|||
# hw/misc/macio/macio.c
|
||||
macio_timer_write(uint64_t addr, unsigned len, uint64_t val) "write addr 0x%"PRIx64 " len %d val 0x%"PRIx64
|
||||
macio_timer_read(uint64_t addr, unsigned len, uint32_t val) "read addr 0x%"PRIx64 " len %d val 0x%"PRIx32
|
||||
|
||||
# hw/misc/macio/gpio.c
|
||||
macio_set_gpio(int gpio, bool state) "setting GPIO %d to %d"
|
||||
macio_gpio_irq_assert(int gpio) "asserting GPIO %d"
|
||||
macio_gpio_irq_deassert(int gpio) "deasserting GPIO %d"
|
||||
macio_gpio_write(uint64_t addr, uint64_t val) "addr: 0x%"PRIx64" value: 0x%"PRIx64
|
||||
macio_gpio_read(uint64_t addr, uint64_t val) "addr: 0x%"PRIx64" value: 0x%"PRIx64
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue