mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-14 19:16:17 +02:00
pci fixup
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@815 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
68c7b67de0
commit
a2fba5fe5c
@ -245,7 +245,6 @@ sbpci_ban(uint16 core)
|
|||||||
if (pci_banned < ARRAYSIZE(pci_ban))
|
if (pci_banned < ARRAYSIZE(pci_ban))
|
||||||
pci_ban[pci_banned++] = core;
|
pci_ban[pci_banned++] = core;
|
||||||
}
|
}
|
||||||
//#define CT4712_WR 1 /* Workaround for 4712 */
|
|
||||||
|
|
||||||
int __init
|
int __init
|
||||||
sbpci_init(void *sbh)
|
sbpci_init(void *sbh)
|
||||||
@ -257,7 +256,6 @@ sbpci_init(void *sbh)
|
|||||||
pci_config_regs *cfg;
|
pci_config_regs *cfg;
|
||||||
void *regs;
|
void *regs;
|
||||||
char varname[8];
|
char varname[8];
|
||||||
int CT4712_WR;
|
|
||||||
uint wlidx = 0;
|
uint wlidx = 0;
|
||||||
uint16 vendor, core;
|
uint16 vendor, core;
|
||||||
uint8 class, subclass, progif;
|
uint8 class, subclass, progif;
|
||||||
@ -274,12 +272,6 @@ sbpci_init(void *sbh)
|
|||||||
return -1;
|
return -1;
|
||||||
sb_core_reset(sbh, 0);
|
sb_core_reset(sbh, 0);
|
||||||
|
|
||||||
/* In some board, */
|
|
||||||
if(nvram_match("boardtype", "bcm94710dev") || nvram_match("boardtype", "bcm94710ap")|| nvram_match("boardtype", "bcm94710r4")|| nvram_match("boardtype", "bcm94710r4")|| nvram_match("boardtype", "bcm95365r"))
|
|
||||||
CT4712_WR = 0;
|
|
||||||
else
|
|
||||||
CT4712_WR = 1;
|
|
||||||
|
|
||||||
boardflags = (uint32) getintvar(NULL, "boardflags");
|
boardflags = (uint32) getintvar(NULL, "boardflags");
|
||||||
|
|
||||||
if ((chip == BCM4310_DEVICE_ID) && (chiprev == 0))
|
if ((chip == BCM4310_DEVICE_ID) && (chiprev == 0))
|
||||||
@ -291,7 +283,7 @@ sbpci_init(void *sbh)
|
|||||||
* floating.
|
* floating.
|
||||||
*/
|
*/
|
||||||
if (((chip == BCM4712_DEVICE_ID) && (chippkg == BCM4712SMALL_PKG_ID)) ||
|
if (((chip == BCM4712_DEVICE_ID) && (chippkg == BCM4712SMALL_PKG_ID)) ||
|
||||||
(boardflags & BFL_NOPCI) || CT4712_WR)
|
(boardflags & BFL_NOPCI))
|
||||||
pci_disabled = TRUE;
|
pci_disabled = TRUE;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -234,7 +234,7 @@ sb_kattach()
|
|||||||
|
|
||||||
regs = (uint32 *)REG_MAP(SB_ENUM_BASE, SB_CORE_SIZE);
|
regs = (uint32 *)REG_MAP(SB_ENUM_BASE, SB_CORE_SIZE);
|
||||||
cid = R_REG((uint32 *)regs);
|
cid = R_REG((uint32 *)regs);
|
||||||
if (((cid & CID_ID_MASK) == 0x4712) &&
|
if (((cid & (CID_ID_MASK | CID_PKG_MASK)) == 0x00104712) &&
|
||||||
((cid & CID_REV_MASK) <= 0x00020000)) {
|
((cid & CID_REV_MASK) <= 0x00020000)) {
|
||||||
uint32 *scc, val;
|
uint32 *scc, val;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user