diff options
author | Vic Yang <victoryang@chromium.org> | 2014-06-20 17:29:15 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-06-23 21:48:33 +0000 |
commit | 09db229f212a95bc674625895e68670a7aa57c00 (patch) | |
tree | 7b116cdeb5a34efe4ca89bc075b3f868dd32347e /chip | |
parent | a5e93651fb91d8ae38e4f16a1ca7495ae257f2b9 (diff) | |
download | chrome-ec-09db229f212a95bc674625895e68670a7aa57c00.tar.gz |
Make DMA interface chip independent
The common DMA interface should not include chip dependent stuff.
Otherwise we cannot share DMA interface across chips.
BUG=None
TEST=make buildall
BRANCH=None
Change-Id: I9e0d0c0637520c613747110d6c65d3b800e01704
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/205066
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r-- | chip/stm32/registers.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chip/stm32/registers.h b/chip/stm32/registers.h index c4e8abb3fd..f47452de84 100644 --- a/chip/stm32/registers.h +++ b/chip/stm32/registers.h @@ -1130,6 +1130,9 @@ struct stm32_dma_chan { /* Always use stm32_dma_chan_t so volatile keyword is included! */ typedef volatile struct stm32_dma_chan stm32_dma_chan_t; +/* Common code and header file must use this */ +typedef stm32_dma_chan_t dma_chan_t; + /* Registers for the DMA controller */ struct stm32_dma_regs { uint32_t isr; |