diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2016-01-11 22:41:25 -0800 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2016-01-28 12:23:19 -0600 |
commit | a1c76c150831168c09810006ede95b164fa292df (patch) | |
tree | a9cabc1f97c6d54026b61e76679d32f429153b82 /include/tsec.h | |
parent | 9a1d6af55ecd73938d49076422e87da9f87fc68f (diff) |
net: tsec: Use priv->tbiaddr to initialize TBI PHY address
Add a new member 'tbiaddr' to tsec_private struct. For non-DM driver,
it is initialized as CONFIG_SYS_TBIPA_VALUE, but for DM driver, we
can get this from device tree. Update the bindings doc as well.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'include/tsec.h')
-rw-r--r-- | include/tsec.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/tsec.h b/include/tsec.h index 88ce964fd91..fb27edf2250 100644 --- a/include/tsec.h +++ b/include/tsec.h @@ -402,6 +402,7 @@ struct tsec_private { phy_interface_t interface; struct mii_dev *bus; uint phyaddr; + uint tbiaddr; char mii_devname[16]; u32 flags; uint rx_idx; /* index of the current RX buffer */ |