0062-pwm-sun8i-v536-Add-support-for-the-Allwinner-D1.patch 979 B

123456789101112131415161718192021222324252627282930313233
  1. From 8bb576d8640fdf896650a4d4a1b2e60254d75eb2 Mon Sep 17 00:00:00 2001
  2. From: Samuel Holland <[email protected]>
  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. Signed-off-by: Samuel Holland <[email protected]>
  6. ---
  7. drivers/pwm/pwm-sun8i-v536.c | 7 +++++++
  8. 1 file changed, 7 insertions(+)
  9. --- a/drivers/pwm/pwm-sun8i-v536.c
  10. +++ b/drivers/pwm/pwm-sun8i-v536.c
  11. @@ -285,6 +285,10 @@ static const struct sun8i_pwm_data sun8i
  12. .npwm = 9,
  13. };
  14. +static const struct sun8i_pwm_data sun20i_pwm_data_c8 = {
  15. + .npwm = 8,
  16. +};
  17. +
  18. static const struct sun8i_pwm_data sun50i_pwm_data_c16 = {
  19. .npwm = 16,
  20. };
  21. @@ -294,6 +298,9 @@ static const struct of_device_id sun8i_p
  22. .compatible = "allwinner,sun8i-v536-pwm",
  23. .data = &sun8i_pwm_data_c9,
  24. }, {
  25. + .compatible = "allwinner,sun20i-d1-pwm",
  26. + .data = &sun20i_pwm_data_c8,
  27. + }, {
  28. .compatible = "allwinner,sun50i-r818-pwm",
  29. .data = &sun50i_pwm_data_c16,
  30. }, {