d1: add new target
[openwrt/staging/mans0n.git] / target / linux / d1 / patches-6.1 / 0062-pwm-sun8i-v536-Add-support-for-the-Allwinner-D1.patch
1 From 8bb576d8640fdf896650a4d4a1b2e60254d75eb2 Mon Sep 17 00:00:00 2001
2 From: Samuel Holland <samuel@sholland.org>
3 Date: Sun, 6 Jun 2021 10:56:25 -0500
4 Subject: [PATCH 062/117] pwm: sun8i-v536: Add support for the Allwinner D1
5
6 Signed-off-by: Samuel Holland <samuel@sholland.org>
7 ---
8 drivers/pwm/pwm-sun8i-v536.c | 7 +++++++
9 1 file changed, 7 insertions(+)
10
11 --- a/drivers/pwm/pwm-sun8i-v536.c
12 +++ b/drivers/pwm/pwm-sun8i-v536.c
13 @@ -285,6 +285,10 @@ static const struct sun8i_pwm_data sun8i
14 .npwm = 9,
15 };
16
17 +static const struct sun8i_pwm_data sun20i_pwm_data_c8 = {
18 + .npwm = 8,
19 +};
20 +
21 static const struct sun8i_pwm_data sun50i_pwm_data_c16 = {
22 .npwm = 16,
23 };
24 @@ -294,6 +298,9 @@ static const struct of_device_id sun8i_p
25 .compatible = "allwinner,sun8i-v536-pwm",
26 .data = &sun8i_pwm_data_c9,
27 }, {
28 + .compatible = "allwinner,sun20i-d1-pwm",
29 + .data = &sun20i_pwm_data_c8,
30 + }, {
31 .compatible = "allwinner,sun50i-r818-pwm",
32 .data = &sun50i_pwm_data_c16,
33 }, {