mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
ipq807x: Add Aquantia phy restart command
Change-Id: I6c714ea861e00a37bee80e074bac7652a45be349 Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
This commit is contained in:
parent
7b6029559d
commit
3dafe3b072
1 changed files with 20 additions and 0 deletions
|
|
@ -238,6 +238,20 @@ static int do_load_fw(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int do_aq_phy_restart(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
{
|
||||
unsigned int phy_addr = AQU_PHY_ADDR;
|
||||
int node, aquantia_port;
|
||||
if (argc > 2)
|
||||
return CMD_RET_USAGE;
|
||||
|
||||
if (argc == 2)
|
||||
phy_addr = simple_strtoul(argv[1], NULL, 16);
|
||||
|
||||
aquantia_phy_restart_autoneg(phy_addr);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ipq_board_fw_download(unsigned int phy_addr)
|
||||
{
|
||||
char runcmd[256];
|
||||
|
|
@ -539,3 +553,9 @@ U_BOOT_CMD(
|
|||
"LOAD aq-fw-binary",
|
||||
""
|
||||
);
|
||||
|
||||
U_BOOT_CMD(
|
||||
aq_phy_restart, 5, 1, do_aq_phy_restart,
|
||||
"Restart Aquantia phy",
|
||||
""
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue