diff options
author | Trevor Gamblin <tgamblin@baylibre.com> | 2024-07-11 14:57:42 +0200 |
---|---|---|
committer | Uwe Kleine-König <ukleinek@kernel.org> | 2024-07-11 15:44:40 +0200 |
commit | 240b129d597cb8a8880eb3a381ff10eb98ca0c07 (patch) | |
tree | dbf5cbdf0755b85d1cce822f9e8269ff880ac17f | |
parent | dt-bindings: pwm: at91: Add sama7d65 compatible string (diff) | |
download | linux-240b129d597cb8a8880eb3a381ff10eb98ca0c07.tar.xz linux-240b129d597cb8a8880eb3a381ff10eb98ca0c07.zip |
pwm: axi-pwmgen: add .max_register to regmap
This was missed in the basic driver and is useful for debug, so add it.
Example regmap output before the patch:
|root@zed-tg:~# cat /sys/kernel/debug/regmap/44a60000.pwm/registers
|0: 00020100
And with it:
|root@zed-tg:~# cat /sys/kernel/debug/regmap/44a60000.pwm/registers
|00: 00020100
|04: 00000000
|08: 00000000
|0c: 601a3471
|10: 00000000
|14: 00000002
|18: 00000001
|1c: 00000000
|...
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Link: https://lore.kernel.org/r/20240711125743.3956935-1-tgamblin@baylibre.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
-rw-r--r-- | drivers/pwm/pwm-axi-pwmgen.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, |