]> git.dujemihanovic.xyz Git - u-boot.git/commit
pinctrl: single: fix offset management
authorDario Binacchi <dariobin@libero.it>
Sun, 11 Apr 2021 07:39:41 +0000 (09:39 +0200)
committerLokesh Vutla <lokeshvutla@ti.com>
Mon, 12 Apr 2021 05:47:15 +0000 (11:17 +0530)
commit9b884e79a6ac8cededabc3eced318d212a9c8fc3
treefe249106143f7caa8a468a895ab99f7bdf6135ab
parent6719294694bf65c1ec9b0ccd15e204f46eb0d6b0
pinctrl: single: fix offset management

The pinmux configuration DT node of a peripheral does not define a
physical address but an offset. Only by adding it to the base address of
the controller it is possible to calculate the physical address of the
register to be configured. Printing an offset also requires a different
formatting option than a physical address.

Signed-off-by: Dario Binacchi <dariobin@libero.it>
Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
drivers/pinctrl/pinctrl-single.c