Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183710
b: refs/heads/master
c: c1fb834
h: refs/heads/master
v: v3
  • Loading branch information
Liu Yu-B13201 authored and David S. Miller committed Jan 21, 2010
1 parent e3e78c1 commit 06df9a9
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d03e067778104911cc02cb92dd152df2f3b988a5
refs/heads/master: c1fb8340d7a39346c08ec4b1db4fb432f02acd4c
24 changes: 24 additions & 0 deletions trunk/arch/powerpc/platforms/85xx/mpc85xx_mds.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ static void __init mpc85xx_mds_setup_arch(void)
} else if (machine_is(mpc8569_mds)) {
#define BCSR7_UCC12_GETHnRST (0x1 << 2)
#define BCSR8_UEM_MARVELL_RST (0x1 << 1)
#define BCSR_UCC_RGMII (0x1 << 6)
#define BCSR_UCC_RTBI (0x1 << 5)
/*
* U-Boot mangles interrupt polarity for Marvell PHYs,
* so reset built-in and UEM Marvell PHYs, this puts
Expand All @@ -247,6 +249,28 @@ static void __init mpc85xx_mds_setup_arch(void)

setbits8(&bcsr_regs[7], BCSR7_UCC12_GETHnRST);
clrbits8(&bcsr_regs[8], BCSR8_UEM_MARVELL_RST);

for (np = NULL; (np = of_find_compatible_node(np,
"network",
"ucc_geth")) != NULL;) {
const unsigned int *prop;
int ucc_num;

prop = of_get_property(np, "cell-index", NULL);
if (prop == NULL)
continue;

ucc_num = *prop - 1;

prop = of_get_property(np, "phy-connection-type", NULL);
if (prop == NULL)
continue;

if (strcmp("rtbi", (const char *)prop) == 0)
clrsetbits_8(&bcsr_regs[7 + ucc_num],
BCSR_UCC_RGMII, BCSR_UCC_RTBI);
}

}
iounmap(bcsr_regs);
}
Expand Down

0 comments on commit 06df9a9

Please sign in to comment.