Searched hist:f088ab6d4f4ce49d422c220074b7e605f54e2299 (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/pinctrl/meson/ |
H A D | pinctrl-meson.c | diff f088ab6d4f4ce49d422c220074b7e605f54e2299 Thu Jun 18 04:59:22 CEST 2020 Hyeonki Hong <hhk7734@gmail.com> pinctrl: meson: fix drive strength register and bit calculation
If a GPIO bank has greater than 16 pins, PAD_DS_REG is split into two or more registers. However, when register and bit were calculated, the first register defined in the bank was used, and the bit was calculated based on the first pin. This causes problems in setting the driving strength.
The following method was used to solve this problem: A bit is calculated first using predefined strides. Then, If the bit is 32 or more, the register is changed by the quotient of the bit divided by 32. And the bit is set to the remainder.
Signed-off-by: Hyeonki Hong <hhk7734@gmail.com> Link: https://lore.kernel.org/r/20200618025916.GA19368@home-desktop Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
|