mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 09:39:00 +00:00
99545b4bb1
This target adds support for the Allwinner D1 RISC-V based SoCs. - RISC-V single-core T-Head C906 (RV64GCV) - Tensilica HiFi4 DSP - DDR2/DDR3 support - 10/100/1000M ethernet - usual peripherals like USB2, SPI, I2C, PWM, etc. Four boards are supported: - Dongshan Nezha STU - 512Mb RAM - ethernet - LicheePi RV Dock - 512Mb RAM - wireless-only (RTL8723DS) - MangoPi MQ-Pro - 512Mb RAM - there are pads available for an SPI flash - wireless-only (RTL8723DS) - Nezha D1 - 512Mb/1Gb/2Gb RAM - 256Mb NAND flash - ethernet, wireless 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>
27 lines
931 B
Diff
27 lines
931 B
Diff
From 384e2ca3c049fe36f4e679fc76fcc8dfdc9297f9 Mon Sep 17 00:00:00 2001
|
|
From: Samuel Holland <samuel@sholland.org>
|
|
Date: Wed, 27 Apr 2022 19:06:28 -0500
|
|
Subject: [PATCH 051/117] iommu/sun50i: Ensure bypass is disabled
|
|
|
|
The H6 variant of the hardware disables bypass by default. The D1
|
|
variant of the hardware enables bypass for all masters by default.
|
|
|
|
Since the driver expects bypass to be disabled, ensure that is the case.
|
|
|
|
Signed-off-by: Samuel Holland <samuel@sholland.org>
|
|
---
|
|
drivers/iommu/sun50i-iommu.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
--- a/drivers/iommu/sun50i-iommu.c
|
|
+++ b/drivers/iommu/sun50i-iommu.c
|
|
@@ -445,6 +445,8 @@ static int sun50i_iommu_enable(struct su
|
|
|
|
spin_lock_irqsave(&iommu->iommu_lock, flags);
|
|
|
|
+ iommu_write(iommu, IOMMU_BYPASS_REG, 0);
|
|
+
|
|
iommu_write(iommu, IOMMU_TTB_REG, sun50i_domain->dt_dma);
|
|
iommu_write(iommu, IOMMU_TLB_PREFETCH_REG,
|
|
IOMMU_TLB_PREFETCH_MASTER_ENABLE(0) |
|