diff options
author | Théo Lebrun <[email protected]> | 2024-02-28 12:28:21 +0100 |
---|---|---|
committer | Linus Walleij <[email protected]> | 2024-02-29 10:36:20 +0100 |
commit | 50bc2a4953cceb70f90d37fd513dd1231367aa4d (patch) | |
tree | 4e8b47bd64f90245a3ec0b5ed199275cb7a410f9 /tools/perf/util/trace-event-scripting.c | |
parent | 8d74c3dc8f99d9867254004ed49508c13295cacd (diff) |
gpio: nomadik: handle variadic GPIO count
Read the "ngpios" property to determine the number of GPIOs for a bank.
If not available, fallback to NMK_GPIO_PER_CHIP ie 32 ie the current
behavior.
The IP block always supports 32 GPIOs, but platforms can expose a lesser
amount. The Mobileye EyeQ5 is in this case; one bank is 29 GPIOs and
the other is 23.
Reviewed-by: Linus Walleij <[email protected]>
Signed-off-by: Théo Lebrun <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions