Skip to contentSkip to conversation

qong: support for Dave/DENX QongEVB-LITE

PATCH New Ilya Yanok 4 participants 15 messages Feb 7, 2009 – Feb 9, 2009

Subsystems (3)
lore
Share & tools
lore
author
#1 lore raw

PATCH v3 1/3 mx31: add GPIO registers definitions

Added definitions for i.MX31 processor GPIO registers.

---
 include/asm-arm/arch-mx31/mx31-regs.h |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
include/asm-arm/arch-mx31/mx31-regs.h +10 -0
index e736052..3cdaa02 100644
@@ -87,6 +87,16 @@
 #define WDOG_BASE		0x53FDC000
 
 /*
+ * GPIO
+ */
+#define GPIO1_BASE	0x53FCC000
+#define GPIO2_BASE	0x53FD0000
+#define GPIO3_BASE	0x53FA4000
+#define GPIO_DR		0x00000000	/* data register */
+#define GPIO_GDIR	0x00000004	/* direction register */
+#define GPIO_PSR	0x00000008	/* pad status register */
+
+/*
  * Signal Multiplexing (IOMUX)
  */
 
Signature · 1 line
1.6.0.6
author
#3 lore raw

PATCH v3 2/3 dnet: driver for Dave DNET ethernet controller

In reply to Ilya Yanok

Driver for Dave DNET ethernet controller (used on Dave/DENX QongEVB-LITE board).

---
 drivers/net/Makefile |    2 +
 drivers/net/dnet.c   |  396 ++++++++++++++++++++++++++++++++++++++++++++++++++
 drivers/net/dnet.h   |  166 +++++++++++++++++++++
 include/netdev.h     |    1 +
 4 files changed, 565 insertions(+), 0 deletions(-)
 create mode 100644 drivers/net/dnet.c
 create mode 100644 drivers/net/dnet.h
drivers/net/Makefile +2 -0
index 128dc11..10e3c6d 100644
@@ -33,6 +33,7 @@ COBJS-$(CONFIG_BFIN_MAC) += bfin_mac.o
 COBJS-$(CONFIG_DRIVER_CS8900) += cs8900.o
 COBJS-$(CONFIG_TULIP) += dc2114x.o
 COBJS-$(CONFIG_DRIVER_DM9000) += dm9000x.o
+COBJS-$(CONFIG_DNET) += dnet.o
 COBJS-$(CONFIG_E1000) += e1000.o
 COBJS-$(CONFIG_EEPRO100) += eepro100.o
 COBJS-$(CONFIG_ENC28J60) += enc28j60.o
@@ -69,6 +70,7 @@ COBJS-$(CONFIG_ULI526X) += uli526x.o
 COBJS-$(CONFIG_VSC7385_ENET) += vsc7385.o
 COBJS-$(CONFIG_XILINX_EMAC) += xilinx_emac.o
 COBJS-$(CONFIG_XILINX_EMACLITE) += xilinx_emaclite.o
+COBJS-$(CONFIG_SH_ETHER) += sh_eth.o
 
 COBJS	:= $(COBJS-y)
 SRCS	:= $(COBJS:.o=.c)
drivers/net/dnet.c new file +396 -0

396 lines not on this page · raw message

drivers/net/dnet.h new file +166 -0

166 lines not on this page · raw message

include/netdev.h +1 -0
index ce1ecbd..5c568f3 100644
@@ -44,6 +44,7 @@ int cpu_eth_init(bd_t *bis);
 int au1x00_enet_initialize(bd_t*);
 int bfin_EMAC_initialize(bd_t *bis);
 int dc21x4x_initialize(bd_t *bis);
+int dnet_eth_initialize(int id, void *regs, unsigned int phy_addr);
 int e1000_initialize(bd_t *bis);
 int eepro100_initialize(bd_t *bis);
 int eth_3com_initialize (bd_t * bis);
Signature · 1 line
1.6.0.6
#4 lore raw

PATCH v3 2/3 dnet: driver for Dave DNET ethernet controller

Hi Ilya,

This looks much better.

Quoted 5 lines · Ilya Yanok

Driver for Dave DNET ethernet controller (used on Dave/DENX QongEVB-LITE board).

<snip>

Quoted 22 lines
---
 drivers/net/Makefile |    2 +
 drivers/net/dnet.c   |  396 ++++++++++++++++++++++++++++++++++++++++++++++++++
 drivers/net/dnet.h   |  166 +++++++++++++++++++++
 include/netdev.h     |    1 +
 4 files changed, 565 insertions(+), 0 deletions(-)
 create mode 100644 drivers/net/dnet.c
 create mode 100644 drivers/net/dnet.h
drivers/net/Makefile +1 -0
index 128dc11..10e3c6d 100644
@@ -33,6 +33,7 @@ COBJS-$(CONFIG_BFIN_MAC) += bfin_mac.o
 COBJS-$(CONFIG_DRIVER_CS8900) += cs8900.o
 COBJS-$(CONFIG_TULIP) += dc2114x.o
 COBJS-$(CONFIG_DRIVER_DM9000) += dm9000x.o
+COBJS-$(CONFIG_DNET) += dnet.o
 COBJS-$(CONFIG_E1000) += e1000.o
 COBJS-$(CONFIG_EEPRO100) += eepro100.o
 COBJS-$(CONFIG_ENC28J60) += enc28j60.o

drivers/net/Makefile COBJS-$(CONFIG_ULI526X) += uli526x.o · line 74

Quoted 5 lines
drivers/net/Makefile +1 -0
@@ -69,6 +70,7 @@ COBJS-$(CONFIG_ULI526X) += uli526x.o
 COBJS-$(CONFIG_VSC7385_ENET) += vsc7385.o
 COBJS-$(CONFIG_XILINX_EMAC) += xilinx_emac.o
 COBJS-$(CONFIG_XILINX_EMACLITE) += xilinx_emaclite.o
+COBJS-$(CONFIG_SH_ETHER) += sh_eth.o
 

Why is the SH driver affected?, or is this a merge artifact?

<snip>

Quoted 45 lines
drivers/net/Makefile +44 -0
+struct dnet_registers {
+	/* ALL DNET FIFO REGISTERS */
+	u32 RX_LEN_FIFO;
+	u32 RX_DATA_FIFO;
+	u32 TX_LEN_FIFO;
+	u32 TX_DATA_FIFO;
+	u32 pad1[0x3c];
+	/* ALL DNET CONTROL/STATUS REGISTERS */
+	u32 VERCAPS;
+	u32 INTR_SRC;
+	u32 INTR_ENB;
+	u32 RX_STATUS;
+	u32 TX_STATUS;
+	u32 RX_FRAMES_CNT;
+	u32 TX_FRAMES_CNT;
+	u32 RX_FIFO_TH;
+	u32 TX_FIFO_TH;
+	u32 SYS_CTL;
+	u32 PAUSE_TMR;
+	u32 RX_FIFO_WCNT;
+	u32 TX_FIFO_WCNT;
+	u32 pad2[0x33];
+	/* ALL DNET MAC REGISTERS */
+	u32 MACREG_DATA;	/* Mac-Reg Data */
+	u32 MACREG_ADDR;	/* Mac-Reg Addr  */
+	u32 pad3[0x3e];
+	/* ALL DNET RX STATISTICS COUNTERS  */
+	u32 RX_PKT_IGNR_CNT;
+	u32 RX_LEN_CHK_ERR_CNT;
+	u32 RX_LNG_FRM_CNT;
+	u32 RX_SHRT_FRM_CNT;
+	u32 RX_IPG_VIOL_CNT;
+	u32 RX_CRC_ERR_CNT;
+	u32 RX_OK_PKT_CNT;
+	u32 RX_CTL_FRM_CNT;
+	u32 RX_PAUSE_FRM_CNT;
+	u32 RX_MULTICAST_CNT;
+	u32 RX_BROADCAST_CNT;
+	u32 RX_VLAN_TAG_CNT;
+	u32 RX_PRE_SHRINK_CNT;
+	u32 RX_DRIB_NIB_CNT;
+	u32 RX_UNSUP_OPCD_CNT;
+	u32 RX_BYTE_CNT;
+	u32 pad4[0x30];

drivers/net/Makefile COBJS-$(CONFIG_ULI526X) += uli526x.o

Quoted 10 lines
drivers/net/Makefile +10 -0
+	/* DNET TX STATISTICS COUNTERS */
+	u32 TX_UNICAST_CNT;
+	u32 TX_PAUSE_FRM_CNT;
+	u32 TX_MULTICAST_CNT;
+	u32 TX_BRDCAST_CNT;
+	u32 TX_VLAN_TAG_CNT;
+	u32 TX_BAD_FCS_CNT;
+	u32 TX_JUMBO_CNT;
+	u32 TX_BYTE_CNT;
+} __attribute__((packed));

