diff options
author | Tony Lindgren <tony@atomide.com> | 2015-01-28 11:33:04 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-01-30 17:42:01 -0800 |
commit | e5a49c1e3b189c744770e04d2b46ec7ca37d604c (patch) | |
tree | 4ffcdc2a900aa73de29b3bfceba7f72dcf3beb0c /drivers/net/ethernet/ti/cpsw.h | |
parent | 4c72c53be5e3c8cf319a020ea671ab0fc32ec96f (diff) | |
download | linux-e5a49c1e3b189c744770e04d2b46ec7ca37d604c.tar.gz linux-e5a49c1e3b189c744770e04d2b46ec7ca37d604c.tar.bz2 linux-e5a49c1e3b189c744770e04d2b46ec7ca37d604c.zip |
net: cpsw: Add a minimal cpsw-common module for shared code
Looks like davinci_emac and cpsw can share some code although the
device registers have a different layout.
At least the code for getting the MAC address using syscon can
be shared by passing the register offset. Let's start with that
and set up a minimal shared cpsw-shared.c.
Cc: Brian Hutchinson <b.hutchman@gmail.com>
Cc: Felipe Balbi <balbi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ti/cpsw.h')
-rw-r--r-- | drivers/net/ethernet/ti/cpsw.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/ti/cpsw.h b/drivers/net/ethernet/ti/cpsw.h index 1b710674630c..ca90efafd156 100644 --- a/drivers/net/ethernet/ti/cpsw.h +++ b/drivers/net/ethernet/ti/cpsw.h @@ -41,5 +41,7 @@ struct cpsw_platform_data { }; void cpsw_phy_sel(struct device *dev, phy_interface_t phy_mode, int slave); +int cpsw_am33xx_cm_get_macid(struct device *dev, u16 offset, int slave, + u8 *mac_addr); #endif /* __CPSW_H__ */ |