mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
pwm: sunxi: Add H3 support
H3 PWM controller has same register layout as sun4i driver, so it works by adding H3 specific data. Cc: Thierry Reding <[email protected]> Cc: Rob Herring <[email protected]> Cc: Maxime Ripard <[email protected]> Cc: Alexandre Belloni <[email protected]> Cc: Chen-Yu Tsai <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Signed-off-by: Milo Kim <[email protected]> Acked-by: Chen-Yu Tsai <[email protected]> Reviewed-by: Alexandre Belloni <[email protected]> Acked-by: Rob Herring <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
This commit is contained in:
parent
211ed63075
commit
42ddcf4f9e
2 changed files with 10 additions and 0 deletions
|
|
@ -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 */
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue