Skip to contentSkip to conversation

gpio: dwapb: enable for Quark

PATCH Superseded Andy Shevchenko 1 participant 2 messages Mar 5, 2015 – Mar 9, 2015 GPIO

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 gpio: dwapb: enable for Quark

The Intel Quark SoC contains the DW GPIO on board. While fixing the build error the commit 1972c97db5b0 (gpio: dwapb: fix compile errors) disables the possibility to build the driver on X86, i.e. Intel Quark.

The patch reenables it for Intel Quark as well.

Since we have Intel Quark SoC introduced in 4.0-rc1 I would like to make this fix available there as well, though the actual MFD driver [1] is not yet applied.

[1] https://lkml.org/lkml/2015/2/1/217

Fixes 1972c97db5b0 (gpio: dwapb: fix compile errors)

---
Changelog v2:
- fix typo of parens location

 drivers/gpio/Kconfig | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpio/Kconfig +1 -2
index c1e2ca3..6ba5464 100644
@@ -148,8 +148,7 @@ config GPIO_GENERIC_PLATFORM
 
 config GPIO_DWAPB
 	tristate "Synopsys DesignWare APB GPIO driver"
-	depends on ARM
-	depends on OF_GPIO
+	depends on (ARM && OF_GPIO) || X86_INTEL_QUARK
 	select GPIO_GENERIC
 	select GENERIC_IRQ_CHIP
 	help
Signature · 1 line
2.1.4
#1 lore raw
Quoted 9 lines · Andy Shevchenko

The Intel Quark SoC contains the DW GPIO on board. While fixing the build error the commit 1972c97db5b0 (gpio: dwapb: fix compile errors) disables the possibility to build the driver on X86, i.e. Intel Quark.

The patch reenables it for Intel Quark as well.

Since we have Intel Quark SoC introduced in 4.0-rc1 I would like to make this fix available there as well, though the actual MFD driver [1] is not yet applied.

An update: the patch was applied by Lee. So, it would be nice to have this one applied at least for future 4.1-rc1 if no objections.

Quoted 25 lines

[1] https://lkml.org/lkml/2015/2/1/217

Fixes 1972c97db5b0 (gpio: dwapb: fix compile errors)

---
Changelog v2:
- fix typo of parens location

 drivers/gpio/Kconfig | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpio/Kconfig +1 -2
index c1e2ca3..6ba5464 100644
@@ -148,8 +148,7 @@ config GPIO_GENERIC_PLATFORM
 
 config GPIO_DWAPB
 	tristate "Synopsys DesignWare APB GPIO driver"
-	depends on ARM
-	depends on OF_GPIO
+	depends on (ARM && OF_GPIO) || X86_INTEL_QUARK
 	select GPIO_GENERIC
 	select GENERIC_IRQ_CHIP
 	help
Signature · 2 lines
Andy Shevchenko <[email protected]>
Intel Finland Oy