]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/include/asm/arch-davinci/emac_defs.h
arm926ejs, davinci: add cpuinfo for dm365
[u-boot] / arch / arm / include / asm / arch-davinci / emac_defs.h
index 76493a138a40fc3af69f6ac2f8c89da35d7b150d..ea52888ff45fe2434f1d0a9f1ca2e04e2dd1936d 100644 (file)
 #define EMAC_MDIO_CLOCK_FREQ           2000000         /* 2.0 MHz */
 #endif
 
-/* PHY mask - set only those phy number bits where phy is/can be connected */
-#define EMAC_MDIO_PHY_NUM           CONFIG_EMAC_MDIO_PHY_NUM
-#define EMAC_MDIO_PHY_MASK          (1 << EMAC_MDIO_PHY_NUM)
-
 /* Ethernet Min/Max packet size */
 #define EMAC_MIN_ETHERNET_PKT_SIZE     60
 #define EMAC_MAX_ETHERNET_PKT_SIZE     1518
@@ -377,6 +373,12 @@ typedef struct
        int     (*auto_negotiate)(int phy_addr);
 } phy_t;
 
+#define PHY_KSZ8873    (0x00221450)
+int ksz8873_is_phy_connected(int phy_addr);
+int ksz8873_get_link_speed(int phy_addr);
+int ksz8873_init_phy(int phy_addr);
+int ksz8873_auto_negotiate(int phy_addr);
+
 #define PHY_LXT972     (0x001378e2)
 int lxt972_is_phy_connected(int phy_addr);
 int lxt972_get_link_speed(int phy_addr);
@@ -389,4 +391,7 @@ int dp83848_get_link_speed(int phy_addr);
 int dp83848_init_phy(int phy_addr);
 int dp83848_auto_negotiate(int phy_addr);
 
+#define PHY_ET1011C    (0x282f013)
+int et1011c_get_link_speed(int phy_addr);
+
 #endif  /* _DM644X_EMAC_H_ */