aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar7/patches-3.18/950-cpmac_titan.patch
diff options
context:
space:
mode:
authorKoen Vandeputte <koen.vandeputte@ncentric.com>2018-08-13 14:58:20 +0200
committerJohn Crispin <john@phrozen.org>2018-08-13 17:10:39 +0200
commitee9e0c1deb2e81144cf6110e3fcc075f1614ed62 (patch)
tree4bb2fba424d2bb9bc2552b4c1b78a3afc5e01b81 /target/linux/ar7/patches-3.18/950-cpmac_titan.patch
parent22b8237ba1acb90caaf867bf657f7ed7497bbeb6 (diff)
downloadupstream-ee9e0c1deb2e81144cf6110e3fcc075f1614ed62.tar.gz
upstream-ee9e0c1deb2e81144cf6110e3fcc075f1614ed62.tar.bz2
upstream-ee9e0c1deb2e81144cf6110e3fcc075f1614ed62.zip
ar7: remove linux 3.18 support
This target is on 4.9 currently. It seems the support for this old kernel never got dropped. Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Diffstat (limited to 'target/linux/ar7/patches-3.18/950-cpmac_titan.patch')
-rw-r--r--target/linux/ar7/patches-3.18/950-cpmac_titan.patch52
1 files changed, 0 insertions, 52 deletions
diff --git a/target/linux/ar7/patches-3.18/950-cpmac_titan.patch b/target/linux/ar7/patches-3.18/950-cpmac_titan.patch
deleted file mode 100644
index 3cabae067a..0000000000
--- a/target/linux/ar7/patches-3.18/950-cpmac_titan.patch
+++ /dev/null
@@ -1,52 +0,0 @@
---- a/drivers/net/ethernet/ti/cpmac.c
-+++ b/drivers/net/ethernet/ti/cpmac.c
-@@ -1147,6 +1147,8 @@ static int cpmac_probe(struct platform_d
- goto out;
- }
-
-+ ar7_device_reset(pdata->reset_bit);
-+
- dev->irq = platform_get_irq_byname(pdev, "irq");
-
- dev->netdev_ops = &cpmac_netdev_ops;
-@@ -1228,7 +1230,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) {
- pr_err("Can't ioremap mdio registers\n");
-@@ -1239,10 +1241,16 @@ int cpmac_init(void)
- /* 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++) {
-@@ -1259,7 +1267,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);