]> git.sur5r.net Git - u-boot/blobdiff - drivers/qe/uec.h
drivers/net/xilinx_ll_temac.c: Fix compile warning
[u-boot] / drivers / qe / uec.h
index febfbcef532614600db62070a9017c79b8813c8e..e63bf3a65220d55f34a970a92fb5278a8178d215 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2006-2009 Freescale Semiconductor, Inc.
+ * Copyright (C) 2006-2010 Freescale Semiconductor, Inc.
  *
  * Dave Liu <daveliu@freescale.com>
  * based on source code of Shlomi Gridish
@@ -25,6 +25,8 @@
 
 #include "qe.h"
 #include "uccf.h"
+#include <phy.h>
+#include <asm/fsl_enet.h>
 
 #define MAX_TX_THREADS                         8
 #define MAX_RX_THREADS                         8
@@ -660,25 +662,6 @@ typedef enum uec_num_of_threads {
        UEC_NUM_OF_THREADS_8  = 0x4   /* 8 */
 } uec_num_of_threads_e;
 
-/* UEC ethernet interface type
-*/
-typedef enum enet_interface {
-       ENET_10_MII,
-       ENET_10_RMII,
-       ENET_10_RGMII,
-       ENET_100_MII,
-       ENET_100_RMII,
-       ENET_100_RGMII,
-       ENET_1000_GMII,
-       ENET_1000_RGMII,
-       ENET_1000_RGMII_ID,
-       ENET_1000_RGMII_RXID,
-       ENET_1000_RGMII_TXID,
-       ENET_1000_TBI,
-       ENET_1000_RTBI,
-       ENET_1000_SGMII
-} enet_interface_e;
-
 /* UEC initialization info struct
 */
 #define STD_UEC_INFO(num) \
@@ -696,7 +679,8 @@ typedef enum enet_interface {
        .tx_bd_ring_len         = 16,   \
        .rx_bd_ring_len         = 16,   \
        .phy_address            = CONFIG_SYS_UEC##num##_PHY_ADDR, \
-       .enet_interface         = CONFIG_SYS_UEC##num##_INTERFACE_MODE, \
+       .enet_interface_type    = CONFIG_SYS_UEC##num##_INTERFACE_TYPE, \
+       .speed                  = CONFIG_SYS_UEC##num##_INTERFACE_SPEED, \
 }
 
 typedef struct uec_info {
@@ -708,7 +692,8 @@ typedef struct uec_info {
        u16                             rx_bd_ring_len;
        u16                             tx_bd_ring_len;
        u8                              phy_address;
-       enet_interface_e                enet_interface;
+       phy_interface_t                 enet_interface_type;
+       int                             speed;
 } uec_info_t;
 
 /* UEC driver initialized info