From 6ecbe13756711baa795180d1a63b7a73a835c303 Mon Sep 17 00:00:00 2001 From: Tim Harvey Date: Fri, 12 May 2017 12:58:41 -0700 Subject: drivers: pci: imx: add imx_pcie_remove function There is no dedicated reset signal wired up for the MX6QDL thus if the bootloader enables the link we need some special handling to get the core back into a state where it is safe to touch it for configuration. While there has been some special handling in the Linux kernel to do this, it was removed in 4.11 thus we need to do it properly in the bootloader and therefore without this if you enable PCI in the bootloader you will hang while booting the 4.11 kernel. This puts the PCIe controller back into a safe state for the kernel driver before launching the kernel. Signed-off-by: Tim Harvey Reviewed-by: Fabio Estevam Tested-by: Peter Senna Tschudin --- include/pci.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/pci.h') diff --git a/include/pci.h b/include/pci.h index d3c955eb80..c8ef997d0d 100644 --- a/include/pci.h +++ b/include/pci.h @@ -754,6 +754,10 @@ int pci_last_busno(void); extern void pci_mpc85xx_init (struct pci_controller *hose); #endif +#ifdef CONFIG_PCIE_IMX +extern void imx_pcie_remove(void); +#endif + #if !defined(CONFIG_DM_PCI) || defined(CONFIG_DM_PCI_COMPAT) /** * pci_write_bar32() - Write the address of a BAR including control bits -- cgit v1.2.3