diff options
Diffstat (limited to 'chip/ish/dma.c')
-rw-r--r-- | chip/ish/dma.c | 30 |
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(); |