summaryrefslogtreecommitdiff
path: root/include/tsec.h
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2016-01-11 22:41:25 -0800
committerJoe Hershberger <joe.hershberger@ni.com>2016-01-28 12:23:19 -0600
commita1c76c150831168c09810006ede95b164fa292df (patch)
treea9cabc1f97c6d54026b61e76679d32f429153b82 /include/tsec.h
parent9a1d6af55ecd73938d49076422e87da9f87fc68f (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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/tsec.h b/include/tsec.h
index 88ce964fd9..fb27edf225 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 */