Why is this packed? All fields are 32-bit aligned already.

Quoted 103 lines
drivers/net/Makefile +97 -0
+
+/* SOME INTERNAL MAC-CORE REGISTER */
+#define DNET_INTERNAL_MODE_REG			0x0
+#define DNET_INTERNAL_RXTX_CONTROL_REG		0x2
+#define DNET_INTERNAL_MAX_PKT_SIZE_REG		0x4
+#define DNET_INTERNAL_IGP_REG			0x8
+#define DNET_INTERNAL_MAC_ADDR_0_REG		0xa
+#define DNET_INTERNAL_MAC_ADDR_1_REG		0xc
+#define DNET_INTERNAL_MAC_ADDR_2_REG		0xe
+#define DNET_INTERNAL_TX_RX_STS_REG		0x12
+#define DNET_INTERNAL_GMII_MNG_CTL_REG		0x14
+#define DNET_INTERNAL_GMII_MNG_DAT_REG		0x16
+
+#define DNET_INTERNAL_GMII_MNG_CMD_FIN		(1 << 14)
+
+#define DNET_INTERNAL_WRITE			(1 << 31)
+
+/* MAC-CORE REGISTER FIELDS */
+
+/* MAC-CORE MODE REGISTER FIELDS */
+#define DNET_INTERNAL_MODE_GBITEN			(1 << 0)
+#define DNET_INTERNAL_MODE_FCEN				(1 << 1)
+#define DNET_INTERNAL_MODE_RXEN				(1 << 2)
+#define DNET_INTERNAL_MODE_TXEN				(1 << 3)
+
+/* MAC-CORE RXTX CONTROL REGISTER FIELDS */
+#define DNET_INTERNAL_RXTX_CONTROL_RXSHORTFRAME		(1 << 8)
+#define DNET_INTERNAL_RXTX_CONTROL_RXBROADCAST		(1 << 7)
+#define DNET_INTERNAL_RXTX_CONTROL_RXMULTICAST		(1 << 4)
+#define DNET_INTERNAL_RXTX_CONTROL_RXPAUSE		(1 << 3)
+#define DNET_INTERNAL_RXTX_CONTROL_DISTXFCS		(1 << 2)
+#define DNET_INTERNAL_RXTX_CONTROL_DISCFXFCS		(1 << 1)
+#define DNET_INTERNAL_RXTX_CONTROL_ENPROMISC		(1 << 0)
+#define DNET_INTERNAL_RXTX_CONTROL_DROPCONTROL		(1 << 6)
+#define DNET_INTERNAL_RXTX_CONTROL_ENABLEHALFDUP	(1 << 5)
+
+/* SYSTEM CONTROL REGISTER FIELDS */
+#define DNET_SYS_CTL_IGNORENEXTPKT			(1 << 0)
+#define DNET_SYS_CTL_SENDPAUSE				(1 << 2)
+#define DNET_SYS_CTL_RXFIFOFLUSH			(1 << 3)
+#define DNET_SYS_CTL_TXFIFOFLUSH			(1 << 4)
+
+/* TX STATUS REGISTER FIELDS */
+#define DNET_TX_STATUS_FIFO_ALMOST_EMPTY		(1 << 2)
+#define DNET_TX_STATUS_FIFO_ALMOST_FULL			(1 << 1)
+
+/* INTERRUPT SOURCE REGISTER FIELDS */
+#define DNET_INTR_SRC_TX_PKTSENT			(1 << 0)
+#define DNET_INTR_SRC_TX_FIFOAF				(1 << 1)
+#define DNET_INTR_SRC_TX_FIFOAE				(1 << 2)
+#define DNET_INTR_SRC_TX_DISCFRM			(1 << 3)
+#define DNET_INTR_SRC_TX_FIFOFULL			(1 << 4)
+#define DNET_INTR_SRC_RX_CMDFIFOAF			(1 << 8)
+#define DNET_INTR_SRC_RX_CMDFIFOFF			(1 << 9)
+#define DNET_INTR_SRC_RX_DATAFIFOFF			(1 << 10)
+#define DNET_INTR_SRC_TX_SUMMARY			(1 << 16)
+#define DNET_INTR_SRC_RX_SUMMARY			(1 << 17)
+#define DNET_INTR_SRC_PHY				(1 << 19)
+
+/* INTERRUPT ENABLE REGISTER FIELDS */
+#define DNET_INTR_ENB_TX_PKTSENT			(1 << 0)
+#define DNET_INTR_ENB_TX_FIFOAF				(1 << 1)
+#define DNET_INTR_ENB_TX_FIFOAE				(1 << 2)
+#define DNET_INTR_ENB_TX_DISCFRM			(1 << 3)
+#define DNET_INTR_ENB_TX_FIFOFULL			(1 << 4)
+#define DNET_INTR_ENB_RX_PKTRDY				(1 << 8)
+#define DNET_INTR_ENB_RX_FIFOAF				(1 << 9)
+#define DNET_INTR_ENB_RX_FIFOERR			(1 << 10)
+#define DNET_INTR_ENB_RX_ERROR				(1 << 11)
+#define DNET_INTR_ENB_RX_FIFOFULL			(1 << 12)
+#define DNET_INTR_ENB_RX_FIFOAE				(1 << 13)
+#define DNET_INTR_ENB_TX_SUMMARY			(1 << 16)
+#define DNET_INTR_ENB_RX_SUMMARY			(1 << 17)
+#define DNET_INTR_ENB_GLOBAL_ENABLE			(1 << 18)
+
+/*
+ * Capabilities. Used by the driver to know the capabilities that
+ * the ethernet controller inside the FPGA have.
+ */
+
+#define DNET_HAS_MDIO		(1 << 0)
+#define DNET_HAS_IRQ		(1 << 1)
+#define DNET_HAS_GIGABIT	(1 << 2)
+#define DNET_HAS_DMA		(1 << 3)
+
+#define DNET_HAS_MII		(1 << 4) /* or GMII */
+#define DNET_HAS_RMII		(1 << 5) /* or RGMII */
+
+#define DNET_CAPS_MASK		0xFFFF
+
+#define DNET_FIFO_SIZE		2048 /* 2K x 32 bit */
+#define DNET_FIFO_TX_DATA_AF_TH	(DNET_FIFO_SIZE - 384) /* 384 = 1536 / 4 */
+#define DNET_FIFO_TX_DATA_AE_TH	(384)
+
+#define DNET_FIFO_RX_CMD_AF_TH	(1 << 16) /* just one frame inside the FIFO */
+
+#endif
include/netdev.h +0 -0
index ce1ecbd..5c568f3 100644

