x86: pinctrl: Add multi-ACPI control
authorSimon Glass <sjg@chromium.org>
Wed, 8 Jul 2020 03:32:21 +0000 (21:32 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 17 Jul 2020 06:32:24 +0000 (14:32 +0800)
commita9331a3388badf8a4f203d54c238f4e6bc76f247
tree2caba789efef37c299f5ed1f062997731ead9cc1
parent05516e3d47038be98ed9046940e33431c851212b
x86: pinctrl: Add multi-ACPI control

Add a Kconfig to control whether pinctrl is represented as a single ACPI
device or as multiple devices. In the latter case (the default) we should
return the pin number relative to the pinctrl device.

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>
drivers/pinctrl/intel/Kconfig
drivers/pinctrl/intel/pinctrl.c