Add EP93XX ethernet driver
PATCH 2/3 Add EP93XX ethernet driver
Added ethernet driver for EP93XX SoCs
Signed-off-by Matthias Kaehlcke <[email protected]>
--- drivers/net/Makefile | 1 + drivers/net/ep93xx.c | 677 ++++++++++++++++++++++++++++++++++++++++++++++++++ drivers/net/ep93xx.h | 153 ++++++++++++ include/common.h | 10 +- 4 files changed, 840 insertions(+), 1 deletions(-) create mode 100644 drivers/net/ep93xx.c create mode 100644 drivers/net/ep93xx.h
drivers/net/Makefile +1 -0
@@ -37,6 +37,7 @@ COBJS-$(CONFIG_DNET) += dnet.o COBJS-$(CONFIG_E1000) += e1000.o COBJS-$(CONFIG_EEPRO100) += eepro100.o COBJS-$(CONFIG_ENC28J60) += enc28j60.o +COBJS-$(CONFIG_EP93XX) += ep93xx.o COBJS-$(CONFIG_FEC_MXC) += fec_mxc.o COBJS-$(CONFIG_FSLDMAFEC) += fsl_mcdmafec.o mcfmii.o COBJS-$(CONFIG_FTMAC100) += ftmac100.o
drivers/net/ep93xx.c new file +677 -0
677 lines not on this page · raw message
drivers/net/ep93xx.h new file +153 -0
153 lines not on this page · raw message
include/common.h +9 -1
@@ -123,6 +123,13 @@ typedef volatile unsigned char vu_char; #define debugX(level,fmt,args...)#endif /* DEBUG */ +#ifndef ERROR +#define ERROR(fmt, args...) do { \ + printf("ERROR: " fmt "\nat %s:%d/%s()\n", \ + ##args, __FILE__, __LINE__, __func__); \ +} while (0) +#endif +#ifndef BUG #define BUG () do { \ printf("BUG: failure at %s:%d/%s()!\n", __FILE__, __LINE__, __FUNCTION__); \
@@ -500,7 +507,8 @@ ulong get_PCI_freq (void);#endif #if defined(CONFIG_S3C24X0 ) || \ defined(CONFIG_LH7A40X ) || \ - defined(CONFIG_S3C6400 ) + defined(CONFIG_S3C6400 ) || \ + defined(CONFIG_EP93XX )ulong get_FCLK (void );ulong get_HCLK (void );ulong get_PCLK (void );
Signature · 1 line
1.6.3.1