From d3f4b5971d24eb3465db792f029c205973d627ec Mon Sep 17 00:00:00 2001 From: Joe Hershberger Date: Tue, 28 Feb 2012 13:03:35 -0600 Subject: [PATCH] Xilinx: ARM: net: Print the phy id on init This makes it clear if we can talk to the phy or not (i.e. if the phy is out of reset or not) Signed-off-by: Joe Hershberger --- board/xilinx/dfe/xgmac.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/board/xilinx/dfe/xgmac.c b/board/xilinx/dfe/xgmac.c index db9c86cd98b..d64c4a82c3c 100644 --- a/board/xilinx/dfe/xgmac.c +++ b/board/xilinx/dfe/xgmac.c @@ -245,6 +245,11 @@ int Xgmac_init(struct eth_device *dev, bd_t * bis) phy_wr(EmacPssInstancePtr, 22, 0); /* page 0 */ + tmp = phy_rd(EmacPssInstancePtr, 2); + printf("Phy ID: %04X", tmp); + tmp = phy_rd(EmacPssInstancePtr, 3); + printf("%04X\n", tmp); + /* Auto-negotiation advertisement register */ tmp = phy_rd(EmacPssInstancePtr, 4); tmp |= (1 << 11); /* asymmetric pause */ -- 2.47.3