From 195ea083363679d6cedb97f54863a7ecea47529c Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Fri, 23 Mar 2012 12:39:52 +0800 Subject: [PATCH] Add Panther Point to the list of gpio controllers The nm10 gpio driver is being modified to recognize the Panther Point LPC device as one of valid GPIO controllers. BUG=chrome-os-partner:8612 TEST=manual . build the new kernel . observe that the gpio driver gets installed: localhost ~ # dmesg | grep gpio [ 7.020200] nm10_gpio version 0.04 built on Mar 22 2012 at 20:47:08 [ 7.020220] gpiochip_find_base: found new base at 160 . enable the write protect GPIO (#57) localhost ~ # echo 217 > /sys/class/gpio/export . examine its value localhost ~ # cat /sys/class/gpio/gpio217/value 0 . short the pins and examine the value again localhost ~ # cat /sys/class/gpio/gpio217/value 1 . observe value change when the pins status changes Change-Id: Idf354a64d5b964a37ee72b8e14fcedd3aab83654 Signed-off-by: Vadim Bendebury Reviewed-on: https://gerrit.chromium.org/gerrit/18928 --- drivers/gpio/nm10_gpio.c | 2 ++ include/linux/pci_ids.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/gpio/nm10_gpio.c b/drivers/gpio/nm10_gpio.c index 870d2e75fe73..210247f8bb70 100644 --- a/drivers/gpio/nm10_gpio.c +++ b/drivers/gpio/nm10_gpio.c @@ -389,6 +389,8 @@ static struct pci_device_id nm10_gpio_ids[] = { PCI_DEVICE_ID_INTEL_COUGARPOINT_LPC_C206)}, {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_COUGARPOINT_LPC_H61)}, + {PCI_DEVICE(PCI_VENDOR_ID_INTEL, + PCI_DEVICE_ID_INTEL_PANTHERPOINT_LPC_C216)}, {0,} }; diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index 1a7809efb7ba..9015f60a1e58 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@ -2594,6 +2594,7 @@ #define PCI_DEVICE_ID_INTEL_PATSBURG_LPC_1 0x1d41 #define PCI_DEVICE_ID_INTEL_PANTHERPOINT_XHCI 0x1e31 #define PCI_DEVICE_ID_INTEL_PANTHERPOINT_LPC_MIN 0x1e40 +#define PCI_DEVICE_ID_INTEL_PANTHERPOINT_LPC_C216 0x1e55 #define PCI_DEVICE_ID_INTEL_PANTHERPOINT_LPC_MAX 0x1e5f #define PCI_DEVICE_ID_INTEL_DH89XXCC_LPC_MIN 0x2310 #define PCI_DEVICE_ID_INTEL_DH89XXCC_LPC_MAX 0x231f