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>
This commit is contained in:

committed by
David S. Miller

parent
4c72c53be5
commit
e5a49c1e3b
@@ -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__ */
|
||||
|
Reference in New Issue
Block a user