summaryrefslogtreecommitdiffstats
path: root/sys/mips/nlm
diff options
context:
space:
mode:
authorjchandra <jchandra@FreeBSD.org>2012-03-27 11:17:04 +0000
committerjchandra <jchandra@FreeBSD.org>2012-03-27 11:17:04 +0000
commit88cde25ec436fb0216f54a19541905c779f1614c (patch)
treeb2548229091e037633fdc6569c1c93588ef0ac61 /sys/mips/nlm
parent34e8a23c52c0b43579e7e785ba7b9f884441af64 (diff)
downloadFreeBSD-src-88cde25ec436fb0216f54a19541905c779f1614c.zip
FreeBSD-src-88cde25ec436fb0216f54a19541905c779f1614c.tar.gz
I2C support for XLP, add hints for I2C devices and update PCI resource
allocation code.
Diffstat (limited to 'sys/mips/nlm')
-rw-r--r--sys/mips/nlm/xlp_pci.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/mips/nlm/xlp_pci.c b/sys/mips/nlm/xlp_pci.c
index 0094b07..95e369c 100644
--- a/sys/mips/nlm/xlp_pci.c
+++ b/sys/mips/nlm/xlp_pci.c
@@ -497,6 +497,15 @@ assign_soc_resource(device_t child, int type, u_long *startp, u_long *endp,
*rm = &emul_rman;
*bst = uart_bus_space_mem;
break;
+
+ case PCI_DEVICE_ID_NLM_I2C:
+ *va = nlm_pcicfg_base(XLP_IO_I2C_OFFSET(node, unit)) +
+ XLP_IO_PCI_HDRSZ;
+ *startp = MIPS_KSEG1_TO_PHYS(*va);
+ *countp = 0x100;
+ *rm = &emul_rman;
+ *bst = uart_bus_space_mem;
+ break;
}
/* calculate end if allocated */
if (*rm)
OpenPOWER on IntegriCloud