]> git.baikalelectronics.ru Git - uboot.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)
commitff8cbbea9dc455fdb2b27f90def01e409e8a4530
tree0abebe14dc6594fdeffc71617026250afdc88501
parentd00b1f0dbe57a26ee3fcb587ef85bf1512cd70a6
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