openwrt-mirror/target/linux/d1/patches-6.1/0062-pwm-sun8i-v536-Add-support-for-the-Allwinner-D1.patch
Zoltan HERPAI 766570d60b kernel/d1: Restore kernel files for v6.1
This is an automatically generated commit which aids following Kernel patch
history, as git will see the move and copy as a rename thus defeating the
purpose.

For the original discussion see:
https://lists.openwrt.org/pipermail/openwrt-devel/2023-October/041673.html

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2024-05-29 17:56:28 +02:00

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,
}, {