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>
41 lines
1.3 KiB
Diff
41 lines
1.3 KiB
Diff
From af01261bf4e334cad158519291e5bc38765c955f Mon Sep 17 00:00:00 2001
|
|
From: Samuel Holland <samuel@sholland.org>
|
|
Date: Sun, 13 Jun 2021 23:53:26 -0500
|
|
Subject: [PATCH 071/117] ASoC: sun4i-spdif: Add support for the D1 variant
|
|
|
|
The D1 variant is similar to the H6 variant, except for its clock setup.
|
|
The clock tree changes impact some register fields on the RX side, but
|
|
those are not yet relevant, because RX is not supported by this driver.
|
|
|
|
Signed-off-by: Samuel Holland <samuel@sholland.org>
|
|
---
|
|
sound/soc/sunxi/sun4i-spdif.c | 10 ++++++++++
|
|
1 file changed, 10 insertions(+)
|
|
|
|
--- a/sound/soc/sunxi/sun4i-spdif.c
|
|
+++ b/sound/soc/sunxi/sun4i-spdif.c
|
|
@@ -556,6 +556,12 @@ static const struct sun4i_spdif_quirks s
|
|
.val_fctl_ftx = SUN4I_SPDIF_FCTL_FTX,
|
|
};
|
|
|
|
+static const struct sun4i_spdif_quirks sun20i_d1_spdif_quirks = {
|
|
+ .tx_clk_name = "tx",
|
|
+ .reg_dac_txdata = SUN8I_SPDIF_TXFIFO,
|
|
+ .val_fctl_ftx = SUN50I_H6_SPDIF_FCTL_FTX,
|
|
+};
|
|
+
|
|
static const struct sun4i_spdif_quirks sun50i_h6_spdif_quirks = {
|
|
.tx_clk_name = "spdif",
|
|
.reg_dac_txdata = SUN8I_SPDIF_TXFIFO,
|
|
@@ -576,6 +582,10 @@ static const struct of_device_id sun4i_s
|
|
.data = &sun8i_h3_spdif_quirks,
|
|
},
|
|
{
|
|
+ .compatible = "allwinner,sun20i-d1-spdif",
|
|
+ .data = &sun20i_d1_spdif_quirks,
|
|
+ },
|
|
+ {
|
|
.compatible = "allwinner,sun50i-h6-spdif",
|
|
.data = &sun50i_h6_spdif_quirks,
|
|
},
|