diff options
author | Luka Perkov <luka@openwrt.org> | 2014-08-08 13:55:30 +0000 |
---|---|---|
committer | Luka Perkov <luka@openwrt.org> | 2014-08-08 13:55:30 +0000 |
commit | 99fc9728a61d763ba619490158b0f60d0e6d70cb (patch) | |
tree | 920ffb5adc2bd92c62358e1183efdca73a692a05 /target/linux/kirkwood/patches-3.10/0024-net-mv643xx_eth-proper-initialization-for-Kirkwood-S.patch | |
parent | d12f820ed21802e8b1eee66ab2fe4501a76c7fce (diff) | |
download | master-187ad058-99fc9728a61d763ba619490158b0f60d0e6d70cb.tar.gz master-187ad058-99fc9728a61d763ba619490158b0f60d0e6d70cb.tar.bz2 master-187ad058-99fc9728a61d763ba619490158b0f60d0e6d70cb.zip |
kirkwood: drop 3.10 support
Signed-off-by: Luka Perkov <luka@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42077 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/kirkwood/patches-3.10/0024-net-mv643xx_eth-proper-initialization-for-Kirkwood-S.patch')
-rw-r--r-- | target/linux/kirkwood/patches-3.10/0024-net-mv643xx_eth-proper-initialization-for-Kirkwood-S.patch | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/target/linux/kirkwood/patches-3.10/0024-net-mv643xx_eth-proper-initialization-for-Kirkwood-S.patch b/target/linux/kirkwood/patches-3.10/0024-net-mv643xx_eth-proper-initialization-for-Kirkwood-S.patch deleted file mode 100644 index 7cf45a0db0..0000000000 --- a/target/linux/kirkwood/patches-3.10/0024-net-mv643xx_eth-proper-initialization-for-Kirkwood-S.patch +++ /dev/null @@ -1,50 +0,0 @@ -From 4c1ae9f272bf34388d0fbdc99aa18af2b6c9eda1 Mon Sep 17 00:00:00 2001 -From: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> -Date: Wed, 29 May 2013 09:32:47 +0000 -Subject: [PATCH 24/29] net: mv643xx_eth: proper initialization for Kirkwood - SoCs - -Ethernet controllers found on Kirkwood SoCs not only suffer from loosing -MAC address register contents on clock gating but also some important -registers are reset to values that would break ethernet. This patch -clears the CLK125_BYPASS_EN bit for DT enabled Kirkwood only by using -of_device_is_compatible() instead of #ifdefs. Non-DT Kirkwood is not -affected as it installs a clock gating workaround because of the MAC -address issue above. Other Orion SoCs do not suffer from register reset, -do not have the bit in question, or do not have the register at all. -Moreover, system controllers on PPC using this driver should also be -protected from clearing that bit. - -Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> -Signed-off-by: David S. Miller <davem@davemloft.net> ---- - drivers/net/ethernet/marvell/mv643xx_eth.c | 11 +++++++++++ - 1 file changed, 11 insertions(+) - ---- a/drivers/net/ethernet/marvell/mv643xx_eth.c -+++ b/drivers/net/ethernet/marvell/mv643xx_eth.c -@@ -116,6 +116,8 @@ static char mv643xx_eth_driver_version[] - #define LINK_UP 0x00000002 - #define TXQ_COMMAND 0x0048 - #define TXQ_FIX_PRIO_CONF 0x004c -+#define PORT_SERIAL_CONTROL1 0x004c -+#define CLK125_BYPASS_EN 0x00000010 - #define TX_BW_RATE 0x0050 - #define TX_BW_MTU 0x0058 - #define TX_BW_BURST 0x005c -@@ -2700,6 +2702,15 @@ static int mv643xx_eth_probe(struct plat - - mp->dev = dev; - -+ /* Kirkwood resets some registers on gated clocks. Especially -+ * CLK125_BYPASS_EN must be cleared but is not available on -+ * all other SoCs/System Controllers using this driver. -+ */ -+ if (of_device_is_compatible(pdev->dev.of_node, -+ "marvell,kirkwood-eth-port")) -+ wrlp(mp, PORT_SERIAL_CONTROL1, -+ rdlp(mp, PORT_SERIAL_CONTROL1) & ~CLK125_BYPASS_EN); -+ - /* - * Start with a default rate, and if there is a clock, allow - * it to override the default. |