]> err.no Git - linux-2.6/commitdiff
[POWERPC] 4xx: Fix PESDRn_UTLSET1 register setup on 460EX/GT
authorStefan Roese <sr@denx.de>
Tue, 1 Apr 2008 13:45:00 +0000 (00:45 +1100)
committerJosh Boyer <jwboyer@linux.vnet.ibm.com>
Thu, 3 Apr 2008 01:29:30 +0000 (20:29 -0500)
The patch fixes a bug, where the PESDRn_UTLSET1 register was setup
wrongly resulting in a non working PCIe port 1. With this fix both
PCIe ports work fine again.

Signed-off-by: Stefan Roese <sr@denx.de>
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
arch/powerpc/sysdev/ppc4xx_pci.c

index aa856ea9fed89686bf390fe8c2060dab5c56e001..1814adbd22363c13f79f8e2744f41cf9f14e1f5d 100644 (file)
@@ -785,19 +785,17 @@ static int ppc460ex_pciex_init_port_hw(struct ppc4xx_pciex_port *port)
        u32 val;
        u32 utlset1;
 
-       if (port->endpoint) {
+       if (port->endpoint)
                val = PTYPE_LEGACY_ENDPOINT << 20;
-               utlset1 = 0x20222222;
-       } else {
+       else
                val = PTYPE_ROOT_PORT << 20;
-               utlset1 = 0x21222222;
-       }
 
        if (port->index == 0) {
                val |= LNKW_X1 << 12;
+               utlset1 = 0x20000000;
        } else {
                val |= LNKW_X4 << 12;
-               utlset1 |= 0x00101101;
+               utlset1 = 0x20101101;
        }
 
        mtdcri(SDR0, port->sdr_base + PESDRn_DLPSET, val);