pinctrl: single: add get_pin_muxing operation
authorDario Binacchi <dariobin@libero.it>
Sun, 11 Apr 2021 07:39:49 +0000 (09:39 +0200)
committerLokesh Vutla <lokeshvutla@ti.com>
Mon, 12 Apr 2021 05:47:15 +0000 (11:17 +0530)
commit76d470de1a3c323823f5c4096a797e366cd225b0
tree9a7b879ee9974a6e915268b23656402f76bf1c47
parent0b12162910ddcb2debe3f953e8993354afba45d7
pinctrl: single: add get_pin_muxing operation

It allows to display the muxing of a given pin. Inspired by more recent
versions of the Linux driver, in addition to the address and the value
of the configuration register I added the pin function retrieved from
the DT. In doing so, the information displayed does not depend on the
platform, being a generic type driver, and it can be useful for debug
purposes.

Signed-off-by: Dario Binacchi <dariobin@libero.it>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/pinctrl/pinctrl-single.c