include/netdev.h int cpu_eth_init(bd_t *bis); · line 50

Quoted 7 lines
include/netdev.h +1 -0
@@ -44,6 +44,7 @@ int cpu_eth_init(bd_t *bis);
 int au1x00_enet_initialize(bd_t*);
 int bfin_EMAC_initialize(bd_t *bis);
 int dc21x4x_initialize(bd_t *bis);
+int dnet_eth_initialize(int id, void *regs, unsigned int phy_addr);
 int e1000_initialize(bd_t *bis);
 int eepro100_initialize(bd_t *bis);
 int eth_3com_initialize (bd_t * bis);

regards,
Ben

author
#5 lore raw

PATCH v3 2/3 dnet: driver for Dave DNET ethernet controller

Hi Ben,

thanks for review.

Quoted 7 lines · Ben Warren

drivers/net/Makefile COBJS-$(CONFIG_ULI526X) += uli526x.o · line 74

Quoted 6 lines
drivers/net/Makefile +1 -0
@@ -69,6 +70,7 @@ COBJS-$(CONFIG_ULI526X) += uli526x.o
 COBJS-$(CONFIG_VSC7385_ENET) += vsc7385.o
 COBJS-$(CONFIG_XILINX_EMAC) += xilinx_emac.o
 COBJS-$(CONFIG_XILINX_EMACLITE) += xilinx_emaclite.o
+COBJS-$(CONFIG_SH_ETHER) += sh_eth.o
 

Why is the SH driver affected?, or is this a merge artifact?

Uh... Sorry. Yes, it's merge artifact.

Quoted 49 lines

<snip>

