]> git.baikalelectronics.ru Git - uboot.git/commit
x86: tangier: pinmux: add API to configure protected pins
authorGeorgii Staroselskii <georgii.staroselskii@emlid.com>
Tue, 11 Sep 2018 10:31:07 +0000 (13:31 +0300)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 17 Sep 2018 09:35:52 +0000 (17:35 +0800)
commit554d93d8b8901653e1d2f9b3d97c7d04352a8db9
tree57f0437dddc32e4049f6d8e4b9ac88737317cf64
parentc426c94e6f5492eaf3c9032933ac5c0fde968a63
x86: tangier: pinmux: add API to configure protected pins

This API is going to be used to configure some pins that are protected
for simple modification.

It's not a comprehensive pinctrl driver but can be turned into one
when we need this in the future. Now it is planned to be used only
in one place. So that's why I decided not to pollute the codebase with a
full-blown pinctrl-merrifield nobody will use.

This driver reads corresponding fields in DT and configures pins
accordingly.

The "protected" flag is used to distinguish configuration of SCU-owned
pins from the ordinary ones.

The code has been adapted from Linux work done by Andy Shevchenko
in pinctrl-merrfifield.c

Signed-off-by: Georgii Staroselskii <georgii.staroselskii@emlid.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
[bmeng: fix build warning]
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/tangier/Makefile
arch/x86/cpu/tangier/pinmux.c [new file with mode: 0644]