summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/audioin-imx233.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-06-16 15:47:55 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-06-16 15:47:55 +0200
commit444a8b1da0314e4b8b85c8a21b91d8c898b3f414 (patch)
tree69dd035565ab4022bab9539adabb45db58db2b17 /firmware/target/arm/imx233/audioin-imx233.c
parentdf9e6c31473bc57482dabd6f7937a54736c4a3ba (diff)
downloadrockbox-444a8b1da0314e4b8b85c8a21b91d8c898b3f414.tar.gz
rockbox-444a8b1da0314e4b8b85c8a21b91d8c898b3f414.tar.bz2
rockbox-444a8b1da0314e4b8b85c8a21b91d8c898b3f414.zip
imx233: rewrite audioin using new register headers
Change-Id: I7d71d16361a29030d0eb6de5c518168947516d39
Diffstat (limited to 'firmware/target/arm/imx233/audioin-imx233.c')
-rw-r--r--firmware/target/arm/imx233/audioin-imx233.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/arm/imx233/audioin-imx233.c b/firmware/target/arm/imx233/audioin-imx233.c
index dcb9c7c4b4..d3df627037 100644
--- a/firmware/target/arm/imx233/audioin-imx233.c
+++ b/firmware/target/arm/imx233/audioin-imx233.c
@@ -25,9 +25,9 @@ void imx233_audioin_preinit(void)
/* Enable AUDIOIN block */
imx233_reset_block(&HW_AUDIOIN_CTRL);
/* Enable ADC */
- __REG_CLR(HW_AUDIOIN_ANACLKCTRL) = HW_AUDIOIN_ANACLKCTRL__CLKGATE;
+ BF_SET(AUDIOIN_CTRL, CLKGATE);
/* Set word-length to 16-bit */
- __REG_SET(HW_AUDIOIN_CTRL) = HW_AUDIOIN_CTRL__WORD_LENGTH;
+ BF_SET(AUDIOIN_CTRL, WORD_LENGTH);
}
void imx233_audioin_postinit(void)
@@ -38,7 +38,7 @@ void imx233_audioin_close(void)
{
/* TODO mute */
/* Gate off ADC */
- __REG_SET(HW_AUDIOIN_ANACLKCTRL) = HW_AUDIOIN_ANACLKCTRL__CLKGATE;
+ BF_SET(AUDIOIN_ANACLKCTRL, CLKGATE);
/* will also gate off the module */
- __REG_CLR(HW_AUDIOIN_CTRL) = HW_AUDIOIN_CTRL__RUN;
+ BF_CLR(AUDIOIN_CTRL, RUN);
}