Quoted 48 lines
drivers/net/dnet.h new file +48 -0
+struct dnet_registers {
+    /* ALL DNET FIFO REGISTERS */
+    u32 RX_LEN_FIFO;
+    u32 RX_DATA_FIFO;
+    u32 TX_LEN_FIFO;
+    u32 TX_DATA_FIFO;
+    u32 pad1[0x3c];
+    /* ALL DNET CONTROL/STATUS REGISTERS */
+    u32 VERCAPS;
+    u32 INTR_SRC;
+    u32 INTR_ENB;
+    u32 RX_STATUS;
+    u32 TX_STATUS;
+    u32 RX_FRAMES_CNT;
+    u32 TX_FRAMES_CNT;
+    u32 RX_FIFO_TH;
+    u32 TX_FIFO_TH;
+    u32 SYS_CTL;
+    u32 PAUSE_TMR;
+    u32 RX_FIFO_WCNT;
+    u32 TX_FIFO_WCNT;
+    u32 pad2[0x33];
+    /* ALL DNET MAC REGISTERS */
+    u32 MACREG_DATA;    /* Mac-Reg Data */
+    u32 MACREG_ADDR;    /* Mac-Reg Addr  */
+    u32 pad3[0x3e];
+    /* ALL DNET RX STATISTICS COUNTERS  */
+    u32 RX_PKT_IGNR_CNT;
+    u32 RX_LEN_CHK_ERR_CNT;
+    u32 RX_LNG_FRM_CNT;
+    u32 RX_SHRT_FRM_CNT;
+    u32 RX_IPG_VIOL_CNT;
+    u32 RX_CRC_ERR_CNT;
+    u32 RX_OK_PKT_CNT;
+    u32 RX_CTL_FRM_CNT;
+    u32 RX_PAUSE_FRM_CNT;
+    u32 RX_MULTICAST_CNT;
+    u32 RX_BROADCAST_CNT;
+    u32 RX_VLAN_TAG_CNT;
+    u32 RX_PRE_SHRINK_CNT;
+    u32 RX_DRIB_NIB_CNT;
+    u32 RX_UNSUP_OPCD_CNT;
+    u32 RX_BYTE_CNT;
+    u32 pad4[0x30];
+    /* DNET TX STATISTICS COUNTERS */
+    u32 TX_UNICAST_CNT;
+    u32 TX_PAUSE_FRM_CNT;
+    u32 TX_MULTICAST_CNT;
Quoted 8 lines

drivers/net/dnet.h line 69

Quoted 7 lines
drivers/net/dnet.h new file +6 -0
+    u32 TX_BRDCAST_CNT;
+    u32 TX_VLAN_TAG_CNT;
+    u32 TX_BAD_FCS_CNT;
+    u32 TX_JUMBO_CNT;
+    u32 TX_BYTE_CNT;
+} __attribute__((packed));

Why is this packed? All fields are 32-bit aligned already.

Generally, I prefer declaring such structures with ((packed)) regardless of if it's really do something. Just to show that it should be packed.

Regards, Ilya.

#6 lore raw

PATCH v3 2/3 dnet: driver for Dave DNET ethernet controller

Dear Ilya,

Quoted 1 line · In message <[email protected]> you wrote:

...

Quoted 8 lines
Quoted 5 lines

drivers/net/dnet.h line 69

Quoted 4 lines
drivers/net/dnet.h new file +3 -0
+    u32 TX_JUMBO_CNT;
+    u32 TX_BYTE_CNT;
+} __attribute__((packed));

Why is this packed? All fields are 32-bit aligned already.

Generally, I prefer declaring such structures with ((packed)) regardless of if it's really do something. Just to show that it should be packed.

Can you please verify that it works as well without the "packed", and if it does (as expected) resubmit without it?

Thanks.

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Drawing on my fine command of language, I said nothing.
author
#7 lore raw

PATCH v3 2/3 dnet: driver for Dave DNET ethernet controller

Hi Wolfgang,

Quoted 5 lines · Wolfgang Denk
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
drivers/net/dnet.h new file +3 -0
+    u32 TX_JUMBO_CNT;
+    u32 TX_BYTE_CNT;
+} __attribute__((packed));
Quoted 9 lines
Quoted 5 lines
Quoted 2 lines

Why is this packed? All fields are 32-bit aligned already.

Generally, I prefer declaring such structures with ((packed)) regardless of if it's really do something. Just to show that it should be packed.

Can you please verify that it works as well without the "packed", and if it does (as expected) resubmit without it?

