aspeed/timer: Fix match calculations
commit696942b8bc6562a2b23c6ed8ae32ecdeb9bf4b60
authorAndrew Jeffery <andrew@aj.id.au>
Mon, 1 Jul 2019 16:26:17 +0000 (1 17:26 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 1 Jul 2019 16:28:59 +0000 (1 17:28 +0100)
tree103d9f9d0aa4f1fc20caf52e2cbf8d35c87fb72b
parent58044b5cf5f30eb298709696ddbafdf547c1291c
aspeed/timer: Fix match calculations

If the match value exceeds reload then we don't want to include it in
calculations for the next event.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-id: 20190618165311.27066-10-clg@kaod.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/timer/aspeed_timer.c