forked from len0rd/rockbox
imx233/fuze+: reset dma block correctly and define maximum transfer size
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30526 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b27d07e094
commit
1b220f1856
2 changed files with 5 additions and 2 deletions
|
@ -28,8 +28,8 @@
|
||||||
void imx233_dma_init(void)
|
void imx233_dma_init(void)
|
||||||
{
|
{
|
||||||
/* Enable APHB and APBX */
|
/* Enable APHB and APBX */
|
||||||
__REG_CLR(HW_APBH_CTRL0) = __BLOCK_CLKGATE | __BLOCK_SFTRST;
|
imx233_reset_block(&HW_APBH_CTRL0);
|
||||||
__REG_CLR(HW_APBX_CTRL0) = __BLOCK_CLKGATE | __BLOCK_SFTRST;
|
imx233_reset_block(&HW_APBX_CTRL0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void imx233_dma_reset_channel(unsigned chan)
|
void imx233_dma_reset_channel(unsigned chan)
|
||||||
|
|
|
@ -152,6 +152,9 @@ struct apb_dma_command_t
|
||||||
#define HW_APB_CHx_SEMA__PHORE_BM 0xff0000
|
#define HW_APB_CHx_SEMA__PHORE_BM 0xff0000
|
||||||
#define HW_APB_CHx_SEMA__PHORE_BP 16
|
#define HW_APB_CHx_SEMA__PHORE_BP 16
|
||||||
|
|
||||||
|
/* A single descriptor cannot transfer more than 2^16 bytes */
|
||||||
|
#define IMX233_MAX_SINGLE_DMA_XFER_SIZE (1 << 16)
|
||||||
|
|
||||||
void imx233_dma_init(void);
|
void imx233_dma_init(void);
|
||||||
void imx233_dma_reset_channel(unsigned chan);
|
void imx233_dma_reset_channel(unsigned chan);
|
||||||
/* only apbh channel have clkgate control */
|
/* only apbh channel have clkgate control */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue