Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: Add Intel Centerton support to gpio-sch

This patch adds the Intel Centerton processor device ID for GPIO.
The device ID is defined in include/linux/pci_ids.h

Signed-off-by: Seth Heasley <seth.heasley@intel.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

authored by

Seth Heasley and committed by
Samuel Ortiz
77820ffa 1fe17a24

+14 -3
+6 -3
drivers/gpio/Kconfig
··· 170 170 Say yes here to support the NEC VR4100 series General-purpose I/O Uint 171 171 172 172 config GPIO_SCH 173 - tristate "Intel SCH/TunnelCreek GPIO" 173 + tristate "Intel SCH/TunnelCreek/Centerton GPIO" 174 174 depends on PCI && X86 175 175 select MFD_CORE 176 176 select LPC_SCH 177 177 help 178 - Say yes here to support GPIO interface on Intel Poulsbo SCH 179 - or Intel Tunnel Creek processor. 178 + Say yes here to support GPIO interface on Intel Poulsbo SCH, 179 + Intel Tunnel Creek processor or Intel Centerton processor. 180 180 The Intel SCH contains a total of 14 GPIO pins. Ten GPIOs are 181 181 powered by the core power rail and are turned off during sleep 182 182 modes (S3 and higher). The remaining four GPIOs are powered by ··· 185 185 system from the Suspend-to-RAM state. 186 186 The Intel Tunnel Creek processor has 5 GPIOs powered by the 187 187 core power rail and 9 from suspend power supply. 188 + The Intel Centerton processor has a total of 30 GPIO pins. 189 + Twenty-one are powered by the core power rail and 9 from the 190 + suspend power supply. 188 191 189 192 config GPIO_ICH 190 193 tristate "Intel ICH GPIO"
+8
drivers/gpio/gpio-sch.c
··· 232 232 sch_gpio_resume.ngpio = 9; 233 233 break; 234 234 235 + case PCI_DEVICE_ID_INTEL_CENTERTON_ILB: 236 + sch_gpio_core.base = 0; 237 + sch_gpio_core.ngpio = 21; 238 + 239 + sch_gpio_resume.base = 21; 240 + sch_gpio_resume.ngpio = 9; 241 + break; 242 + 235 243 default: 236 244 return -ENODEV; 237 245 }