summaryrefslogtreecommitdiff
path: root/chip/ish/dma.c
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2019-05-28 10:58:13 -0600
committerCommit Bot <commit-bot@chromium.org>2019-06-03 21:53:08 +0000
commit2f8b5e86453449c729c1e61262b50467ec29ed33 (patch)
treecde325d5325930023d8468577cba281f7e68bc91 /chip/ish/dma.c
parent9e9c24307deb302ed969b268e97cebfa4061c79c (diff)
downloadchrome-ec-2f8b5e86453449c729c1e61262b50467ec29ed33.tar.gz
ish: remove unused ish_dma_page code
ish_dma_page was intended to be used in the aontaskfw implementation, but we never used it. Remove the unused code. BUG=none BRANCH=none TEST=make buildall -j Change-Id: I33983a4e6c6de082078b8b6b59519fbc095d8022 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1631588 Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'chip/ish/dma.c')
-rw-r--r--chip/ish/dma.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/chip/ish/dma.c b/chip/ish/dma.c
index d73b7410e5..a409dc6ad3 100644
--- a/chip/ish/dma.c
+++ b/chip/ish/dma.c
@@ -183,36 +183,6 @@ int ish_wait_for_dma_done(uint32_t ch)
return dma_poll(DMA_EN_REG_ADDR, 0, DMA_CH_EN_BIT(ch));
}
-static int ish_dma_page_internal(uint32_t dst, uint32_t src, enum dma_mode mode)
-{
- int rc;
- uint32_t eflags = interrupt_lock();
-
- if (!dma_init_called)
- ish_dma_init();
-
- /* Wait for DMA to be free */
- rc = dma_poll(DMA_EN_REG_ADDR, 0,
- DMA_CH_EN_BIT(PAGING_CHAN) | DMA_CH_EN_BIT(KERNEL_CHAN));
-
- if (rc == DMA_RC_OK)
- rc = ish_dma_copy(PAGING_CHAN, dst, src, PAGE_SIZE, mode);
-
- interrupt_unlock(eflags);
- return rc;
-}
-
-/* DMA page between DRAM and SRAM. */
-int ish_dma_page(uint32_t dst, uint32_t src, int page_in)
-{
- int ret = 0;
-
- ret = ish_dma_page_internal(dst, src,
- (page_in ? UMA_TO_SRAM : SRAM_TO_UMA));
-
- return ret;
-}
-
void ish_dma_set_msb(uint32_t chan, uint32_t dst_msb, uint32_t src_msb)
{
uint32_t eflags = interrupt_lock();