summaryrefslogtreecommitdiff
path: root/cpu/ppc4xx/cpu_init.c
diff options
context:
space:
mode:
authorroy zang <tie-fei.zang@freescale.com>2006-11-29 09:45:03 +0800
committerZang Tiefei <roy@bus.ap.freescale.net>2006-11-29 09:45:03 +0800
commit6bd87c0aeea441c49d59fd542b84a9be88d08b17 (patch)
treee450a5f1e69a78a203a1e15167d7fefa43c5ce7e /cpu/ppc4xx/cpu_init.c
parent0a8eb59983047ae3bcc0babf3ee4d10d01abe7da (diff)
parentd2c83f549378fb3fc34cb3c2e62fd772fbf8b68b (diff)
downloadu-boot-imx-6bd87c0aeea441c49d59fd542b84a9be88d08b17.zip
u-boot-imx-6bd87c0aeea441c49d59fd542b84a9be88d08b17.tar.gz
u-boot-imx-6bd87c0aeea441c49d59fd542b84a9be88d08b17.tar.bz2
Solve the copyright conflicts when merging 'master' into hpc2.
Merge branch 'master' into hpc2 Conflicts: drivers/cfi_flash.c
Diffstat (limited to 'cpu/ppc4xx/cpu_init.c')
-rw-r--r--cpu/ppc4xx/cpu_init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpu/ppc4xx/cpu_init.c b/cpu/ppc4xx/cpu_init.c
index def46f1..4b746b0 100644
--- a/cpu/ppc4xx/cpu_init.c
+++ b/cpu/ppc4xx/cpu_init.c
@@ -321,6 +321,10 @@ cpu_init_f (void)
#else
val |= 0xf0000000; /* generate system reset after 2.684 seconds */
#endif
+#if defined(CFG_4xx_RESET_TYPE)
+ val &= ~0x30000000; /* clear WRC bits */
+ val |= CFG_4xx_RESET_TYPE << 28; /* set board specific WRC type */
+#endif
mtspr(tcr, val);
val = mfspr(tsr);