diff options
Diffstat (limited to 'firmware/target/arm')
-rw-r--r-- | firmware/target/arm/imx233/dma-imx233.c | 4 | ||||
-rw-r--r-- | firmware/target/arm/imx233/dma-imx233.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/firmware/target/arm/imx233/dma-imx233.c b/firmware/target/arm/imx233/dma-imx233.c index eba41958a9..97001210d2 100644 --- a/firmware/target/arm/imx233/dma-imx233.c +++ b/firmware/target/arm/imx233/dma-imx233.c | |||
@@ -28,8 +28,8 @@ | |||
28 | void imx233_dma_init(void) | 28 | void imx233_dma_init(void) |
29 | { | 29 | { |
30 | /* Enable APHB and APBX */ | 30 | /* Enable APHB and APBX */ |
31 | __REG_CLR(HW_APBH_CTRL0) = __BLOCK_CLKGATE | __BLOCK_SFTRST; | 31 | imx233_reset_block(&HW_APBH_CTRL0); |
32 | __REG_CLR(HW_APBX_CTRL0) = __BLOCK_CLKGATE | __BLOCK_SFTRST; | 32 | imx233_reset_block(&HW_APBX_CTRL0); |
33 | } | 33 | } |
34 | 34 | ||
35 | void imx233_dma_reset_channel(unsigned chan) | 35 | void imx233_dma_reset_channel(unsigned chan) |
diff --git a/firmware/target/arm/imx233/dma-imx233.h b/firmware/target/arm/imx233/dma-imx233.h index bb88a746d0..c0727a51e1 100644 --- a/firmware/target/arm/imx233/dma-imx233.h +++ b/firmware/target/arm/imx233/dma-imx233.h | |||
@@ -152,6 +152,9 @@ struct apb_dma_command_t | |||
152 | #define HW_APB_CHx_SEMA__PHORE_BM 0xff0000 | 152 | #define HW_APB_CHx_SEMA__PHORE_BM 0xff0000 |
153 | #define HW_APB_CHx_SEMA__PHORE_BP 16 | 153 | #define HW_APB_CHx_SEMA__PHORE_BP 16 |
154 | 154 | ||
155 | /* A single descriptor cannot transfer more than 2^16 bytes */ | ||
156 | #define IMX233_MAX_SINGLE_DMA_XFER_SIZE (1 << 16) | ||
157 | |||
155 | void imx233_dma_init(void); | 158 | void imx233_dma_init(void); |
156 | void imx233_dma_reset_channel(unsigned chan); | 159 | void imx233_dma_reset_channel(unsigned chan); |
157 | /* only apbh channel have clkgate control */ | 160 | /* only apbh channel have clkgate control */ |