clocksource/drivers/fttmr010: Fix aspeed-2500 initialization
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 26 May 2017 08:38:07 +0000 (10:38 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 12 Jun 2017 08:45:24 +0000 (10:45 +0200)
commitef89718ab685e40887bb76d4e7664a931306a2a4
tree2d124949c0a7d61a4f22e5c0ec9f338bc2c5fef9
parenta6fbb9c4cc80bbbe5a088c3b64d1e41eee16b090
clocksource/drivers/fttmr010: Fix aspeed-2500 initialization

The recent changes made the fttmr010 to be more generic and support different
timers with a very few differences like moxart or aspeed.

The aspeed timer uses a countdown and there is a test against the aspeed2400
compatible string to set a flag.

With the previous patch, we added the aspeed2500 compatible string but without
taking care of setting the countdown flag.

Fix this by specifiying a init function and pass the aspeed flag to a common
init function.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Andrew Jeffery <andrew@aj.id.au>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Acked-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/timer-fttmr010.c