gpio: sch: Add support for Intel Quark X1000 SoC
Intel Quark X1000 provides a total of 16 GPIOs. The GPIOs are split between the legacy I/O bridge and the GPIO controller. GPIO-SCH is the GPIO pins on legacy bridge for Intel Quark SoC. Intel Quark X1000 has 2 GPIOs powered by the core power well and 6 from the suspend power well. This piece of work is derived from Dan O'Donovan's initial work for Quark X1000 enabling. Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> Reviewed-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:

committad av
Linus Walleij

förälder
ae9ca493ee
incheckning
9202149025
@@ -230,6 +230,12 @@ static int sch_gpio_probe(struct platform_device *pdev)
|
||||
sch->chip.ngpio = 30;
|
||||
break;
|
||||
|
||||
case PCI_DEVICE_ID_INTEL_QUARK_X1000_ILB:
|
||||
sch->core_base = 0;
|
||||
sch->resume_base = 2;
|
||||
sch->chip.ngpio = 8;
|
||||
break;
|
||||
|
||||
default:
|
||||
return -ENODEV;
|
||||
}
|
||||
|
Referens i nytt ärende
Block a user