Subject: [ubootdev] [PATCH v1]ppc/85xx/NAND:Check to program BR3/OR3 required or not
From: "Dudhat Dipen-B09055" <[email-masked]>
To: "Development U-Boot-UBOOTDEV" <[email-masked]>
Cc: "Dudhat Dipen-B09055" <[email-masked]>
Date: Fri, 18 Sep 2009 19:21:57 +0530

Signed-off-by: Dipen Dudhat <[email-masked]>
---
-Please ignore the last patch of the same.
 cpu/mpc85xx/cpu_init_nand.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/cpu/mpc85xx/cpu_init_nand.c b/cpu/mpc85xx/cpu_init_nand.c
index e62f8d3..ed0eb2d 100644
--- a/cpu/mpc85xx/cpu_init_nand.c
+++ b/cpu/mpc85xx/cpu_init_nand.c
@@ -37,9 +37,12 @@ void cpu_init_f(void)
 	&& defined(CONFIG_NAND_OR_PRELIM)
 	out_be32(&lbc->br0, CONFIG_NAND_BR_PRELIM);
 	out_be32(&lbc->or0, CONFIG_NAND_OR_PRELIM);
+#if defined(CONFIG_SYS_BR3_PRELIM) \
+	&& defined(CONFIG_SYS_OR3_PRELIM)
 	/* for FPGA */
 	out_be32(&lbc->br3, CONFIG_SYS_BR3_PRELIM);
 	out_be32(&lbc->or3, CONFIG_SYS_OR3_PRELIM);
+#endif
 #else
 #error  CONFIG_NAND_BR_PRELIM, CONFIG_NAND_OR_PRELIM must be defined
 #endif
-- 
1.5.6.3