summaryrefslogtreecommitdiff
path: root/include/cpsw.h
diff options
context:
space:
mode:
authorMugunthan V N <mugunthanvnm@ti.com>2014-02-18 12:31:52 (GMT)
committerTom Rini <trini@ti.com>2014-03-04 14:41:53 (GMT)
commit9c653aad169ffdc9e18482970df9de1a29773034 (patch)
tree1a443bf6aef9650a37429353a632563043aa1751 /include/cpsw.h
parenteeb72e67619b98d2502fe634a3a5d9953de92ad0 (diff)
downloadu-boot-9c653aad169ffdc9e18482970df9de1a29773034.tar.xz
drivers: net: cpsw: add support to have phy address from cpsw platform data
Some platforms like AM437x have different EVMs with different phy addresses, so this patch adds support for passing phy address via cpsw plaform data. Also renamed phy_id to phy_addr so better understanding of the code. Reviewed-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com> [trini: Update BuR am335x_igep0033 pcm051_rev3 pcm051_rev1 cm_t335 pengwyn boards] Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'include/cpsw.h')
-rw-r--r--include/cpsw.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/cpsw.h b/include/cpsw.h
index 743cb96..a73843d 100644
--- a/include/cpsw.h
+++ b/include/cpsw.h
@@ -19,7 +19,7 @@
struct cpsw_slave_data {
u32 slave_reg_ofs;
u32 sliver_reg_ofs;
- int phy_id;
+ int phy_addr;
int phy_if;
};