summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mxs/timer.c
Commit message (Collapse)AuthorAgeFilesLines
* ARM: mxs: remove now unused timer_clk argument from mxs_timer_initShawn Guo2012-05-091-7/+7
| | | | | | | With old mxs clock support removed, the timer_clk argument of mxs_timer_init is unused now, so remove it. Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
* ARM: mxs: request clock for timerShawn Guo2012-05-091-0/+9
| | | | | | | When mxs_timer_init() does not have a timer_clk passed in, it should try to request clock from clkdev system. Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
* ARM: mxs: convert platform code to clk_prepare/clk_unprepareShawn Guo2011-12-281-1/+1
| | | | | | | | The patch converts mxs platform code to clk_prepare/clk_unprepare by using helper functions clk_prepare_enable/clk_disable_unprepare. Signed-off-by: Richard Zhao <richard.zhao@linaro.org> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
* clocksource: convert MXS timrotv2 to 32-bit down counting clocksourceRussell King2011-05-231-13/+7
| | | | | | | | | Convert the MXS timrotv2 32-bit down counting clocksource to the generic clocksource infrastructure. Cc: Sascha Hauer <kernel@pengutronix.de> Acked-by: Shawn Guo <shawn.guo@freescale.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
* ARM: mxs: Add timer supportShawn Guo2010-12-201-0/+296
There are 2 versions of the timrot on Freescale MXS-based SoCs. The v1 on MX23 only gets 16 bits counter, while v2 on MX28 extends the counter to 32 bits. The implementation uses two timers, one for clock_event and another for clocksource. MX28 uses timrot 0 and 1, while MX23 uses 0 and 2. Signed-off-by: Shawn Guo <shawn.guo@freescale.com> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
OpenPOWER on IntegriCloud