diff options
Diffstat (limited to 'drivers/pwm/pwm-meson.c')
-rw-r--r-- | drivers/pwm/pwm-meson.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/drivers/pwm/pwm-meson.c b/drivers/pwm/pwm-meson.c index e247ab632530..ba748027ecbf 100644 --- a/drivers/pwm/pwm-meson.c +++ b/drivers/pwm/pwm-meson.c | |||
@@ -433,6 +433,24 @@ static const struct meson_pwm_data pwm_axg_ao_data = { | |||
433 | .num_parents = ARRAY_SIZE(pwm_axg_ao_parent_names), | 433 | .num_parents = ARRAY_SIZE(pwm_axg_ao_parent_names), |
434 | }; | 434 | }; |
435 | 435 | ||
436 | static const char * const pwm_g12a_ao_cd_parent_names[] = { | ||
437 | "aoclk81", "xtal", | ||
438 | }; | ||
439 | |||
440 | static const struct meson_pwm_data pwm_g12a_ao_cd_data = { | ||
441 | .parent_names = pwm_g12a_ao_cd_parent_names, | ||
442 | .num_parents = ARRAY_SIZE(pwm_g12a_ao_cd_parent_names), | ||
443 | }; | ||
444 | |||
445 | static const char * const pwm_g12a_ee_parent_names[] = { | ||
446 | "xtal", "hdmi_pll", "fclk_div4", "fclk_div3" | ||
447 | }; | ||
448 | |||
449 | static const struct meson_pwm_data pwm_g12a_ee_data = { | ||
450 | .parent_names = pwm_g12a_ee_parent_names, | ||
451 | .num_parents = ARRAY_SIZE(pwm_g12a_ee_parent_names), | ||
452 | }; | ||
453 | |||
436 | static const struct of_device_id meson_pwm_matches[] = { | 454 | static const struct of_device_id meson_pwm_matches[] = { |
437 | { | 455 | { |
438 | .compatible = "amlogic,meson8b-pwm", | 456 | .compatible = "amlogic,meson8b-pwm", |
@@ -454,6 +472,18 @@ static const struct of_device_id meson_pwm_matches[] = { | |||
454 | .compatible = "amlogic,meson-axg-ao-pwm", | 472 | .compatible = "amlogic,meson-axg-ao-pwm", |
455 | .data = &pwm_axg_ao_data | 473 | .data = &pwm_axg_ao_data |
456 | }, | 474 | }, |
475 | { | ||
476 | .compatible = "amlogic,meson-g12a-ee-pwm", | ||
477 | .data = &pwm_g12a_ee_data | ||
478 | }, | ||
479 | { | ||
480 | .compatible = "amlogic,meson-g12a-ao-pwm-ab", | ||
481 | .data = &pwm_axg_ao_data | ||
482 | }, | ||
483 | { | ||
484 | .compatible = "amlogic,meson-g12a-ao-pwm-cd", | ||
485 | .data = &pwm_g12a_ao_cd_data | ||
486 | }, | ||
457 | {}, | 487 | {}, |
458 | }; | 488 | }; |
459 | MODULE_DEVICE_TABLE(of, meson_pwm_matches); | 489 | MODULE_DEVICE_TABLE(of, meson_pwm_matches); |