Skip to content

Commit ef8c2da

Browse files
cchemparathymetaliveblog
authored andcommitted
net: davinci_emac: separate out cpdma code
In addition to being embedded into the EMAC controller, the CPDMA hardware block is used in TI's CPSW switch controller. Fortunately, the programming interface to this hardware block remains pretty nicely consistent across these devices. This patch adds a new CPDMA services layer, which can then be reused across EMAC and CPSW drivers. Signed-off-by: Cyril Chemparathy <cyril@ti.com> Tested-by: Michael Williamson <michael.williamson@criticallink.com> Tested-by: Caglar Akyuz <caglarakyuz@gmail.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
1 parent 7b3742a commit ef8c2da

4 files changed

Lines changed: 1084 additions & 0 deletions

File tree

‎drivers/net/Kconfig‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,7 @@ config TI_DAVINCI_EMAC
952952
tristate "TI DaVinci EMAC Support"
953953
depends on ARM && ( ARCH_DAVINCI || ARCH_OMAP3 )
954954
select TI_DAVINCI_MDIO
955+
select TI_DAVINCI_CPDMA
955956
select PHYLIB
956957
help
957958
This driver supports TI's DaVinci Ethernet .
@@ -969,6 +970,15 @@ config TI_DAVINCI_MDIO
969970
To compile this driver as a module, choose M here: the module
970971
will be called davinci_mdio. This is recommended.
971972

973+
config TI_DAVINCI_CPDMA
974+
tristate "TI DaVinci CPDMA Support"
975+
depends on ARM && ( ARCH_DAVINCI || ARCH_OMAP3 )
976+
help
977+
This driver supports TI's DaVinci CPDMA dma engine.
978+
979+
To compile this driver as a module, choose M here: the module
980+
will be called davinci_cpdma. This is recommended.
981+
972982
config DM9000
973983
tristate "DM9000 support"
974984
depends on ARM || BLACKFIN || MIPS

‎drivers/net/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ obj-$(CONFIG_PHYLIB) += phy/
88

99
obj-$(CONFIG_TI_DAVINCI_EMAC) += davinci_emac.o
1010
obj-$(CONFIG_TI_DAVINCI_MDIO) += davinci_mdio.o
11+
obj-$(CONFIG_TI_DAVINCI_CPDMA) += davinci_cpdma.o
1112

1213
obj-$(CONFIG_E1000) += e1000/
1314
obj-$(CONFIG_E1000E) += e1000e/

0 commit comments

Comments
 (0)