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 <vbendeb@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/18928
This commit is contained in:
committed by
Ben Zhang
parent
422f8bdd82
commit
195ea08336
@@ -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,}
|
||||
};
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user