commit | 3c4549771dd0352e893a0bc9d2344cd8ecd8033d | [log] [tgz] |
---|---|---|
author | Johan Jonker <jbx6244@gmail.com> | Sun Mar 19 16:02:18 2023 +0100 |
committer | Kever Yang <kever.yang@rock-chips.com> | Fri Apr 21 15:16:01 2023 +0800 |
tree | 867e91c2dc9353e32418ac63c30ab872467b219b | |
parent | ba607e2b9a6264ffd0528c1b5b516251d7e7cf2d [diff] |
rockchip: gpio: rk_gpio: use ROCKCHIP_GPIOS_PER_BANK as divider The current divider to calculate the bank ID can change. Given the Rockchip TRM not all gpio-banks have 32 pins per bank. The "gpio-ranges" syntax allows multiple items with variable number of pins. Use a constant ROCKCHIP_GPIOS_PER_BANK as fixed divider. Signed-off-by: Johan Jonker <jbx6244@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>