summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/ti/cpsw_priv.h
diff options
context:
space:
mode:
authorGrygorii Strashko <grygorii.strashko@ti.com>2019-04-26 20:12:39 +0300
committerDavid S. Miller <davem@davemloft.net>2019-04-27 17:11:49 -0400
commite6a84624911336599c0c8e8f6d5aa068c891a458 (patch)
tree5b2571d46f9ebc0692b71316df8e0ae809a7dbb8 /drivers/net/ethernet/ti/cpsw_priv.h
parent5dea39851476216f6535a9fb0320611bdb576d49 (diff)
net: ethernet: ti: cpsw: move common hw init code in separate func
move common hw init code in separate function as preparation for adding new switchdev driver. Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ti/cpsw_priv.h')
-rw-r--r--drivers/net/ethernet/ti/cpsw_priv.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/ti/cpsw_priv.h b/drivers/net/ethernet/ti/cpsw_priv.h
index 6a01beef4d22..53bd6e020f94 100644
--- a/drivers/net/ethernet/ti/cpsw_priv.h
+++ b/drivers/net/ethernet/ti/cpsw_priv.h
@@ -434,4 +434,8 @@ struct addr_sync_ctx {
int flush; /* flush flag */
};
+int cpsw_init_common(struct cpsw_common *cpsw, void __iomem *ss_regs,
+ int ale_ageout, phys_addr_t desc_mem_phys,
+ int descs_pool_size);
+
#endif /* DRIVERS_NET_ETHERNET_TI_CPSW_PRIV_H_ */