Ok. It works as expected. I'll post the updated patch soon.

Regards, Ilya.

author
#8 lore raw

PATCH v4 2/3 dnet: driver for Dave DNET ethernet controller

In reply to Wolfgang Denk

Driver for Dave DNET ethernet controller (used on Dave/DENX QongEVB-LITE board).

---
 drivers/net/Makefile |    1 +
 drivers/net/dnet.c   |  396 ++++++++++++++++++++++++++++++++++++++++++++++++++
 drivers/net/dnet.h   |  166 +++++++++++++++++++++
 include/netdev.h     |    1 +
 4 files changed, 564 insertions(+), 0 deletions(-)
 create mode 100644 drivers/net/dnet.c
 create mode 100644 drivers/net/dnet.h
drivers/net/Makefile +1 -0
index 128dc11..a360a50 100644
@@ -33,6 +33,7 @@ COBJS-$(CONFIG_BFIN_MAC) += bfin_mac.o
 COBJS-$(CONFIG_DRIVER_CS8900) += cs8900.o
 COBJS-$(CONFIG_TULIP) += dc2114x.o
 COBJS-$(CONFIG_DRIVER_DM9000) += dm9000x.o
+COBJS-$(CONFIG_DNET) += dnet.o
 COBJS-$(CONFIG_E1000) += e1000.o
 COBJS-$(CONFIG_EEPRO100) += eepro100.o
 COBJS-$(CONFIG_ENC28J60) += enc28j60.o
drivers/net/dnet.c new file +396 -0

396 lines not on this page · raw message

drivers/net/dnet.h new file +166 -0

166 lines not on this page · raw message

include/netdev.h +1 -0
index ce1ecbd..5c568f3 100644
@@ -44,6 +44,7 @@ int cpu_eth_init(bd_t *bis);
 int au1x00_enet_initialize(bd_t*);
 int bfin_EMAC_initialize(bd_t *bis);
 int dc21x4x_initialize(bd_t *bis);
+int dnet_eth_initialize(int id, void *regs, unsigned int phy_addr);
 int e1000_initialize(bd_t *bis);
 int eepro100_initialize(bd_t *bis);
 int eth_3com_initialize (bd_t * bis);
Signature · 1 line
1.6.0.6
author
#9 lore raw

PATCH v3 2/3 dnet: driver for Dave DNET ethernet controller

In reply to Wolfgang Denk

Hello All,

Sorry guys, it looks like I posted the wrong version. Please discard [v4] patch. I'll post [v5] version soon.

Regards, Ilya.

author
#10 lore raw

PATCH v5 2/3 dnet: driver for Dave DNET ethernet controller

In reply to Wolfgang Denk

Driver for Dave DNET ethernet controller (used on Dave/DENX QongEVB-LITE board).

---
 drivers/net/Makefile |    1 +
 drivers/net/dnet.c   |  396 ++++++++++++++++++++++++++++++++++++++++++++++++++
 drivers/net/dnet.h   |  166 +++++++++++++++++++++
 include/netdev.h     |    1 +
 4 files changed, 564 insertions(+), 0 deletions(-)
 create mode 100644 drivers/net/dnet.c
 create mode 100644 drivers/net/dnet.h
drivers/net/Makefile +1 -0
index 128dc11..a360a50 100644
@@ -33,6 +33,7 @@ COBJS-$(CONFIG_BFIN_MAC) += bfin_mac.o
 COBJS-$(CONFIG_DRIVER_CS8900) += cs8900.o
 COBJS-$(CONFIG_TULIP) += dc2114x.o
 COBJS-$(CONFIG_DRIVER_DM9000) += dm9000x.o
+COBJS-$(CONFIG_DNET) += dnet.o
 COBJS-$(CONFIG_E1000) += e1000.o
 COBJS-$(CONFIG_EEPRO100) += eepro100.o
 COBJS-$(CONFIG_ENC28J60) += enc28j60.o
drivers/net/dnet.c new file +396 -0

396 lines not on this page · raw message

drivers/net/dnet.h new file +166 -0

166 lines not on this page · raw message

include/netdev.h +1 -0
index ce1ecbd..5c568f3 100644
@@ -44,6 +44,7 @@ int cpu_eth_init(bd_t *bis);
 int au1x00_enet_initialize(bd_t*);
 int bfin_EMAC_initialize(bd_t *bis);
 int dc21x4x_initialize(bd_t *bis);
