diff options
author | Mugunthan V N <mugunthanvnm@ti.com> | 2013-08-05 17:30:05 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-05 12:21:44 -0700 |
commit | c193f3655d9b916a3b8cb685c6b4327397507b2f (patch) | |
tree | f0fe7d33702eceb10413a3d6649a36f622b47bff /drivers/net/ethernet/ti/cpsw.c | |
parent | 5a139296f872d438f17f7219411321b603c1622b (diff) | |
download | linux-c193f3655d9b916a3b8cb685c6b4327397507b2f.tar.bz2 |
drivers: net: cpsw: Add support for new CPSW IP version
The new IP version has a minor changes and the offsets are same as the
previous version, so adding new IP version support in the driver.
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ti/cpsw.c')
-rw-r--r-- | drivers/net/ethernet/ti/cpsw.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index db6933ecb543..cd956719f8c8 100644 --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c @@ -82,6 +82,7 @@ do { \ #define CPSW_VERSION_1 0x19010a #define CPSW_VERSION_2 0x19010c +#define CPSW_VERSION_3 0x19010f #define HOST_PORT_NUM 0 #define SLIVER_SIZE 0x40 @@ -991,6 +992,7 @@ static void cpsw_slave_open(struct cpsw_slave *slave, struct cpsw_priv *priv) slave_write(slave, TX_PRIORITY_MAPPING, CPSW1_TX_PRI_MAP); break; case CPSW_VERSION_2: + case CPSW_VERSION_3: slave_write(slave, TX_PRIORITY_MAPPING, CPSW2_TX_PRI_MAP); break; } @@ -2015,6 +2017,7 @@ static int cpsw_probe(struct platform_device *pdev) dma_params.desc_mem_phys = 0; break; case CPSW_VERSION_2: + case CPSW_VERSION_3: priv->host_port_regs = ss_regs + CPSW2_HOST_PORT_OFFSET; priv->cpts->reg = ss_regs + CPSW2_CPTS_OFFSET; priv->hw_stats = ss_regs + CPSW2_HW_STATS; |