summaryrefslogtreecommitdiffstats
path: root/include/fsl-mc
diff options
context:
space:
mode:
authorPrabhakar Kushwaha <prabhakar@freescale.com>2015-11-04 12:25:56 +0530
committerYork Sun <yorksun@freescale.com>2015-11-30 08:53:02 -0800
commitf9127a046da34a7bf20557b1ece59fdfb5c36881 (patch)
tree8e6e9a025af5b12c47470b5cd27b973fb9e43269 /include/fsl-mc
parent25af41374096ffcbb3f7c792f0fcb34a50d8d2c4 (diff)
downloadblackbird-obmc-uboot-f9127a046da34a7bf20557b1ece59fdfb5c36881.tar.gz
blackbird-obmc-uboot-f9127a046da34a7bf20557b1ece59fdfb5c36881.zip
driver: ldpaa: Add api to return linked PHY ID of DPMAC
DPMAC represents physical line on the board. This physical line eventually asscociate with on-board PHY. So Add an api to return linked PHY ID of DPMAC object. Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'include/fsl-mc')
-rw-r--r--include/fsl-mc/ldpaa_wriop.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/fsl-mc/ldpaa_wriop.h b/include/fsl-mc/ldpaa_wriop.h
index ca8e440bd9..6dc159d9d7 100644
--- a/include/fsl-mc/ldpaa_wriop.h
+++ b/include/fsl-mc/ldpaa_wriop.h
@@ -40,8 +40,8 @@ enum wriop_port {
struct wriop_dpmac_info {
u8 enabled;
u8 id;
- u8 phy_addr;
u8 board_mux;
+ int phy_addr;
void *phy_regs;
phy_interface_t enet_if;
struct phy_device *phydev;
@@ -56,6 +56,7 @@ extern struct wriop_dpmac_info dpmac_info[NUM_WRIOP_PORTS];
void wriop_init_dpmac(int, int, int);
void wriop_disable_dpmac(int);
void wriop_enable_dpmac(int);
+u8 wriop_is_enabled_dpmac(int dpmac_id);
void wriop_set_mdio(int, struct mii_dev *);
struct mii_dev *wriop_get_mdio(int);
void wriop_set_phy_address(int, int);
OpenPOWER on IntegriCloud