[PATCH 3/5] mfd: axp20c-i2c: Select designware i2c-bus driver on x86

From: Hans de Goede
Date: Wed Mar 22 2017 - 07:29:58 EST


On x86 the axp288 PMIC provides an ACPI OPRegion handler, which must be
available before other drivers using it are loaded, which can only be
ensured if the mfd, opregion driver and i2c-bus drivers are built in.

The opregion driver is a bool depending on MFD_AXP20X_I2C ensuring that
it will be builtin if the opregion driver is to be enabled, add a
select for the designware-options to ensure those get built in too.

Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx>
---
drivers/mfd/Kconfig | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
index 0c6a967..08f8dcb 100644
--- a/drivers/mfd/Kconfig
+++ b/drivers/mfd/Kconfig
@@ -148,6 +148,8 @@ config MFD_AXP20X_I2C
tristate "X-Powers AXP series PMICs with I2C"
select MFD_AXP20X
select REGMAP_I2C
+ select I2C_DESIGNWARE_PLATFORM if X86
+ select I2C_DESIGNWARE_BAYTRAIL if X86
depends on I2C
help
If you say Y here you get support for the X-Powers AXP series power
--
2.9.3