mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 07:22:33 +00:00
4070e2a64c
This target adds support for the StarFive JH7100 and JH7110 SoCs, based on 6.1, as well as a couple boards equipped with these. Specifications: SoCs: JH7100: - StarFive JH7100 dual-core RISC-V (U74, RC64GC) - additional monitoring (S7) and control (E24) cores - 2Mb L2 cache JH7110: - StarFive JH7110 quad-core RISC-V (U74, RV64GC) - additional monitoring (S7) and control (E24) cores - 2Mb L2 cache Boards: VisionFive1: - JH7100 @ 1GHz - Memory: 8Gb LPDDR4 - 4x USB3.0 - 1x GBit ethernet - AMPak 6236 wifi / bluetooth - audio - powered via USB-C VisionFive2: - JH7110 @ 1.5GHz - Memory: 2/4/8Gb DDR4 - 2x Gbit ethernet - 2x USB3.0 / 2x USB2.0 - eMMC / SDIO - various multimedia input/outputs (MIPI CSI, HDMI, audio) - M.2 key M slot - PoE support - powered via USB-C Installation: Standard SD-card installation via dd-ing the generated image to an SD-card of at least 256Mb. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
30 lines
1.2 KiB
Diff
30 lines
1.2 KiB
Diff
From 92c2dc96af79b2f181cc97157ce3ef2be5b48f4c Mon Sep 17 00:00:00 2001
|
|
From: Walker Chen <walker.chen@starfivetech.com>
|
|
Date: Wed, 22 Mar 2023 17:48:19 +0800
|
|
Subject: [PATCH 113/122] dmaengine: dw-axi-dmac: Increase polling time to DMA
|
|
transmission completion status
|
|
|
|
The bit DMAC_CHEN[0] is automatically cleared by hardware to disable the
|
|
channel after the last AMBA transfer of the DMA transfer to the
|
|
destination has completed. Software can therefore poll this bit to
|
|
determine when this channel is free for a new DMA transfer.
|
|
This time requires at least 40 milliseconds on JH7110 SoC, otherwise an
|
|
error message 'failed to stop' will be reported.
|
|
|
|
Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
|
|
---
|
|
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
|
|
+++ b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
|
|
@@ -1147,7 +1147,7 @@ static int dma_chan_terminate_all(struct
|
|
axi_chan_disable(chan);
|
|
|
|
ret = readl_poll_timeout_atomic(chan->chip->regs + DMAC_CHEN, val,
|
|
- !(val & chan_active), 1000, 10000);
|
|
+ !(val & chan_active), 1000, 50000);
|
|
if (ret == -ETIMEDOUT)
|
|
dev_warn(dchan2dev(dchan),
|
|
"%s failed to stop\n", axi_chan_name(chan));
|