diff options
author | Felix Fietkau <nbd@nbd.name> | 2018-04-09 09:55:48 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2018-04-27 15:19:19 +0200 |
commit | 771f1ca3ffe10871893751ab384de3b7a9b06610 (patch) | |
tree | b9b095a1fa53905ed11ac67578d903097ab2ae21 /target/linux/brcm63xx/patches-4.4/001-4.15-04-tty-bcm63xx_uart-allow-naming-clock-in-device-tree.patch | |
parent | 1de74df8b9bbaafd147a2380fa306140b79b60d9 (diff) | |
download | upstream-771f1ca3ffe10871893751ab384de3b7a9b06610.tar.gz upstream-771f1ca3ffe10871893751ab384de3b7a9b06610.tar.bz2 upstream-771f1ca3ffe10871893751ab384de3b7a9b06610.zip |
brcm63xx: remove linux 4.4 support
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/brcm63xx/patches-4.4/001-4.15-04-tty-bcm63xx_uart-allow-naming-clock-in-device-tree.patch')
-rw-r--r-- | target/linux/brcm63xx/patches-4.4/001-4.15-04-tty-bcm63xx_uart-allow-naming-clock-in-device-tree.patch | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/target/linux/brcm63xx/patches-4.4/001-4.15-04-tty-bcm63xx_uart-allow-naming-clock-in-device-tree.patch b/target/linux/brcm63xx/patches-4.4/001-4.15-04-tty-bcm63xx_uart-allow-naming-clock-in-device-tree.patch deleted file mode 100644 index a8fd5afcb6..0000000000 --- a/target/linux/brcm63xx/patches-4.4/001-4.15-04-tty-bcm63xx_uart-allow-naming-clock-in-device-tree.patch +++ /dev/null @@ -1,55 +0,0 @@ -From 317f8659bba01b307cbe4e9902d4e3d333fd7164 Mon Sep 17 00:00:00 2001 -From: Jonas Gorski <jonas.gorski@gmail.com> -Date: Sun, 16 Jul 2017 12:39:17 +0200 -Subject: [PATCH V2 4/8] tty/bcm63xx_uart: allow naming clock in device tree - -Codify using a named clock for the refclk of the uart. This makes it -easier if we might need to add a gating clock (like present on the -BCM6345). - -Acked-by: Rob Herring <robh@kernel.org> -Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> -Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> -Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com> ---- - Documentation/devicetree/bindings/serial/brcm,bcm6345-uart.txt | 6 ++++++ - drivers/tty/serial/bcm63xx_uart.c | 6 ++++-- - 2 files changed, 10 insertions(+), 2 deletions(-) - ---- a/Documentation/devicetree/bindings/serial/brcm,bcm6345-uart.txt -+++ b/Documentation/devicetree/bindings/serial/brcm,bcm6345-uart.txt -@@ -11,6 +11,11 @@ Required properties: - - clocks: Clock driving the hardware; used to figure out the baud rate - divisor. - -+ -+Optional properties: -+ -+- clock-names: Should be "refclk". -+ - Example: - - uart0: serial@14e00520 { -@@ -19,6 +24,7 @@ Example: - interrupt-parent = <&periph_intc>; - interrupts = <2>; - clocks = <&periph_clk>; -+ clock-names = "refclk"; - }; - - clocks { ---- a/drivers/tty/serial/bcm63xx_uart.c -+++ b/drivers/tty/serial/bcm63xx_uart.c -@@ -841,8 +841,10 @@ static int bcm_uart_probe(struct platfor - if (!res_irq) - return -ENODEV; - -- clk = pdev->dev.of_node ? of_clk_get(pdev->dev.of_node, 0) : -- clk_get(&pdev->dev, "refclk"); -+ clk = clk_get(&pdev->dev, "refclk"); -+ if (IS_ERR(clk) && pdev->dev.of_node) -+ clk = of_clk_get(pdev->dev.of_node, 0); -+ - if (IS_ERR(clk)) - return -ENODEV; - |