aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-sun4i.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pwm/pwm-sun4i.c')
-rw-r--r--drivers/pwm/pwm-sun4i.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/pwm/pwm-sun4i.c b/drivers/pwm/pwm-sun4i.c
index 03a99a53c39e..b0803f6c64d9 100644
--- a/drivers/pwm/pwm-sun4i.c
+++ b/drivers/pwm/pwm-sun4i.c
@@ -284,6 +284,12 @@ static const struct sun4i_pwm_data sun4i_pwm_data_a20 = {
284 .npwm = 2, 284 .npwm = 2,
285}; 285};
286 286
287static const struct sun4i_pwm_data sun4i_pwm_data_h3 = {
288 .has_prescaler_bypass = true,
289 .has_rdy = true,
290 .npwm = 1,
291};
292
287static const struct of_device_id sun4i_pwm_dt_ids[] = { 293static const struct of_device_id sun4i_pwm_dt_ids[] = {
288 { 294 {
289 .compatible = "allwinner,sun4i-a10-pwm", 295 .compatible = "allwinner,sun4i-a10-pwm",
@@ -298,6 +304,9 @@ static const struct of_device_id sun4i_pwm_dt_ids[] = {
298 .compatible = "allwinner,sun7i-a20-pwm", 304 .compatible = "allwinner,sun7i-a20-pwm",
299 .data = &sun4i_pwm_data_a20, 305 .data = &sun4i_pwm_data_a20,
300 }, { 306 }, {
307 .compatible = "allwinner,sun8i-h3-pwm",
308 .data = &sun4i_pwm_data_h3,
309 }, {
301 /* sentinel */ 310 /* sentinel */
302 }, 311 },
303}; 312};