diff options
author | Mugunthan V N <mugunthanvnm@ti.com> | 2013-08-12 07:41:15 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-13 18:53:17 -0400 |
commit | 926489be1d2b030c17d38fa10b5921bf3409d91d (patch) | |
tree | 8ba29e91f9e60a40120fbf0be74419807be3d971 /drivers/net/ethernet/ti | |
parent | 23402bddf9e56eecb27bbd1e5467b3b79b3dbe58 (diff) |
drivers: net: cpsw: Add support for new CPSW IP version present in AM43xx SoC
The new IP version which is present in AM43xx SoC 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ti')
-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 cd956719f8c8..0fcf21254ad3 100644 --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c | |||
@@ -83,6 +83,7 @@ do { \ | |||
83 | #define CPSW_VERSION_1 0x19010a | 83 | #define CPSW_VERSION_1 0x19010a |
84 | #define CPSW_VERSION_2 0x19010c | 84 | #define CPSW_VERSION_2 0x19010c |
85 | #define CPSW_VERSION_3 0x19010f | 85 | #define CPSW_VERSION_3 0x19010f |
86 | #define CPSW_VERSION_4 0x190112 | ||
86 | 87 | ||
87 | #define HOST_PORT_NUM 0 | 88 | #define HOST_PORT_NUM 0 |
88 | #define SLIVER_SIZE 0x40 | 89 | #define SLIVER_SIZE 0x40 |
@@ -993,6 +994,7 @@ static void cpsw_slave_open(struct cpsw_slave *slave, struct cpsw_priv *priv) | |||
993 | break; | 994 | break; |
994 | case CPSW_VERSION_2: | 995 | case CPSW_VERSION_2: |
995 | case CPSW_VERSION_3: | 996 | case CPSW_VERSION_3: |
997 | case CPSW_VERSION_4: | ||
996 | slave_write(slave, TX_PRIORITY_MAPPING, CPSW2_TX_PRI_MAP); | 998 | slave_write(slave, TX_PRIORITY_MAPPING, CPSW2_TX_PRI_MAP); |
997 | break; | 999 | break; |
998 | } | 1000 | } |
@@ -2018,6 +2020,7 @@ static int cpsw_probe(struct platform_device *pdev) | |||
2018 | break; | 2020 | break; |
2019 | case CPSW_VERSION_2: | 2021 | case CPSW_VERSION_2: |
2020 | case CPSW_VERSION_3: | 2022 | case CPSW_VERSION_3: |
2023 | case CPSW_VERSION_4: | ||
2021 | priv->host_port_regs = ss_regs + CPSW2_HOST_PORT_OFFSET; | 2024 | priv->host_port_regs = ss_regs + CPSW2_HOST_PORT_OFFSET; |
2022 | priv->cpts->reg = ss_regs + CPSW2_CPTS_OFFSET; | 2025 | priv->cpts->reg = ss_regs + CPSW2_CPTS_OFFSET; |
2023 | priv->hw_stats = ss_regs + CPSW2_HW_STATS; | 2026 | priv->hw_stats = ss_regs + CPSW2_HW_STATS; |