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/Makefile | |
parent | 4c72c53be5e3c8cf319a020ea671ab0fc32ec96f (diff) | |
download | lwn-e5a49c1e3b189c744770e04d2b46ec7ca37d604c.tar.gz lwn-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/Makefile')
-rw-r--r-- | drivers/net/ethernet/ti/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/ti/Makefile b/drivers/net/ethernet/ti/Makefile index 0a9813bc0451..5475cf60fa2d 100644 --- a/drivers/net/ethernet/ti/Makefile +++ b/drivers/net/ethernet/ti/Makefile @@ -2,6 +2,9 @@ # Makefile for the TI network device drivers. # +obj-$(CONFIG_TI_CPSW) += cpsw-common.o +obj-$(CONFIG_TI_DAVINCI_EMAC) += cpsw-common.o + obj-$(CONFIG_TLAN) += tlan.o obj-$(CONFIG_CPMAC) += cpmac.o obj-$(CONFIG_TI_DAVINCI_EMAC) += davinci_emac.o |