From 95279315076c6f719be9ff0501a6a5addc061416 Mon Sep 17 00:00:00 2001 From: Prabhakar Kushwaha Date: Sun, 28 Jun 2015 11:03:59 +0530 Subject: board/ls2085rdb: Export functions for standalone AQ FW load apps Export functions required by Aquntia PHY firmware load application. functions are memset, strcpy, mdelay, mdio_get_current_dev, phy_find_by_mask, mdio_phydev_for_ethname and miiphy_set_current_dev Signed-off-by: Prabhakar Kushwaha Reviewed-by: York Sun --- board/freescale/ls2085ardb/eth_ls2085rdb.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'board/freescale') diff --git a/board/freescale/ls2085ardb/eth_ls2085rdb.c b/board/freescale/ls2085ardb/eth_ls2085rdb.c index 60af07954f..0a1163ab8e 100644 --- a/board/freescale/ls2085ardb/eth_ls2085rdb.c +++ b/board/freescale/ls2085ardb/eth_ls2085rdb.c @@ -14,10 +14,13 @@ #include #include #include +#include #include #include #include +DECLARE_GLOBAL_DATA_PTR; + int load_firmware_cortina(struct phy_device *phy_dev) { if (phy_dev->drv->config) @@ -129,5 +132,17 @@ int board_eth_init(bd_t *bis) cpu_eth_init(bis); #endif /* CONFIG_FMAN_ENET */ +#ifdef CONFIG_PHY_AQUANTIA + /* + * Export functions to be used by AQ firmware + * upload application + */ + gd->jt->strcpy = strcpy; + gd->jt->mdelay = mdelay; + gd->jt->mdio_get_current_dev = mdio_get_current_dev; + gd->jt->phy_find_by_mask = phy_find_by_mask; + gd->jt->mdio_phydev_for_ethname = mdio_phydev_for_ethname; + gd->jt->miiphy_set_current_dev = miiphy_set_current_dev; +#endif return pci_eth_init(bis); } -- cgit