Patchwork [U-Boot,2/4] cpsw: add support for TI814x slave_regs differences

login
register
mail settings
Submitter Matt Porter
Date March 15, 2013, 8:58 p.m.
Message ID <1363381100-6364-3-git-send-email-mporter@ti.com>
Download mbox | patch
Permalink /patch/228181/
State Superseded
Delegated to: Tom Rini
Headers show

Comments

Matt Porter - March 15, 2013, 8:58 p.m.
TI814x's version 1 CPSW has a different slave_regs layout.
Add support for the differing registers.

Signed-off-by: Matt Porter <mporter@ti.com>
---
 drivers/net/cpsw.c |    6 ++++++
 1 file changed, 6 insertions(+)
Tom Rini - March 15, 2013, 9:14 p.m.
On Fri, Mar 15, 2013 at 04:58:18PM -0400, Matt Porter wrote:

> TI814x's version 1 CPSW has a different slave_regs layout.
> Add support for the differing registers.
> 
> Signed-off-by: Matt Porter <mporter@ti.com>

Reviewed-by: Tom Rini <trini@ti.com>

Patch

diff --git a/drivers/net/cpsw.c b/drivers/net/cpsw.c
index f5c5b9a..34c9fdd 100644
--- a/drivers/net/cpsw.c
+++ b/drivers/net/cpsw.c
@@ -109,7 +109,13 @@  struct cpsw_slave_regs {
 	u32	flow_thresh;
 	u32	port_vlan;
 	u32	tx_pri_map;
+#ifdef CONFIG_AM33XX
 	u32	gap_thresh;
+#elif defined(CONFIG_TI814X)
+	u32	ts_ctl;
+	u32	ts_seq_ltype;
+	u32	ts_vlan;
+#endif
 	u32	sa_lo;
 	u32	sa_hi;
 };