summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/dma-imx233.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-05-19 13:30:02 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2012-05-19 16:10:52 +0200
commitbbbfd9f3d389a2d6f9049802ddd5f9b11870bc7a (patch)
treed364e1e942e0ecfa7e4a0ba998724570ee44af3b /firmware/target/arm/imx233/dma-imx233.h
parentd57e1e048ebb6a9b2eb005ffda6f551023b54b10 (diff)
downloadrockbox-bbbfd9f3d389a2d6f9049802ddd5f9b11870bc7a.tar.gz
rockbox-bbbfd9f3d389a2d6f9049802ddd5f9b11870bc7a.tar.bz2
rockbox-bbbfd9f3d389a2d6f9049802ddd5f9b11870bc7a.zip
imx233: add dma channel defines
Change-Id: I462cfa338ded85aca4bb00ec91f144bb17136dbe
Diffstat (limited to 'firmware/target/arm/imx233/dma-imx233.h')
-rw-r--r--firmware/target/arm/imx233/dma-imx233.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/dma-imx233.h b/firmware/target/arm/imx233/dma-imx233.h
index 05baea989c..fe220dc5f7 100644
--- a/firmware/target/arm/imx233/dma-imx233.h
+++ b/firmware/target/arm/imx233/dma-imx233.h
@@ -36,6 +36,7 @@
/* APHB channels */
#define HW_APBH_SSP(ssp) ssp
+#define HW_APBH_NAND(dev) (4 + (ssp))
#define HW_APBH_CTRL0 (*(volatile uint32_t *)(HW_APBH_BASE + 0x0))
#define HW_APBH_CTRL0__FREEZE_CHANNEL(i) (1 << (i))
@@ -160,6 +161,7 @@ struct imx233_dma_info_t
#define APB_AUDIO_ADC APBX_DMA_CHANNEL(HW_APBX_AUDIO_ADC)
#define APB_AUDIO_DAC APBX_DMA_CHANNEL(HW_APBX_AUDIO_DAC)
#define APB_I2C APBX_DMA_CHANNEL(HW_APBX_I2C)
+#define APB_NAND(dev) APBH_DMA_CHANNEL(HW_APBH_NAND(dev))
#define HW_APB_CHx_CMD__COMMAND_BM 0x3
#define HW_APB_CHx_CMD__COMMAND__NO_XFER 0