diff options
author | George Stark <gnstark@salutedevices.com> | 2024-11-19 15:53:16 +0300 |
---|---|---|
committer | Uwe Kleine-König <ukleinek@kernel.org> | 2025-04-14 08:03:15 +0200 |
commit | dd4d280ac5589fb3e1f333e6dbac4432abff4985 (patch) | |
tree | 5afc655b7a02d6108fdaac97908438d956714948 /tools/perf/scripts/python/gecko.py | |
parent | 8c22e890402a990d712538d6d46245df129cf302 (diff) |
pwm: meson: Support constant and polarity bits
Newer meson PWM IPs support constant and polarity bits. Support them to
correctly implement constant and inverted output levels.
Using constant bit allows to have truly stable low or high output level.
Since hi and low regs internally increment its values by 1 just writing
zero to any of them gives 1 clock count impulse. If constant bit is set
zero value in hi and low regs is not incremented.
Using polarity bit instead of swapping hi and low reg values allows to
correctly identify inversion in .get_state().
Signed-off-by: George Stark <gnstark@salutedevices.com>
Link: https://lore.kernel.org/r/20241119125318.3492261-3-gnstark@salutedevices.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions