aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar7/patches-3.9/950-cpmac_titan.patch
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2013-10-12 10:50:47 +0000
committerJonas Gorski <jogo@openwrt.org>2013-10-12 10:50:47 +0000
commit06382c5b15e18d75cc27646fd942036c9f19ee5a (patch)
treeef00452ec4da707333f6c53d29cfc06529ef1316 /target/linux/ar7/patches-3.9/950-cpmac_titan.patch
parent5ba5efcd9b3bd3d80df3edfe0af7e7686b7da272 (diff)
downloadupstream-06382c5b15e18d75cc27646fd942036c9f19ee5a.tar.gz
upstream-06382c5b15e18d75cc27646fd942036c9f19ee5a.tar.bz2
upstream-06382c5b15e18d75cc27646fd942036c9f19ee5a.zip
ar7: drop linux 3.9 support
Linux 3.9 is EOL since quite a while, no need to keep support for it. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 38370
Diffstat (limited to 'target/linux/ar7/patches-3.9/950-cpmac_titan.patch')
-rw-r--r--target/linux/ar7/patches-3.9/950-cpmac_titan.patch52
1 files changed, 0 insertions, 52 deletions
diff --git a/target/linux/ar7/patches-3.9/950-cpmac_titan.patch b/target/linux/ar7/patches-3.9/950-cpmac_titan.patch
deleted file mode 100644
index bc31222cb8..0000000000
--- a/target/linux/ar7/patches-3.9/950-cpmac_titan.patch
+++ /dev/null
@@ -1,52 +0,0 @@
---- a/drivers/net/ethernet/ti/cpmac.c
-+++ b/drivers/net/ethernet/ti/cpmac.c
-@@ -1155,6 +1155,8 @@ static int cpmac_probe(struct platform_d
- goto fail;
- }
-
-+ ar7_device_reset(pdata->reset_bit);
-+
- dev->irq = platform_get_irq_byname(pdev, "irq");
-
- dev->netdev_ops = &cpmac_netdev_ops;
-@@ -1233,7 +1235,7 @@ int cpmac_init(void)
- cpmac_mii->reset = cpmac_mdio_reset;
- cpmac_mii->irq = mii_irqs;
-
-- cpmac_mii->priv = ioremap(AR7_REGS_MDIO, 256);
-+ cpmac_mii->priv = ioremap(ar7_is_titan() ? TITAN_REGS_MDIO : AR7_REGS_MDIO, 256);
-
- if (!cpmac_mii->priv) {
- printk(KERN_ERR "Can't ioremap mdio registers\n");
-@@ -1244,10 +1246,16 @@ int cpmac_init(void)
- #warning FIXME: unhardcode gpio&reset bits
- ar7_gpio_disable(26);
- ar7_gpio_disable(27);
-- ar7_device_reset(AR7_RESET_BIT_CPMAC_LO);
-- ar7_device_reset(AR7_RESET_BIT_CPMAC_HI);
-+
-+ if (!ar7_is_titan()) {
-+ ar7_device_reset(AR7_RESET_BIT_CPMAC_LO);
-+ ar7_device_reset(AR7_RESET_BIT_CPMAC_HI);
-+ }
- ar7_device_reset(AR7_RESET_BIT_EPHY);
-
-+ if (ar7_is_titan())
-+ ar7_device_reset(TITAN_RESET_BIT_EPHY1);
-+
- cpmac_mii->reset(cpmac_mii);
-
- for (i = 0; i < 300; i++) {
-@@ -1264,7 +1272,11 @@ int cpmac_init(void)
- mask = 0;
- }
-
-- cpmac_mii->phy_mask = ~(mask | 0x80000000);
-+ if (ar7_is_titan())
-+ cpmac_mii->phy_mask = ~(mask | 0x80000000 | 0x40000000);
-+ else
-+ cpmac_mii->phy_mask = ~(mask | 0x80000000);
-+
- snprintf(cpmac_mii->id, MII_BUS_ID_SIZE, "cpmac-1");
-
- res = mdiobus_register(cpmac_mii);