diff options
author | Thirupathaiah Annapureddy <thiruan@linux.microsoft.com> | 2020-08-17 17:08:26 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-09-30 16:48:18 -0400 |
commit | 66e036bab503cddd6afbfecc8b7fcd8941d8bd7d (patch) | |
tree | 4947d2c51ba36d484d7563ea45e58cb49e25b402 | |
parent | d63c14cc3f24f56139bd385b0c35c9b264f0e83b (diff) | |
download | u-boot-66e036bab503cddd6afbfecc8b7fcd8941d8bd7d.tar.gz |
net: ftgmac100: Add support for board specific PHY interface address
ftgmac100 driver is using hard-coded PHY interface address of zero.
Each board can have different PHY interface address (phy_addr).
This commit modifies the driver to make use of board specific address
by leveraging CONFIG_PHY_ADDR.
Signed-off-by: Thirupathaiah Annapureddy <thiruan@linux.microsoft.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
-rw-r--r-- | drivers/net/ftgmac100.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ftgmac100.c b/drivers/net/ftgmac100.c index 5676a5b3ba..00bda24f1f 100644 --- a/drivers/net/ftgmac100.c +++ b/drivers/net/ftgmac100.c @@ -551,6 +551,10 @@ static int ftgmac100_probe(struct udevice *dev) priv->max_speed = pdata->max_speed; priv->phy_addr = 0; +#ifdef CONFIG_PHY_ADDR + priv->phy_addr = CONFIG_PHY_ADDR; +#endif + ret = clk_enable_bulk(&priv->clks); if (ret) goto out; |