Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

pwm: meson: Enable constant and polarity features for g12, axg, s4

g12, axg and s4 SoC families support constant and polarity bits
so enable those features in corresponding chip data structs.

Signed-off-by: George Stark <gnstark@salutedevices.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20241119125318.3492261-5-gnstark@salutedevices.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>

authored by

George Stark and committed by
Uwe Kleine-König
5dca8a93 3a44aacf

+14
+14
drivers/pwm/pwm-meson.c
··· 554 554 static const struct meson_pwm_data pwm_axg_ee_data = { 555 555 .parent_names = { "xtal", "fclk_div5", "fclk_div4", "fclk_div3" }, 556 556 .channels_init = meson_pwm_init_channels_meson8b_legacy, 557 + .has_constant = true, 558 + .has_polarity = true, 557 559 }; 558 560 559 561 static const struct meson_pwm_data pwm_axg_ao_data = { 560 562 .parent_names = { "xtal", "axg_ao_clk81", "fclk_div4", "fclk_div5" }, 561 563 .channels_init = meson_pwm_init_channels_meson8b_legacy, 564 + .has_constant = true, 565 + .has_polarity = true, 562 566 }; 563 567 564 568 static const struct meson_pwm_data pwm_g12a_ee_data = { 565 569 .parent_names = { "xtal", NULL, "fclk_div4", "fclk_div3" }, 566 570 .channels_init = meson_pwm_init_channels_meson8b_legacy, 571 + .has_constant = true, 572 + .has_polarity = true, 567 573 }; 568 574 569 575 static const struct meson_pwm_data pwm_g12a_ao_ab_data = { 570 576 .parent_names = { "xtal", "g12a_ao_clk81", "fclk_div4", "fclk_div5" }, 571 577 .channels_init = meson_pwm_init_channels_meson8b_legacy, 578 + .has_constant = true, 579 + .has_polarity = true, 572 580 }; 573 581 574 582 static const struct meson_pwm_data pwm_g12a_ao_cd_data = { 575 583 .parent_names = { "xtal", "g12a_ao_clk81", NULL, NULL }, 576 584 .channels_init = meson_pwm_init_channels_meson8b_legacy, 585 + .has_constant = true, 586 + .has_polarity = true, 577 587 }; 578 588 579 589 static const struct meson_pwm_data pwm_meson8_v2_data = { ··· 592 582 593 583 static const struct meson_pwm_data pwm_meson_axg_v2_data = { 594 584 .channels_init = meson_pwm_init_channels_meson8b_v2, 585 + .has_constant = true, 586 + .has_polarity = true, 595 587 }; 596 588 597 589 static const struct meson_pwm_data pwm_s4_data = { 598 590 .channels_init = meson_pwm_init_channels_s4, 591 + .has_constant = true, 592 + .has_polarity = true, 599 593 }; 600 594 601 595 static const struct of_device_id meson_pwm_matches[] = {