Skip to content

Commit 8ee3c2a

Browse files
Seth HeasleySamuel Ortiz
authored andcommitted
lpc_sch: Add Intel Centerton Multifunction Device support
This patch adds the Intel Centerton processor DeviceID for the Integrated Legacy Block (ILB). The ILB provides GPIO, SMBus, and Watchdog functionality. Signed-off-by: Seth Heasley <seth.heasley@intel.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
1 parent 1fc9b1e commit 8ee3c2a

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

‎drivers/mfd/lpc_sch.c‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636

3737
#define GPIOBASE 0x44
3838
#define GPIO_IO_SIZE 64
39+
#define GPIO_IO_SIZE_CENTERTON 128
3940

4041
#define WDTBASE 0x84
4142
#define WDT_IO_SIZE 64
@@ -77,6 +78,7 @@ static struct mfd_cell tunnelcreek_cells[] = {
7778
static DEFINE_PCI_DEVICE_TABLE(lpc_sch_ids) = {
7879
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SCH_LPC) },
7980
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ITC_LPC) },
81+
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CENTERTON_ILB) },
8082
{ 0, }
8183
};
8284
MODULE_DEVICE_TABLE(pci, lpc_sch_ids);
@@ -115,7 +117,11 @@ static int __devinit lpc_sch_probe(struct pci_dev *dev,
115117
}
116118

117119
gpio_sch_resource.start = base_addr;
118-
gpio_sch_resource.end = base_addr + GPIO_IO_SIZE - 1;
120+
121+
if (id->device == PCI_DEVICE_ID_INTEL_CENTERTON_ILB)
122+
gpio_sch_resource.end = base_addr + GPIO_IO_SIZE_CENTERTON - 1;
123+
else
124+
gpio_sch_resource.end = base_addr + GPIO_IO_SIZE - 1;
119125

120126
for (i=0; i < ARRAY_SIZE(lpc_sch_cells); i++)
121127
lpc_sch_cells[i].id = id->device;
@@ -125,7 +131,8 @@ static int __devinit lpc_sch_probe(struct pci_dev *dev,
125131
if (ret)
126132
goto out_dev;
127133

128-
if (id->device == PCI_DEVICE_ID_INTEL_ITC_LPC) {
134+
if (id->device == PCI_DEVICE_ID_INTEL_ITC_LPC
135+
|| id->device == PCI_DEVICE_ID_INTEL_CENTERTON_ILB) {
129136
pci_read_config_dword(dev, WDTBASE, &base_addr_cfg);
130137
if (!(base_addr_cfg & (1 << 31))) {
131138
dev_err(&dev->dev, "Decode of the WDT I/O range disabled\n");

0 commit comments

Comments
 (0)