diff options
author | Ian Pozella <Ian.Pozella@imgtec.com> | 2017-02-15 09:05:24 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-03-22 11:43:22 +0100 |
commit | 52c17bff3c861dc28517303e535b880473a54498 (patch) | |
tree | ed706b19a6a8f37598f73bba9c5eefb567719482 /target/linux/pistachio/patches-4.9/701-net-micrel-Disable-PME.patch | |
parent | 370d740647707f9caec915b5c1f5cb1a278b1d3b (diff) | |
download | upstream-52c17bff3c861dc28517303e535b880473a54498.tar.gz upstream-52c17bff3c861dc28517303e535b880473a54498.tar.bz2 upstream-52c17bff3c861dc28517303e535b880473a54498.zip |
pistachio: add 4.9 kernel support
This adds kernel support for the Pistachio SoC and the Marduk (Ci40)
board which uses it.
Much of the code for Pistachio has been upstreamed however some
patches are still required to boot from the Marduk board:
* spi bug fixes
* dma bug fixes
* pistachio internal clock tree bug fixes
* spi-nand implementation
* dts based mtd device naming scheme
* dts backports and bug fixes
Signed-off-by: Abhijit Mahajani <Abhijit.Mahajani@imgtec.com>
Signed-off-by: Francois Berder <francois.berder@imgtec.com>
Signed-off-by: Ian Pozella <Ian.Pozella@imgtec.com>
Diffstat (limited to 'target/linux/pistachio/patches-4.9/701-net-micrel-Disable-PME.patch')
-rw-r--r-- | target/linux/pistachio/patches-4.9/701-net-micrel-Disable-PME.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/target/linux/pistachio/patches-4.9/701-net-micrel-Disable-PME.patch b/target/linux/pistachio/patches-4.9/701-net-micrel-Disable-PME.patch new file mode 100644 index 0000000000..4274a353e2 --- /dev/null +++ b/target/linux/pistachio/patches-4.9/701-net-micrel-Disable-PME.patch @@ -0,0 +1,40 @@ +From 5e84aec87108e0481af7495a1e9a9953d8590d70 Mon Sep 17 00:00:00 2001 +From: Xue Liu <liuxuenetmail@gmail.com> +Date: Mon, 6 Feb 2017 17:43:19 +0000 +Subject: net: micrel: Disable PME + +Disable PME for Micrel phy driver allowing the Ethernet ports LED +driver to work on marduk platform. + +Signed-off-by: Xue Liu <liuxuenetmail@gmail.com> +--- + drivers/net/phy/micrel.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c +index ea92d52..73401fb 100644 +--- a/drivers/net/phy/micrel.c ++++ b/drivers/net/phy/micrel.c +@@ -273,6 +273,7 @@ static int kszphy_config_init(struct phy_device *phydev) + struct kszphy_priv *priv = phydev->priv; + const struct kszphy_type *type; + int ret; ++ int temp = 0; + + if (!priv) + return 0; +@@ -308,6 +309,11 @@ static int kszphy_config_init(struct phy_device *phydev) + return ret; + } + ++ /* disable PME */ ++ temp = phy_read(phydev, 0x16); ++ temp &= ~(1 << 15); ++ phy_write(phydev, 0x16, temp); ++ + return 0; + } + +-- +2.7.4 + |