0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2025-03-14 10:07:20 +00:00
Lakka-LibreELEC/projects/NXP/devices/iMX8/patches/linux/0009-arm64-pci-add-ext_osc.patch
Rudi Heitbaum 7862c4854a linux (NXP iMX8): adjust downstream mendel coral patches for linux-6.11
Allows pcie0 to come online (not the wireless card though)
2024-10-15 07:42:18 +00:00

36 lines
1.2 KiB
Diff

From 4e40d36940e9d5159ba8a72e4ad04580025d5b94 Mon Sep 17 00:00:00 2001
From: Rudi Heitbaum <rudi@heitbaum.com>
Date: Tue, 1 Oct 2024 14:28:57 +0000
Subject: [PATCH] arm64: pci: add ext_osc
ext_osc from https://lore.kernel.org/lkml/1552467452-538-2-git-send-email-hongxing.zhu@nxp.com/
---
drivers/pci/controller/dwc/pci-imx6.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/pci/controller/dwc/pci-imx6.c b/drivers/pci/controller/dwc/pci-imx6.c
index 74703362aeec..603ca50229ec 100644
--- a/drivers/pci/controller/dwc/pci-imx6.c
+++ b/drivers/pci/controller/dwc/pci-imx6.c
@@ -90,6 +90,7 @@ struct imx_pcie {
u32 tx_deemph_gen2_6db;
u32 tx_swing_full;
u32 tx_swing_low;
+ u32 ext_osc;
struct regulator *vpcie;
struct regulator *vph;
void __iomem *phy_base;
@@ -1287,6 +1288,9 @@ static int imx_pcie_probe(struct platform_device *pdev)
if (IS_ERR(pci->dbi_base))
return PTR_ERR(pci->dbi_base);
+ if (of_property_read_u32(node, "ext_osc", &imx_pcie->ext_osc) < 0)
+ imx_pcie->ext_osc = 0;
+
/* Fetch GPIOs */
imx_pcie->reset_gpio = of_get_named_gpio(node, "reset-gpio", 0);
imx_pcie->gpio_active_high = of_property_read_bool(node,
--
2.43.0