1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-02-13 21:19:30 +01:00
Files
u-boot-megous/drivers
Jonas Karlman 412b9cd5ee gpio: rockchip: Use pinctrl pin offset to get_gpio_mux()
Use the pinctrl pin offset to get_gpio_mux() to remove the bank num
dependency and instead only use the bank num to assign a bank name.

Most Rockchip SoCs use all 32 pins of each gpio controller, meaning the
pinctrl pin offset typically is aligned to 32.

However, for gpio0 on RK3288 only 24 pins are used meaning the pinctrl
pin offset start at pin 24 for gpio1. Use DIV_ROUND_UP to get the 32 pin
aligned bank num.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2024-10-08 15:41:09 +02:00
..
2024-09-13 17:41:18 +02:00
2024-06-24 13:34:52 -06:00
2023-11-07 14:50:51 -05:00
2024-04-26 08:28:35 +03:00
2024-07-31 16:51:54 +02:00