Port-arm archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Change to support Pogoplug mobile.
These are the changes I made to support Pogoplug mobile in the
SHEEVAPLUG kernel. Should also work for Pogoplug series 4.
Index: sys/arch/arm/marvell/mvsoc.c
===================================================================
RCS file: /cvsroot/src/sys/arch/arm/marvell/mvsoc.c,v
retrieving revision 1.13
diff -u -r1.13 mvsoc.c
--- sys/arch/arm/marvell/mvsoc.c 30 Sep 2013 13:19:28 -0000 1.13
+++ sys/arch/arm/marvell/mvsoc.c 23 Nov 2013 20:17:14 -0000
@@ -480,8 +480,10 @@
{ KIRKWOOD(88F6192),"gtidmac", 0, KIRKWOOD_IDMAC_BASE,IRQ_DEFAULT },
{ KIRKWOOD(88F6192),"gttwsi", 0, MVSOC_TWSI_BASE, KIRKWOOD_IRQ_TWSI },
{ KIRKWOOD(88F6192),"mvcesa", 0,
KIRKWOOD_CESA_BASE,KIRKWOOD_IRQ_SECURITYINT},
- { KIRKWOOD(88F6192),"mvgbec", 0, KIRKWOOD_GBE0_BASE,IRQ_DEFAULT },
- { KIRKWOOD(88F6192),"mvgbec", 1, KIRKWOOD_GBE1_BASE,IRQ_DEFAULT },
+ { KIRKWOOD(88F6192),"mvgbec", 0, KIRKWOOD_GBE0_BASE,IRQ_DEFAULT,
+ MVSOC_MLMB_CLKGATING_BIT(0) },
+ { KIRKWOOD(88F6192),"mvgbec", 1, KIRKWOOD_GBE1_BASE,IRQ_DEFAULT,
+ MVSOC_MLMB_CLKGATING_BIT(19) },
{ KIRKWOOD(88F6192),"mvpex", 0, MVSOC_PEX_BASE,
KIRKWOOD_IRQ_PEX0INT },
{ KIRKWOOD(88F6192),"mvsata", 0, KIRKWOOD_SATAHC_BASE,KIRKWOOD_IRQ_SATA },
{ KIRKWOOD(88F6192),"mvsdio", 0,
KIRKWOOD_SDIO_BASE,KIRKWOOD_IRQ_SDIOINT },
@@ -881,7 +883,13 @@
model = PCI_PRODUCT_MARVELL_88F5082;
}
#endif
-
+ //POGOPLUG Mobile has 88F6192 with 0x6281 PCI DeviceID
+ if (model == PCI_PRODUCT_MARVELL_88F6281) {
+ reg = *(volatile uint32_t *)(regbase + MVSOC_MISC_DEVICEID);
+ if (1 == reg)
+ model = MARVELL_KIRKWOOD_88F6192;
+ }
+
return model;
}
Index: sys/arch/arm/marvell/mvsocreg.h
===================================================================
RCS file: /cvsroot/src/sys/arch/arm/marvell/mvsocreg.h,v
retrieving revision 1.5
diff -u -r1.5 mvsocreg.h
--- sys/arch/arm/marvell/mvsocreg.h 30 Sep 2013 13:15:46 -0000 1.5
+++ sys/arch/arm/marvell/mvsocreg.h 23 Nov 2013 20:17:14 -0000
@@ -66,6 +66,7 @@
*/
#define MVSOC_DEVBUS_BASE (UNITID2PHYS(DEVBUS)) /* 0x10000 */
+#define MVSOC_MISC_DEVICEID (MVSOC_DEVBUS_BASE + 0x0034)
/*
* General Purpose Port Registers
*/
Home |
Main Index |
Thread Index |
Old Index