X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=drivers%2Fpwm%2Fpwm-sun4i.c;h=b0803f6c64d9200909fdebec0752b2060a436df8;hb=44060abe1dd609d5efa641cce3784777ff5d507f;hp=03a99a53c39e2709247ce64f21629c4ac5181b79;hpb=db06d759d6cf903aeda8c107fd3abd366dd80200;p=cascardo%2Flinux.git 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 = { .npwm = 2, }; +static const struct sun4i_pwm_data sun4i_pwm_data_h3 = { + .has_prescaler_bypass = true, + .has_rdy = true, + .npwm = 1, +}; + static const struct of_device_id sun4i_pwm_dt_ids[] = { { .compatible = "allwinner,sun4i-a10-pwm", @@ -297,6 +303,9 @@ static const struct of_device_id sun4i_pwm_dt_ids[] = { }, { .compatible = "allwinner,sun7i-a20-pwm", .data = &sun4i_pwm_data_a20, + }, { + .compatible = "allwinner,sun8i-h3-pwm", + .data = &sun4i_pwm_data_h3, }, { /* sentinel */ },