From 0f7de49fa37859b46de8d4e25163cfebe3db3a96 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 4 Aug 2015 23:10:03 +0000 Subject: ipq806x: fix freeze in PCIe code when booting with an old u-boot Old bootloader (same ones which have DT disabled) don't perform any PCIe initialization. The consequence is a freeze during PCIe bring-up on these old u-boot. Same kernel with a newer bootloaders works fine as they contain the corresponding PCIe init code. In this change, we'll add the missing init and make sure the kernel doesn't rely on some preexisting init to get PCIe to work. That includes the following changes: *GPIOs: set function & drive strength *Clocks: add init code for aux & ref clocks *PCIe driver: additional init of the hardware controller Tested 3.18 and 4.1 on an AP148 with bootloader branch 0.0.1 Signed-off-by: Mathieu Olivari SVN-Revision: 46557 --- .../707-ARM-dts-qcom-add-mdio-nodes-to-ap148-db149.patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'target/linux/ipq806x/patches-3.18/707-ARM-dts-qcom-add-mdio-nodes-to-ap148-db149.patch') diff --git a/target/linux/ipq806x/patches-3.18/707-ARM-dts-qcom-add-mdio-nodes-to-ap148-db149.patch b/target/linux/ipq806x/patches-3.18/707-ARM-dts-qcom-add-mdio-nodes-to-ap148-db149.patch index 851682a9aa..e1b41d80dc 100644 --- a/target/linux/ipq806x/patches-3.18/707-ARM-dts-qcom-add-mdio-nodes-to-ap148-db149.patch +++ b/target/linux/ipq806x/patches-3.18/707-ARM-dts-qcom-add-mdio-nodes-to-ap148-db149.patch @@ -22,7 +22,7 @@ Signed-off-by: Mathieu Olivari }; chosen { -@@ -59,6 +60,15 @@ +@@ -61,6 +62,15 @@ bias-none; }; }; @@ -38,7 +38,7 @@ Signed-off-by: Mathieu Olivari }; gsbi@16300000 { -@@ -168,5 +178,33 @@ +@@ -170,5 +180,33 @@ pinctrl-0 = <&pcie1_pins>; pinctrl-names = "default"; }; @@ -82,7 +82,7 @@ Signed-off-by: Mathieu Olivari }; chosen { -@@ -62,6 +63,15 @@ +@@ -65,6 +66,15 @@ bias-none; }; }; @@ -98,7 +98,7 @@ Signed-off-by: Mathieu Olivari }; gsbi2: gsbi@12480000 { -@@ -173,5 +183,44 @@ +@@ -176,5 +186,44 @@ pinctrl-0 = <&pcie2_pins>; pinctrl-names = "default"; }; -- cgit v1.2.3