Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73959
b: refs/heads/master
c: 29a50a8
h: refs/heads/master
i:
  73957: d21b522
  73955: b898405
  73951: ce3c85e
v: v3
  • Loading branch information
Kim Phillips authored and Kumar Gala committed Nov 20, 2007
1 parent d01836d commit 6c3a64b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 34be4561cd47bab1cd5796ea355dd373264da288
refs/heads/master: 29a50a8bd04ce88efe530fad4d0e21d045c0f25a
31 changes: 28 additions & 3 deletions trunk/arch/powerpc/platforms/83xx/mpc836x_mds.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,39 @@ static void __init mpc836x_mds_setup_arch(void)

if ((np = of_find_compatible_node(NULL, "network", "ucc_geth"))
!= NULL){
uint svid;

/* Reset the Ethernet PHY */
bcsr_regs[9] &= ~0x20;
#define BCSR9_GETHRST 0x20
clrbits8(&bcsr_regs[9], BCSR9_GETHRST);
udelay(1000);
bcsr_regs[9] |= 0x20;
setbits8(&bcsr_regs[9], BCSR9_GETHRST);

/* handle mpc8360ea rev.2.1 erratum 2: RGMII Timing */
svid = mfspr(SPRN_SVR);
if (svid == 0x80480021) {
void __iomem *immap;

immap = ioremap(get_immrbase() + 0x14a8, 8);

/*
* IMMR + 0x14A8[4:5] = 11 (clk delay for UCC 2)
* IMMR + 0x14A8[18:19] = 11 (clk delay for UCC 1)
*/
setbits32(immap, 0x0c003000);

/*
* IMMR + 0x14AC[20:27] = 10101010
* (data delay for both UCC's)
*/
clrsetbits_be32(immap + 4, 0xff0, 0xaa0);

iounmap(immap);
}

iounmap(bcsr_regs);
of_node_put(np);
}

#endif /* CONFIG_QUICC_ENGINE */
}

Expand Down

0 comments on commit 6c3a64b

Please sign in to comment.