hw/misc/iotkit-sysctl: Implement dummy version of SSE-300 PWRCTRL register
commit2672a6ca72311bdf97f9e324ab2e71ff60bd2db9
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 19 Feb 2021 14:45:49 +0000 (19 14:45 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 8 Mar 2021 17:20:02 +0000 (8 17:20 +0000)
treef83714cd404d31546c5cfffc7558720041ff4241
parent246dbeb76319fdaa7030403ea0273617331f6a44
hw/misc/iotkit-sysctl: Implement dummy version of SSE-300 PWRCTRL register

The SSE-300 has a new PWRCTRL register at offset 0x1fc (previously
reserved). This register controls accessibility of some registers
in the Power Policy Units (PPUs). Since QEMU doesn't implement
the PPUs, we don't need to implement any real behaviour for this
register, so we just handle the UNLOCK bit which controls whether
writes to the register itself are permitted and otherwise make it
be reads-as-written.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210219144617.4782-17-peter.maydell@linaro.org
hw/misc/iotkit-sysctl.c
include/hw/misc/iotkit-sysctl.h