diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2018-08-24 13:17:49 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2018-08-24 13:17:49 +0100 |
commit | 9e2938a0fdb6d85d79c9d97b1fe4e626925be9b5 (patch) | |
tree | 73181c35b174e0be5459e2411c5c469c95c8d1ca /include | |
parent | ea662f7cc8685622f393cdb7f7b7d243797a8af5 (diff) |
hw/display/bcm2835_fb: Reset resolution, etc correctly
The bcm2835_fb's initial resolution and other parameters are set
via QOM properties. We should reset to those initial values on
device reset, which means we need to save the QOM property
values somewhere that they are not overwritten by guest
changes to the framebuffer configuration.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20180814144436.679-5-peter.maydell@linaro.org
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/display/bcm2835_fb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/display/bcm2835_fb.h b/include/hw/display/bcm2835_fb.h index 69cbf2d1fd..374de54612 100644 --- a/include/hw/display/bcm2835_fb.h +++ b/include/hw/display/bcm2835_fb.h @@ -47,6 +47,7 @@ typedef struct { bool lock, invalidate, pending; BCM2835FBConfig config; + BCM2835FBConfig initial_config; } BCM2835FBState; void bcm2835_fb_reconfigure(BCM2835FBState *s, BCM2835FBConfig *newconfig); |