]> git.proxmox.com Git - mirror_qemu.git/commit
hw/arm/spitz: Implement inbound GPIO lines for bit5 and power signals
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 3 Jul 2020 15:59:44 +0000 (16:59 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 3 Jul 2020 15:59:44 +0000 (16:59 +0100)
commit2e354c028a282b1bae56154ed52ac80746eb24b3
treef250e7ce16175e7b868cc3d2b85e2426c822aeb6
parentffe7f90698099f0f702154492df05cf6a14c6b62
hw/arm/spitz: Implement inbound GPIO lines for bit5 and power signals

Currently the Spitz board uses a nasty hack for the GPIO lines
that pass "bit5" and "power" information to the LCD controller:
the lcdtg realize function sets a global variable to point to
the instance it just realized, and then the functions spitz_bl_power()
and spitz_bl_bit5() use that to find the device they are changing
the internal state of. There is a comment reading:
 FIXME: Implement GPIO properly and remove this hack.
which was added in 2009.

Implement GPIO properly and remove this hack.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20200628142429.17111-6-peter.maydell@linaro.org
hw/arm/spitz.c