diff options
author | Mathias Kresin <dev@kresin.me> | 2017-09-04 23:25:15 +0200 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2017-09-05 08:43:39 +0200 |
commit | 6b06c2fb8ec15faed936cae79f3d6cec2705cac1 (patch) | |
tree | d149fb5780fdc35c21fa7d20df8515b2ba1d7f4b /target/linux/lantiq/patches-4.4/0301-xrx200-add-gphy-clk-src-device-tree-binding.patch | |
parent | e0d6f541f731a49d49f59734d1b72b6e05e4ff9b (diff) | |
download | upstream-6b06c2fb8ec15faed936cae79f3d6cec2705cac1.tar.gz upstream-6b06c2fb8ec15faed936cae79f3d6cec2705cac1.tar.bz2 upstream-6b06c2fb8ec15faed936cae79f3d6cec2705cac1.zip |
lantiq: drop kernel 4.4 support
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/lantiq/patches-4.4/0301-xrx200-add-gphy-clk-src-device-tree-binding.patch')
-rw-r--r-- | target/linux/lantiq/patches-4.4/0301-xrx200-add-gphy-clk-src-device-tree-binding.patch | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/target/linux/lantiq/patches-4.4/0301-xrx200-add-gphy-clk-src-device-tree-binding.patch b/target/linux/lantiq/patches-4.4/0301-xrx200-add-gphy-clk-src-device-tree-binding.patch deleted file mode 100644 index e42aaf9c07..0000000000 --- a/target/linux/lantiq/patches-4.4/0301-xrx200-add-gphy-clk-src-device-tree-binding.patch +++ /dev/null @@ -1,30 +0,0 @@ ---- a/arch/mips/lantiq/xway/sysctrl.c -+++ b/arch/mips/lantiq/xway/sysctrl.c -@@ -442,6 +442,20 @@ static void clkdev_add_clkout(void) - } - } - -+static void set_phy_clock_source(struct device_node *np_cgu) -+{ -+ u32 phy_clk_src, ifcc; -+ -+ if (!np_cgu) -+ return; -+ -+ if (of_property_read_u32(np_cgu, "lantiq,phy-clk-src", &phy_clk_src)) -+ return; -+ -+ ifcc = ltq_cgu_r32(ifccr) & ~(0x1c); -+ ltq_cgu_w32(ifcc | (phy_clk_src << 2), ifccr); -+} -+ - /* bring up all register ranges that we need for basic system control */ - void __init ltq_soc_init(void) - { -@@ -628,4 +642,6 @@ void __init ltq_soc_init(void) - if (of_machine_is_compatible("lantiq,vr9")) - xbar_fpi_burst_disable(); - usb_set_clock(); -+ -+ set_phy_clock_source(np_cgu); - } |