diff options
author | Sekhar Nori <nsekhar@ti.com> | 2018-08-23 17:11:29 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-09-25 21:49:18 -0400 |
commit | e2597be5bcb90030fdc116e7c5810bdef7fd9e0d (patch) | |
tree | 49241dfbf58ea2528fd4f34e7b2f7ebed098d3f2 /include/cpsw.h | |
parent | 4495680735a471cdee18ee45afd13ea9107bca44 (diff) | |
download | u-boot-e2597be5bcb90030fdc116e7c5810bdef7fd9e0d.tar.gz u-boot-e2597be5bcb90030fdc116e7c5810bdef7fd9e0d.tar.bz2 u-boot-e2597be5bcb90030fdc116e7c5810bdef7fd9e0d.zip |
drivers: net: cpsw: add support to update phy address
On some boards using TI CPSW, it may be possible that
PHY address was not latched correctly, and the actual
address that the phy responds on is different from that
set in device-tree. For example, see this problem report
on beaglebone black:
https://groups.google.com/d/msg/beagleboard/9mctrG26Mc8/1FuI_i5KW10J
Add support to check for this condition and use the
detected phy address when its safe to do so.
Also, add a public API that exposes the phy address of
a given slave. This can be used to update device-tree that
is passed to Linux kernel.
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/cpsw.h')
-rw-r--r-- | include/cpsw.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/cpsw.h b/include/cpsw.h index f135e7bfe0..9f8ce8850f 100644 --- a/include/cpsw.h +++ b/include/cpsw.h @@ -54,5 +54,6 @@ struct cpsw_platform_data { int cpsw_register(struct cpsw_platform_data *data); int ti_cm_get_macid(struct udevice *dev, int slave, u8 *mac_addr); +int cpsw_get_slave_phy_addr(struct udevice *dev, int slave); #endif /* _CPSW_H_ */ |