diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2016-05-02 21:37:38 +0100 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2016-05-28 17:18:32 +0200 |
commit | 643c0a1e0e80ee6010353201792ba6e2be7e1ced (patch) | |
tree | 0b039050be720483935978575f77351db143463f /firmware/target/arm/imx233/kernel-imx233.c | |
parent | 423c64770c04a62e34775c37a7e09a60f6ccbc4c (diff) |
imx233: simplify timrot API
The old timrot setup API was very low-level and unfriendly. The new one
makes in easier to select the frequency source. Use to simplify timer
and kernel timer code.
Change-Id: Iffcdf11c00e925be9ec8d9a4efc74b197b6bd2aa
Diffstat (limited to 'firmware/target/arm/imx233/kernel-imx233.c')
-rw-r--r-- | firmware/target/arm/imx233/kernel-imx233.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/firmware/target/arm/imx233/kernel-imx233.c b/firmware/target/arm/imx233/kernel-imx233.c index 199015f564..0652d6e640 100644 --- a/firmware/target/arm/imx233/kernel-imx233.c +++ b/firmware/target/arm/imx233/kernel-imx233.c @@ -34,9 +34,7 @@ static void tick_timer(void) void tick_start(unsigned int interval_in_ms) { /* use the 1-kHz XTAL clock source */ - imx233_timrot_setup(TIMER_TICK, true, interval_in_ms, - BV_TIMROT_TIMCTRLn_SELECT__1KHZ_XTAL, BV_TIMROT_TIMCTRLn_PRESCALE__DIV_BY_1, - false, &tick_timer); + imx233_timrot_setup_simple(TIMER_TICK, true, interval_in_ms, TIMER_SRC_1KHZ, &tick_timer); } void arbiter_init(struct channel_arbiter_t *a, unsigned count) |