From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Harvey Date: Thu, 5 Jun 2014 21:35:27 -0700 Subject: [U-Boot] U-boot hangs on imx6 pci driver In-Reply-To: References: <201405271525.51525.marex@denx.de> <5384A47C.7010107@elsoft.ch> <201405271656.31939.marex@denx.de> <53859308.3020006@elsoft.ch> <53882D92.6020708@elsoft.ch> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Jun 5, 2014 at 8:27 AM, Fabio Estevam wrote: > Tim, > > On Wed, Jun 4, 2014 at 9:16 PM, Tim Harvey wrote: > >> work-around the problem on my end as well. Note that I do not see this >> issue unless I'm using one of our boards with a PCIe switch and If I >> disable PCI support in u-boot this does not occur. This feels like a > > Does this help? > > drivers/pci/pcie_imx.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/pci/pcie_imx.c b/drivers/pci/pcie_imx.c > index c48737e..190cdec 100644 > --- a/drivers/pci/pcie_imx.c > +++ b/drivers/pci/pcie_imx.c > @@ -435,8 +435,7 @@ static int imx6_pcie_init_phy(void) > clrbits_le32(&iomuxc_regs->gpr[12], IOMUXC_GPR12_APPS_LTSSM_ENABLE); > > clrsetbits_le32(&iomuxc_regs->gpr[12], > - IOMUXC_GPR12_DEVICE_TYPE_MASK, > - IOMUXC_GPR12_DEVICE_TYPE_RC); > + IOMUXC_GPR12_DEVICE_TYPE_MASK, 4 << 12); > clrsetbits_le32(&iomuxc_regs->gpr[12], > IOMUXC_GPR12_LOS_LEVEL_MASK, > IOMUXC_GPR12_LOS_LEVEL_9); Fabio, Good catch, but that doesn't resolve the issue i'm seeing here. Any other ideas? Regards, Tim