Skip to content

Commit

Permalink
Add Panther Point to the list of gpio controllers
Browse files Browse the repository at this point in the history
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 (hardkernel#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 <vbendeb@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/18928
  • Loading branch information
Vadim Bendebury authored and Sonny Rao committed Mar 26, 2013
1 parent f1af49e commit 3837962
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpio/nm10_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,}
};

Expand Down
1 change: 1 addition & 0 deletions include/linux/pci_ids.h
Original file line number Diff line number Diff line change
Expand Up @@ -2555,6 +2555,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
Expand Down

0 comments on commit 3837962

Please sign in to comment.