]> git.dujemihanovic.xyz Git - u-boot.git/commit
x86: pinctrl: Add a way to get the pinctrl reg address
authorSimon Glass <sjg@chromium.org>
Wed, 8 Jul 2020 03:32:19 +0000 (21:32 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 17 Jul 2020 06:32:24 +0000 (14:32 +0800)
commit4916f4586eab7941f38a89e4dacd103af1c4105f
tree0abebe14dc6594fdeffc71617026250afdc88501
parent54bcca29737f8de2598b4a3f8f503290bd49eec0
x86: pinctrl: Add a way to get the pinctrl reg address

At present we can query the offset of a pinctrl register within the p2sb.
For ACPI we need to get the actual address of the register. Add a function
to handle this and rename the old one to more accurately reflect its
purpose.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
arch/x86/include/asm/intel_pinctrl.h
drivers/gpio/intel_gpio.c
drivers/misc/p2sb-uclass.c
drivers/pinctrl/intel/pinctrl.c
include/p2sb.h