From 1108fbc7d02f38be3097991ecd4a8a77f056d47f Mon Sep 17 00:00:00 2001 From: SamulKyull Date: Thu, 17 Oct 2024 20:00:31 +0800 Subject: [PATCH] [driver] set clk driver to weak function --- src/drivers/sys-dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/sys-dma.c b/src/drivers/sys-dma.c index dd3e492f..3f6d873f 100644 --- a/src/drivers/sys-dma.c +++ b/src/drivers/sys-dma.c @@ -24,6 +24,7 @@ static dma_source_t dma_channel_source[SUNXI_DMA_MAX]; static dma_desc_t dma_channel_desc[SUNXI_DMA_MAX] __attribute__((aligned(64))); void __attribute__((weak)) sunxi_dma_clk_init() { + uint32_t val; /* dma : mbus clock gating */ // ccu->mbus_gate |= 1 << 0; val = read32(CCU_BASE + CCU_MBUS_MAT_CLK_GATING_REG); @@ -46,7 +47,6 @@ void __attribute__((weak)) sunxi_dma_clk_init() { void dma_init(void) { printk_debug("DMA: init\n"); int i; - uint32_t val; dma_reg_t *const dma_reg = (dma_reg_t *) SUNXI_DMA_BASE; if (dma_init_ok > 0)