Skip to content

Commit 5dca8a9

Browse files
geo-starkUwe Kleine-König
authored andcommitted
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 <[email protected]> Reviewed-by: Neil Armstrong <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Uwe Kleine-König <[email protected]>
1 parent 3a44aac commit 5dca8a9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

drivers/pwm/pwm-meson.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,26 +554,36 @@ static const struct meson_pwm_data pwm_gxbb_ao_data = {
554554
static const struct meson_pwm_data pwm_axg_ee_data = {
555555
.parent_names = { "xtal", "fclk_div5", "fclk_div4", "fclk_div3" },
556556
.channels_init = meson_pwm_init_channels_meson8b_legacy,
557+
.has_constant = true,
558+
.has_polarity = true,
557559
};
558560

559561
static const struct meson_pwm_data pwm_axg_ao_data = {
560562
.parent_names = { "xtal", "axg_ao_clk81", "fclk_div4", "fclk_div5" },
561563
.channels_init = meson_pwm_init_channels_meson8b_legacy,
564+
.has_constant = true,
565+
.has_polarity = true,
562566
};
563567

564568
static const struct meson_pwm_data pwm_g12a_ee_data = {
565569
.parent_names = { "xtal", NULL, "fclk_div4", "fclk_div3" },
566570
.channels_init = meson_pwm_init_channels_meson8b_legacy,
571+
.has_constant = true,
572+
.has_polarity = true,
567573
};
568574

569575
static const struct meson_pwm_data pwm_g12a_ao_ab_data = {
570576
.parent_names = { "xtal", "g12a_ao_clk81", "fclk_div4", "fclk_div5" },
571577
.channels_init = meson_pwm_init_channels_meson8b_legacy,
578+
.has_constant = true,
579+
.has_polarity = true,
572580
};
573581

574582
static const struct meson_pwm_data pwm_g12a_ao_cd_data = {
575583
.parent_names = { "xtal", "g12a_ao_clk81", NULL, NULL },
576584
.channels_init = meson_pwm_init_channels_meson8b_legacy,
585+
.has_constant = true,
586+
.has_polarity = true,
577587
};
578588

579589
static const struct meson_pwm_data pwm_meson8_v2_data = {
@@ -582,10 +592,14 @@ static const struct meson_pwm_data pwm_meson8_v2_data = {
582592

583593
static const struct meson_pwm_data pwm_meson_axg_v2_data = {
584594
.channels_init = meson_pwm_init_channels_meson8b_v2,
595+
.has_constant = true,
596+
.has_polarity = true,
585597
};
586598

587599
static const struct meson_pwm_data pwm_s4_data = {
588600
.channels_init = meson_pwm_init_channels_s4,
601+
.has_constant = true,
602+
.has_polarity = true,
589603
};
590604

591605
static const struct of_device_id meson_pwm_matches[] = {

0 commit comments

Comments
 (0)