summaryrefslogtreecommitdiff
path: root/include/cpsw.h
diff options
context:
space:
mode:
authorGrygorii Strashko <grygorii.strashko@ti.com>2019-09-19 11:16:42 +0300
committerTom Rini <trini@konsulko.com>2019-11-04 12:56:37 -0500
commit62f8e846a7d6f894834a013224936db682f7e484 (patch)
tree81a7cbb4c41dd0602c72a4eb009abdc2fc85f1d5 /include/cpsw.h
parentda6a728ea4169ea602614bbe171921901f47d871 (diff)
net: ti: cpsw: convert to use dev/ofnode api
Conver TI CPSW driver to use dev/ofnode api. Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> [trini: Add <dm/ofnode.h> to provide the prototype to ofnode] Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/cpsw.h')
-rw-r--r--include/cpsw.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/cpsw.h b/include/cpsw.h
index c7532fc866..786f8b385b 100644
--- a/include/cpsw.h
+++ b/include/cpsw.h
@@ -16,6 +16,8 @@
#ifndef _CPSW_H_
#define _CPSW_H_
+#include <dm/ofnode.h>
+
/* reg offset */
#define CPSW_HOST_PORT_OFFSET 0x108
#define CPSW_SLAVE0_OFFSET 0x208
@@ -38,7 +40,7 @@ struct cpsw_slave_data {
u32 sliver_reg_ofs;
int phy_addr;
int phy_if;
- int phy_of_handle;
+ ofnode phy_of_handle;
int max_speed;
};