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>
34 lines
979 B
Diff
34 lines
979 B
Diff
From 8bb576d8640fdf896650a4d4a1b2e60254d75eb2 Mon Sep 17 00:00:00 2001
|
|
From: Samuel Holland <samuel@sholland.org>
|
|
Date: Sun, 6 Jun 2021 10:56:25 -0500
|
|
Subject: [PATCH 062/117] pwm: sun8i-v536: Add support for the Allwinner D1
|
|
|
|
Signed-off-by: Samuel Holland <samuel@sholland.org>
|
|
---
|
|
drivers/pwm/pwm-sun8i-v536.c | 7 +++++++
|
|
1 file changed, 7 insertions(+)
|
|
|
|
--- a/drivers/pwm/pwm-sun8i-v536.c
|
|
+++ b/drivers/pwm/pwm-sun8i-v536.c
|
|
@@ -285,6 +285,10 @@ static const struct sun8i_pwm_data sun8i
|
|
.npwm = 9,
|
|
};
|
|
|
|
+static const struct sun8i_pwm_data sun20i_pwm_data_c8 = {
|
|
+ .npwm = 8,
|
|
+};
|
|
+
|
|
static const struct sun8i_pwm_data sun50i_pwm_data_c16 = {
|
|
.npwm = 16,
|
|
};
|
|
@@ -294,6 +298,9 @@ static const struct of_device_id sun8i_p
|
|
.compatible = "allwinner,sun8i-v536-pwm",
|
|
.data = &sun8i_pwm_data_c9,
|
|
}, {
|
|
+ .compatible = "allwinner,sun20i-d1-pwm",
|
|
+ .data = &sun20i_pwm_data_c8,
|
|
+ }, {
|
|
.compatible = "allwinner,sun50i-r818-pwm",
|
|
.data = &sun50i_pwm_data_c16,
|
|
}, {
|