OSDN Git Service

hw/timer/imx_epit: Simplify and fix imx_epit implementation
authorPeter Chubb <peter.chubb@nicta.com.au>
Tue, 20 Aug 2013 13:54:32 +0000 (14:54 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 20 Aug 2013 13:54:32 +0000 (14:54 +0100)
commit230058106ab26de9b876158dbe27d60719f01f51
tree32f530ab14129caade4850af1fb6df689df939d5
parent66aae5e1ecc38e8658c5cc69a0b3ceeb4967619c
hw/timer/imx_epit: Simplify and fix imx_epit implementation

When imx_epit.c was last refactored, a common usecase (comparison
register zero) broke.  This patch fixes that, and simplifies the code
yet more.  It also fixes a major thinko in the reset path --- the
wrong bits in the control register were being cleared.

Signed-off-by: Peter Chubb <peter.chubb@nicta.com.au>
Reviewed-by: Jean-Christophe DUBOIS <jcd@tribudubois.net>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/timer/imx_epit.c