OSDN Git Service

net: cpsw: Add a minimal cpsw-common module for shared code
authorTony Lindgren <tony@atomide.com>
Wed, 28 Jan 2015 19:33:04 +0000 (11:33 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 31 Jan 2015 01:42:01 +0000 (17:42 -0800)
commite5a49c1e3b189c744770e04d2b46ec7ca37d604c
tree4ffcdc2a900aa73de29b3bfceba7f72dcf3beb0c
parent4c72c53be5e3c8cf319a020ea671ab0fc32ec96f
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>
drivers/net/ethernet/ti/Makefile
drivers/net/ethernet/ti/cpsw-common.c [new file with mode: 0644]
drivers/net/ethernet/ti/cpsw.c
drivers/net/ethernet/ti/cpsw.h