]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
cpsw: add support for TI814x slave_regs differences
authorMatt Porter <mporter@ti.com>
Wed, 20 Mar 2013 05:38:12 +0000 (05:38 +0000)
committerTom Rini <trini@ti.com>
Fri, 10 May 2013 12:25:54 +0000 (08:25 -0400)
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>
drivers/net/cpsw.c

index 7a36850198f40020ebc33765084f36f734e68b08..379b679d2e47ba41bd229771aff20e801ec1a030 100644 (file)
@@ -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;
 };