]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/gpio: Add property for ASPEED GPIO in 32 bits basis
authorFelix Wu <flwu@google.com>
Wed, 15 Oct 2025 01:18:25 +0000 (01:18 +0000)
committerCédric Le Goater <clg@redhat.com>
Wed, 22 Oct 2025 06:14:09 +0000 (08:14 +0200)
commit42fa4bd01a90baea260833d565922fec5d28f768
tree20951f8495e668a2e2b24750e90de6351828114e
parentd187d120d17c6b6de3b6432243dcc706ec144658
hw/gpio: Add property for ASPEED GPIO in 32 bits basis

Added 32 bits property for ASPEED GPIO. Previously it can only be
access in bitwise manner.

The changes to qobject is to index gpios with array indices on top of
accessing with registers.  This allows for easier gpio access,
especially in tests with complex behaviors that requires large number
of gpios at a time, like fault injection and networking behaviors.

Indexing multiple gpios at once allows qmp/side band client to no
longer hardcode and populate register names and manipulate them
faster.

Signed-off-by: Felix Wu <flwu@google.com>
Reviewed-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Link: https://lore.kernel.org/qemu-devel/20251015011830.1688468-2-lixiaoyan@google.com
[ clg: wrapped commit log lines ]
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/gpio/aspeed_gpio.c