+int dnet_eth_initialize(int id, void *regs, unsigned int phy_addr);
 int e1000_initialize(bd_t *bis);
 int eepro100_initialize(bd_t *bis);
 int eth_3com_initialize (bd_t * bis);
Signature · 1 line
1.6.0.6
#11 lore raw

PATCH v5 2/3 dnet: driver for Dave DNET ethernet controller

Quoted 5 lines · Ilya Yanok

Driver for Dave DNET ethernet controller (used on Dave/DENX QongEVB-LITE board).

---

Ben If it's ok with you I'll apply it at the same time of the board

Best Regards,
J.

#12 lore raw

PATCH v5 2/3 dnet: driver for Dave DNET ethernet controller

Quoted 5 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 3 lines · Ilya Yanok

Driver for Dave DNET ethernet controller (used on Dave/DENX QongEVB-LITE board).

Quoted 8 lines
Quoted 3 lines

---

Ben If it's ok with you I'll apply it at the same time of the board

Best Regards,
J.

author
#13 lore raw

PATCH v3 3/3 qong: support for Dave/DENX QongEVB-LITE board

In reply to Ilya Yanok

This patch adds support for Dave/DENX QongEVB-LITE i.MX31-based board.

---
 MAINTAINERS                         |    3 +
 MAKEALL                             |    1 +
 Makefile                            |    4 +
 board/davedenx/qong/Makefile        |   53 +++++++++
 board/davedenx/qong/config.mk       |    1 +
 board/davedenx/qong/lowlevel_init.S |  172 ++++++++++++++++++++++++++++
 board/davedenx/qong/qong.c          |  168 +++++++++++++++++++++++++++
 board/davedenx/qong/qong_fpga.h     |   41 +++++++
 board/davedenx/qong/u-boot.lds      |   58 ++++++++++
 include/configs/qong.h              |  215 +++++++++++++++++++++++++++++++++++
 10 files changed, 716 insertions(+), 0 deletions(-)
 create mode 100644 board/davedenx/qong/Makefile
 create mode 100644 board/davedenx/qong/config.mk
 create mode 100644 board/davedenx/qong/lowlevel_init.S
 create mode 100644 board/davedenx/qong/qong.c
 create mode 100644 board/davedenx/qong/qong_fpga.h
 create mode 100644 board/davedenx/qong/u-boot.lds
 create mode 100644 include/configs/qong.h
MAINTAINERS +3 -0
index 38feac8..c3157d9 100644
@@ -655,6 +655,9 @@ Sergey Lapin <[email protected]>
 
 	afeb9260	ARM926EJS (AT91SAM9260 SoC)
 
+Wolfgang Denk <[email protected]>
+	qong		i.MX31
+
 -------------------------------------------------------------------------
 
 Unknown / orphaned boards:
MAKEALL +1 -0
index cf05133..73974f7 100755
@@ -542,6 +542,7 @@ LIST_ARM11="		\
 	imx31_litekit	\
 	imx31_phycore	\
 	mx31ads		\
+	qong		\
 	smdk6400	\
 "
 
Makefile +4 -0
index 787c5f2..7508e1d 100644
@@ -3034,6 +3034,10 @@ mx31ads_config		: unconfig
 omap2420h4_config	: unconfig
 	@$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
 
+qong_config		: unconfig
+	@$(MKCONFIG) $(@:_config=) arm arm1136 qong davedenx mx31
+
+
 #########################################################################
 ## ARM1176 Systems
 #########################################################################
board/davedenx/qong/Makefile new file +53 -0

53 lines not on this page · raw message

board/davedenx/qong/config.mk new file +1 -0
new file mode 100644
index 0000000..d8d0a57
@@ -0,0 +1 @@
+TEXT_BASE = 0x8ff00000
board/davedenx/qong/lowlevel_init.S new file +172 -0

172 lines not on this page · raw message

board/davedenx/qong/qong.c new file +168 -0

168 lines not on this page · raw message

board/davedenx/qong/qong_fpga.h new file +41 -0

41 lines not on this page · raw message

board/davedenx/qong/u-boot.lds new file +58 -0

58 lines not on this page · raw message

include/configs/qong.h new file +215 -0

215 lines not on this page · raw message

Signature · 1 line
1.6.0.6