summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/ssp-imx233.c
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2011-09-13 23:38:52 +0000
committerAmaury Pouly <pamaury@rockbox.org>2011-09-13 23:38:52 +0000
commitb27d07e094376c2970cdb62434450f7a683edee7 (patch)
tree2658c55c393803f8435c925593fb9d93cdf694df /firmware/target/arm/imx233/ssp-imx233.c
parentb51ecea14aba6d86fc47cc79179eb19bdd0cd70a (diff)
downloadrockbox-b27d07e094376c2970cdb62434450f7a683edee7.tar.gz
rockbox-b27d07e094376c2970cdb62434450f7a683edee7.tar.bz2
rockbox-b27d07e094376c2970cdb62434450f7a683edee7.zip
imx233/fuze+: reset ssp block correctly, define maximum ssp transfer size
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30525 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/imx233/ssp-imx233.c')
-rw-r--r--firmware/target/arm/imx233/ssp-imx233.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/firmware/target/arm/imx233/ssp-imx233.c b/firmware/target/arm/imx233/ssp-imx233.c
index 912f9c3ae4..21d5658392 100644
--- a/firmware/target/arm/imx233/ssp-imx233.c
+++ b/firmware/target/arm/imx233/ssp-imx233.c
@@ -93,8 +93,7 @@ void imx233_ssp_init(void)
void imx233_ssp_start(int ssp)
{
/* Gate block */
- __REG_CLR(HW_SSP_CTRL0(ssp)) = __BLOCK_CLKGATE;
- while(HW_SSP_CTRL0(ssp) & __BLOCK_CLKGATE);
+ imx233_reset_block(&HW_SSP_CTRL0(ssp));
/* Gate dma channel */
imx233_dma_clkgate_channel(APB_SSP(ssp), true);
/* If first block to start, start SSP clock */