]> git.dujemihanovic.xyz Git - u-boot.git/commit
pinctrl: single: add register access functions
authorDario Binacchi <dariobin@libero.it>
Sun, 11 Apr 2021 07:39:46 +0000 (09:39 +0200)
committerLokesh Vutla <lokeshvutla@ti.com>
Mon, 12 Apr 2021 05:47:15 +0000 (11:17 +0530)
commit180531fc2f95ea6801cb7248853b9c3d0d0fafe3
treeeffaef68ddbdb5aa8c520d26799cae4402efcb46
parentd85b93e80bb285fd380a8bcb4c4b118d4b5f7b77
pinctrl: single: add register access functions

The configuration of pinmux registers was implemented with duplicate
code which can be removed by adding two functions for read/write access.
Access to 8-bit registers has also been added.

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