stmmac: share reset function between dwmac100 and dwmac1000
This patch is to share the same reset procedure between dwmac100 and dwmac1000 chips. This will also help on enhancing the driver and support new chips. Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
fcb3f55f66
commit
495db27302
@@ -376,7 +376,8 @@ extern const struct stmmac_desc_ops ndesc_ops;
|
||||
/* Specific DMA helpers */
|
||||
struct stmmac_dma_ops {
|
||||
/* DMA core initialization */
|
||||
int (*init) (void __iomem *ioaddr, int pbl, int fb, int mb,
|
||||
int (*reset)(void __iomem *ioaddr);
|
||||
void (*init)(void __iomem *ioaddr, int pbl, int fb, int mb,
|
||||
int burst_len, u32 dma_tx, u32 dma_rx, int atds);
|
||||
/* Dump DMA registers */
|
||||
void (*dump_regs) (void __iomem *ioaddr);
|
||||
|
Reference in New Issue
Block a user