summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/timrot-imx233.c
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2011-09-13 23:39:11 +0000
committerAmaury Pouly <pamaury@rockbox.org>2011-09-13 23:39:11 +0000
commitc36d33ce59f8f1e76ac00bdd5ca21c55b630f015 (patch)
tree713fdcc55ecb30a4b99a750c4486e3cb1bffbe40 /firmware/target/arm/imx233/timrot-imx233.c
parentaf9d25611d8493ef349e80f06cc49d2cb814540b (diff)
downloadrockbox-c36d33ce59f8f1e76ac00bdd5ca21c55b630f015.tar.gz
rockbox-c36d33ce59f8f1e76ac00bdd5ca21c55b630f015.tar.bz2
rockbox-c36d33ce59f8f1e76ac00bdd5ca21c55b630f015.zip
imx233/fuze+: correctly reset timrot block
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30529 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/imx233/timrot-imx233.c')
-rw-r--r--firmware/target/arm/imx233/timrot-imx233.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/firmware/target/arm/imx233/timrot-imx233.c b/firmware/target/arm/imx233/timrot-imx233.c
index b2a1181ece..0790d6255b 100644
--- a/firmware/target/arm/imx233/timrot-imx233.c
+++ b/firmware/target/arm/imx233/timrot-imx233.c
@@ -73,8 +73,7 @@ void imx233_setup_timer(unsigned timer_nr, bool reload, unsigned count,
void imx233_timrot_init(void)
{
- __REG_CLR(HW_TIMROT_ROTCTRL) = __BLOCK_CLKGATE;
- __REG_CLR(HW_TIMROT_ROTCTRL) = __BLOCK_SFTRST;
+ imx233_reset_block(&HW_TIMROT_ROTCTRL);
/* enable xtal path to timrot */
imx233_enable_timrot_xtal_clk32k(true);
}