]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Xilinx: ARM: GEM PHY address update for silicon.
authorAndrei Simion <andreis@xilinx.com>
Tue, 15 Nov 2011 23:55:36 +0000 (15:55 -0800)
committerJohn Linn <john.linn@xilinx.com>
Wed, 16 Nov 2011 18:10:26 +0000 (10:10 -0800)
GEM update to use a PHY address of 0x17 if CONFIG_EP107 is defined,
0x10 otherwise (for ZC770).

board/xilinx/dfe/xgmac.c

index 1b53baaf763cf59fbe116c4998a2d20e6ee73837..79a941845eb67a543131eb8d5f056ebf8eb33881 100644 (file)
@@ -18,7 +18,12 @@ int Xgmac_phy_mgmt_idle(XEmacPss * EmacPssInstancePtr);
 /*************************** Constant Definitions ***************************/
 
 #define EMACPSS_DEVICE_ID   0
-#define PHY_ADDR 0x17
+
+#if defined(CONFIG_EP107)
+# define PHY_ADDR 0x17
+#else
+# define PHY_ADDR 0x10
+#endif
 
 #define RXBD_CNT       8       /* Number of RxBDs to use */
 #define TXBD_CNT       8       /* Number of TxBDs to use */