]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00278492 imx: pcie: delay is required after REF_CLK_EN is set
authorRichard Zhu <r65037@freescale.com>
Fri, 6 Sep 2013 04:33:31 +0000 (12:33 +0800)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:55:30 +0000 (09:55 +0800)
delay is required after REF_CLK_EN of GPR1 is set.
otherwise, system would be hang when access the registers
of PCIe RC when the EARLY_PRINTK is not enabled.

Signed-off-by: Richard Zhu <r65037@freescale.com>
drivers/pci/host/pcie-imx.c

index 192b2f4ac0b08a6d2be9ea21f3acb6d2acc3e00b..22af44af46d8e6b9e3131a553e5fd9714f2a2ca9 100644 (file)
@@ -468,6 +468,7 @@ static int __init imx_pcie_probe(struct platform_device *pdev)
 
        regmap_update_bits(imx_pcie->gpr, IOMUXC_GPR1,
                        IMX6Q_GPR1_PCIE_REF_CLK_EN, 1 << 16);
+       usleep_range(1000, 2000);
 
        /* PCIE RESET, togle the external card's reset */
        imx_pcie->rst_gpio = of_get_named_gpio(np, "rst-gpios", 0);