summaryrefslogtreecommitdiff
path: root/board/freescale
diff options
context:
space:
mode:
authorPrabhakar Kushwaha <prabhakar@freescale.com>2015-06-28 11:03:59 +0530
committerYork Sun <yorksun@freescale.com>2015-07-20 11:44:37 -0700
commit95279315076c6f719be9ff0501a6a5addc061416 (patch)
tree08e327979c07e3ed17188a813100035c54941852 /board/freescale
parent56c57cf7e9bc760d6d02b50f8d0b384fbb58d0fb (diff)
downloadu-boot-imx-95279315076c6f719be9ff0501a6a5addc061416.zip
u-boot-imx-95279315076c6f719be9ff0501a6a5addc061416.tar.gz
u-boot-imx-95279315076c6f719be9ff0501a6a5addc061416.tar.bz2
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 <prabhakar@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'board/freescale')
-rw-r--r--board/freescale/ls2085ardb/eth_ls2085rdb.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/board/freescale/ls2085ardb/eth_ls2085rdb.c b/board/freescale/ls2085ardb/eth_ls2085rdb.c
index 60af079..0a1163a 100644
--- a/board/freescale/ls2085ardb/eth_ls2085rdb.c
+++ b/board/freescale/ls2085ardb/eth_ls2085rdb.c
@@ -14,10 +14,13 @@
#include <phy.h>
#include <fm_eth.h>
#include <asm/io.h>
+#include <exports.h>
#include <asm/arch/fsl_serdes.h>
#include <asm/arch-fsl-lsch3/immap_lsch3.h>
#include <fsl-mc/ldpaa_wriop.h>
+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);
}