aspeed/timer: Introduce an object class per SoC
commit72d96f8e2288e4bc7b31011c0c3f00448e2cef19
authorCédric Le Goater <clg@kaod.org>
Wed, 25 Sep 2019 14:32:29 +0000 (25 16:32 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 15 Oct 2019 17:09:04 +0000 (15 18:09 +0100)
treeca37991a74118ed310f6e7c9eb9747ce03f18480
parente09cf36321f69a9633e2171cbe45c7ce603fbcbf
aspeed/timer: Introduce an object class per SoC

The most important changes will be on the register range 0x34 - 0x3C
memops. Introduce class read/write operations to handle the
differences between SoCs.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Message-id: 20190925143248.10000-5-clg@kaod.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/aspeed_soc.c
hw/timer/aspeed_timer.c
include/hw/timer/aspeed_timer.h