aspeed/scu: Fix W1C behavior
commit310b5bc69213684b5c2429494c04b3300d9a3150
authorJoel Stanley <joel@jms.id.au>
Tue, 19 Nov 2019 14:12:01 +0000 (19 15:12 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 16 Dec 2019 10:46:34 +0000 (16 10:46 +0000)
treeaf7b6b28d74c6429ae350990813196d2caacb094
parentd3ff9e69b70da720dd701b7badb0bd285ce8b34b
aspeed/scu: Fix W1C behavior

This models the clock write one to clear registers, and fixes up some
incorrect behavior in all of the write to clear registers.

There was also a typo in one of the register definitions.

Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-id: 20191119141211.25716-8-clg@kaod.org
[clg: checkpatch.pl fixes ]
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/misc/aspeed_scu.c