powerpc: mpc832x mds: Fix board PHY reset code
Subsystems (2)
PATCH 1/1 powerpc: mpc832x mds: Fix board PHY reset code
currently the board-level PHY reset code for the mpc832x MDS messes with reset configuration words source settings which is plain wrong (it looks like this board code was cut-n-pasted from the mpc8360 mds code, which has the PHY reset bits in a different BCSR); this patch points the PHY reset code to the proper mpc832x mds PHY reset bits in the BCSR.
--- arch/powerpc/platforms/83xx/mpc832x_mds.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)
arch/powerpc/platforms/83xx/mpc832x_mds.c +4 -3
@@ -90,10 +90,11 @@ static void __init mpc832x_sys_setup_arch(void)if ((np =of_find_compatible_node (NULL ,"network" ,"ucc_geth" )) !=NULL ){ -/* Reset the Ethernet PHY */ - bcsr_regs[9 ] &= ~0x20 ; +/* Reset the Ethernet PHYs */ +#define BCSR8_FETH_RST 0x50 + bcsr_regs[8 ] &= ~BCSR8_FETH_RST ;udelay (1000 ); - bcsr_regs[9 ] |=0x20 ; + bcsr_regs[8 ] |=BCSR8_FETH_RST ;iounmap (bcsr_regs);of_node_put (np); }
Signature · 1 line
1.5.2.2
Kumar Gala
AppliedQuoted 6 lines · Kim Phillips
currently the board-level PHY reset code for the mpc832x MDS messes with reset configuration words source settings which is plain wrong (it looks like this board code was cut-n-pasted from the mpc8360 mds code, which has the PHY reset bits in a different BCSR); this patch points the PHY reset code to the proper mpc832x mds PHY reset bits in the BCSR.
Quoted 6 lines
Signed-off-by Peter Van Ackeren <[email protected]>Signed-off-by Kim Phillips <[email protected]>--- arch/powerpc/platforms/83xx/mpc832x_mds.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)
applied.
- k
Quoted 14 lines
-----Original Message-----
From: Phillips Kim=20
Sent: Tuesday, November 20, 2007 9:05 AM
To: Kumar Gala; [email protected]
Cc: Van Ackeren Peter; Li Yang
Subject: [PATCH] powerpc: mpc832x mds: Fix board PHY reset code =20
currently the board-level PHY reset code for the mpc832x MDS=20 messes with reset configuration words source settings which=20 is plain wrong (it looks like this board code was=20 cut-n-pasted from the mpc8360 mds code, which has the PHY=20 reset bits in a different BCSR); this patch points the PHY=20 reset code to the proper mpc832x mds PHY reset bits in the BCSR. =20
Quoted 2 lines
Signed-off-by Peter Van Ackeren <[email protected]>Signed-off-by Kim Phillips <[email protected]>
Quoted 28 lines
--- arch/powerpc/platforms/83xx/mpc832x_mds.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)=20
arch/powerpc/platforms/83xx/mpc832x_mds.c +0
-0@@ -90,10 +90,11 @@ static void __init mpc832x_sys_setup_arch(void)=20
arch/powerpc/platforms/83xx/mpc832x_mds.c +4
-4if ((np =3D of_find_compatible_node(NULL, "network", "ucc_geth")) !=3D NULL){ -/* Reset the Ethernet PHY */ - bcsr_regs[9] &=3D ~0x20; +/* Reset the Ethernet PHYs */ +#define BCSR8_FETH_RST 0x50 + bcsr_regs[8] &=3D ~BCSR8_FETH_RST;udelay (1000 ); - bcsr_regs[9] |=3D 0x20; + bcsr_regs[8] |=3D BCSR8_FETH_RST;iounmap (bcsr_regs);of_node_put (np); } --1.5.2.2
=20
=20