* [PATCH] pwm: axi-pwmgen: add .max_register to regmap
@ 2024-07-11 11:28 Trevor Gamblin
2024-07-11 11:28 ` Trevor Gamblin
0 siblings, 1 reply; 2+ messages in thread
From: Trevor Gamblin @ 2024-07-11 11:28 UTC (permalink / raw)
To: Michael Hennerich, Nuno Sá, Uwe Kleine-König
Cc: Trevor Gamblin, linux-pwm, linux-kernel
This was missed in the basic driver and is useful for debug, so add it.
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
---
drivers/pwm/pwm-axi-pwmgen.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/pwm/pwm-axi-pwmgen.c b/drivers/pwm/pwm-axi-pwmgen.c
index aac4f395497b..3ad60edf20a5 100644
--- a/drivers/pwm/pwm-axi-pwmgen.c
+++ b/drivers/pwm/pwm-axi-pwmgen.c
@@ -51,6 +51,7 @@ static const struct regmap_config axi_pwmgen_regmap_config = {
.reg_bits = 32,
.reg_stride = 4,
.val_bits = 32,
+ .max_register = 0xFC,
};
static int axi_pwmgen_apply(struct pwm_chip *chip, struct pwm_device *pwm,
--
2.45.2
^ permalink raw reply [flat|nested] 2+ messages in thread* [PATCH] pwm: axi-pwmgen: add .max_register to regmap
2024-07-11 11:28 [PATCH] pwm: axi-pwmgen: add .max_register to regmap Trevor Gamblin
@ 2024-07-11 11:28 ` Trevor Gamblin
0 siblings, 0 replies; 2+ messages in thread
From: Trevor Gamblin @ 2024-07-11 11:28 UTC (permalink / raw)
To: Michael Hennerich, Nuno Sá, Uwe Kleine-König
Cc: Trevor Gamblin, linux-pwm, linux-kernel
This was missed in the basic driver and is useful for debug, so add it.
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
---
drivers/pwm/pwm-axi-pwmgen.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/pwm/pwm-axi-pwmgen.c b/drivers/pwm/pwm-axi-pwmgen.c
index aac4f395497b..3ad60edf20a5 100644
--- a/drivers/pwm/pwm-axi-pwmgen.c
+++ b/drivers/pwm/pwm-axi-pwmgen.c
@@ -51,6 +51,7 @@ static const struct regmap_config axi_pwmgen_regmap_config = {
.reg_bits = 32,
.reg_stride = 4,
.val_bits = 32,
+ .max_register = 0xFC,
};
static int axi_pwmgen_apply(struct pwm_chip *chip, struct pwm_device *pwm,
--
2.45.2
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-07-11 11:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-11 11:28 [PATCH] pwm: axi-pwmgen: add .max_register to regmap Trevor Gamblin
2024-07-11 11:28 ` Trevor Gamblin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®