qemu-e2k/include/hw/watchdog
Andrew Jeffery 709098fd37 watchdog: aspeed: Sanitize control register values
While some of the critical fields remain the same, there is variation in
the definition of the control register across the SoC generations.
Reserved regions are adjusted, while in other cases the mutability or
behaviour of fields change.

Introduce a callback to sanitize the value on writes to ensure model
behaviour reflects the hardware.

Fixes: 854123bf8d ("wdt: Add Aspeed watchdog device model")
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20210709053107.1829304-2-andrew@aj.id.au>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
2021-09-20 08:50:59 +02:00
..
cmsdk-apb-watchdog.h arm: Remove frq properties on CMSDK timer, dualtimer, watchdog, ARMSSE 2021-01-29 15:54:44 +00:00
sbsa_gwdt.h hw/watchdog: Implement SBSA watchdog device 2020-10-27 11:10:44 +00:00
wdt_aspeed.h watchdog: aspeed: Sanitize control register values 2021-09-20 08:50:59 +02:00
wdt_diag288.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
wdt_imx2.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 2020-09-18 14:12:32 -04:00