aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorRoman Glova <roman_glova@epam.com>2019-02-11 20:59:00 -0500
committerChristian Lamparter <chunkeey@gmail.com>2019-02-14 16:56:15 +0100
commit064e4315750fbb80b21293c87cae0abb2c257d9b (patch)
tree411df72dc36fdfc5248e450bb5a95acfd1470e2a /target
parent93d4439454247fb3f7cc88d8ad9a7e80bb440145 (diff)
downloadupstream-064e4315750fbb80b21293c87cae0abb2c257d9b.tar.gz
upstream-064e4315750fbb80b21293c87cae0abb2c257d9b.tar.bz2
upstream-064e4315750fbb80b21293c87cae0abb2c257d9b.zip
ipq8064: Enabling sata port ipq8064 based devices
(original text here: https://patchwork.kernel.org/patch/8686761/) On some SOCs PORTS_IMPL register value is never programmed by the BIOS and left at zero value. Which means that no sata ports are avaiable for software. AHCI driver used to cope up with this by fabricating the port_map if the PORTS_IMPL register is read zero, but recent patch broke this workaround as zero value was valid for nvme disks. This patch adds ports-implemented dt bindings as workaround for this issue in a way that DT can dictate the port_map incase where the SOCs does not program it already. This patch is equal to commits: 67f8425d0ee1 ("ipq8064: dts: force AP148 SATA port mapping") 2e7a2c91019c ("ARM: dts: qcom: Move common nodes to ipq8064-v.1.0.dtsi") in the upstream linux kernel. Signed-off-by: Roman Glova <roman_glova@epam.com> Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [added upstream commits, reorg' commit message]
Diffstat (limited to 'target')
-rw-r--r--target/linux/ipq806x/files-4.14/arch/arm/boot/dts/qcom-ipq8064.dtsi2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/ipq806x/files-4.14/arch/arm/boot/dts/qcom-ipq8064.dtsi b/target/linux/ipq806x/files-4.14/arch/arm/boot/dts/qcom-ipq8064.dtsi
index 08b8e003a8..8387460d27 100644
--- a/target/linux/ipq806x/files-4.14/arch/arm/boot/dts/qcom-ipq8064.dtsi
+++ b/target/linux/ipq806x/files-4.14/arch/arm/boot/dts/qcom-ipq8064.dtsi
@@ -860,6 +860,8 @@
compatible = "qcom,ipq806x-ahci", "generic-ahci";
reg = <0x29000000 0x180>;
+ ports-implemented = <0x1>;
+
interrupts = <0 209 0x0>;
clocks = <&gcc SFAB_SATA_S_H_CLK>,