diff options
author | Wolfgang Denk <wd@denx.de> | 2008-07-10 10:50:38 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-07-10 10:50:38 +0200 |
commit | c4b81f3238d77a4df343bd70ddfb7ebd29ca1dda (patch) | |
tree | aec9936268a0f04695290dc2b5b2a81f6373d968 /cpu/ppc4xx/4xx_pcie.c | |
parent | e870690bdca154943ecadd5212d2d59c1b9d391b (diff) | |
parent | b002144e1dc21374b1ef5281fe6b5d014af96650 (diff) | |
download | u-boot-imx-c4b81f3238d77a4df343bd70ddfb7ebd29ca1dda.zip u-boot-imx-c4b81f3238d77a4df343bd70ddfb7ebd29ca1dda.tar.gz u-boot-imx-c4b81f3238d77a4df343bd70ddfb7ebd29ca1dda.tar.bz2 |
Merge branch 'master' of git://www.denx.de/git/u-boot-ppc4xx
Diffstat (limited to 'cpu/ppc4xx/4xx_pcie.c')
-rw-r--r-- | cpu/ppc4xx/4xx_pcie.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/cpu/ppc4xx/4xx_pcie.c b/cpu/ppc4xx/4xx_pcie.c index 503facc..d50a538 100644 --- a/cpu/ppc4xx/4xx_pcie.c +++ b/cpu/ppc4xx/4xx_pcie.c @@ -615,22 +615,20 @@ int __ppc4xx_init_pcie_port_hw(int port, int rootport) #if defined(CONFIG_460EX) || defined(CONFIG_460GT) int __ppc4xx_init_pcie_port_hw(int port, int rootport) { - u32 val = 1 << 24; + u32 val; u32 utlset1; - if (rootport) { + if (rootport) val = PTYPE_ROOT_PORT << 20; - utlset1 = 0x21222222; - } else { + else val = PTYPE_LEGACY_ENDPOINT << 20; - utlset1 = 0x20222222; - } if (port == 0) { val |= LNKW_X1 << 12; + utlset1 = 0x20000000; } else { val |= LNKW_X4 << 12; - utlset1 |= 0x00101101; + utlset1 = 0x20101101; } SDR_WRITE(SDRN_PESDR_DLPSET(port), val); |