From 4bcab255868694cd402899175b605180d56685cb Mon Sep 17 00:00:00 2001 From: SamulKyull Date: Wed, 5 Jun 2024 22:13:10 +0800 Subject: [PATCH 1/2] [driver] move DMA: init to debug --- board/avaota-a1/board.c | 2 +- src/drivers/sys-dma.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/board/avaota-a1/board.c b/board/avaota-a1/board.c index e14d8f7a..96c25bd0 100644 --- a/board/avaota-a1/board.c +++ b/board/avaota-a1/board.c @@ -111,7 +111,7 @@ enum dram_training_type { }; const uint32_t dram_para[32] = { - 1200, + 1600, 0x8, 0x7070707, 0xd0d0d0d, diff --git a/src/drivers/sys-dma.c b/src/drivers/sys-dma.c index 35b747d3..414a869b 100644 --- a/src/drivers/sys-dma.c +++ b/src/drivers/sys-dma.c @@ -24,7 +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 dma_init(void) { - printk_info("DMA: init\n"); + printk_debug("DMA: init\n"); int i; uint32_t val; dma_reg_t *const dma_reg = (dma_reg_t *) SUNXI_DMA_BASE; From 3327202c56d2644e6c38ec98e71ea4b77bf6ccd5 Mon Sep 17 00:00:00 2001 From: SamulKyull Date: Wed, 5 Jun 2024 22:14:59 +0800 Subject: [PATCH 2/2] [driver] move DMA: init to debug --- board/avaota-a1/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/avaota-a1/board.c b/board/avaota-a1/board.c index 96c25bd0..e14d8f7a 100644 --- a/board/avaota-a1/board.c +++ b/board/avaota-a1/board.c @@ -111,7 +111,7 @@ enum dram_training_type { }; const uint32_t dram_para[32] = { - 1600, + 1200, 0x8, 0x7070707, 0xd0d0d0d,