Skip to content

Commit

Permalink
[driver] set clk driver to weak function
Browse files Browse the repository at this point in the history
  • Loading branch information
SamulKyull authored and SamulKyull committed Oct 17, 2024
1 parent a0c353f commit 1108fbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/sys-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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)
Expand Down

0 comments on commit 1108fbc

Please sign in to comment.