summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTien Fong Chee <tfchee@pg-tfchee-lv.altera.com>2015-08-05 12:41:24 +0800
committerTien Fong Chee <tfchee@pg-tfchee-lv.altera.com>2015-08-05 12:41:24 +0800
commit353283b6e75eabdcc48dadf08507b4b86c229d78 (patch)
tree8be26eaab6221425b3647d8dd75aaca141db9130
parent6aa6ebf988745e28f5bcf76bed4f49a81dab21b5 (diff)
downloadu-boot-socfpga-353283b6e75eabdcc48dadf08507b4b86c229d78.tar.gz
is checked on preloader. The compilation having issue because some #define are not included during compilation when BOOT_FROM_NAND is checked on preloader support package setting. This patch fixed the issue by including those missing #define when the BOOT_FROM_NAND is checked. Signed-off-by: Tien Fong Chee <tfchee@pg-tfchee-lv.altera.com>
-rw-r--r--include/configs/socfpga_common.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h
index fa1402cb30..6d1424a30a 100644
--- a/include/configs/socfpga_common.h
+++ b/include/configs/socfpga_common.h
@@ -1,5 +1,5 @@
/*
- * Copyright Altera Corporation (C) 2013. All rights reserved
+ * Copyright Altera Corporation (C) 2013-2015. All rights reserved
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
@@ -507,7 +507,11 @@
#endif /* CONFIG_CADENCE_QSPI */
/* NAND */
+#if (CONFIG_PRELOADER_BOOT_FROM_NAND == 0)
#undef CONFIG_NAND_DENALI
+#else
+#define CONFIG_NAND_DENALI
+#endif
#ifdef CONFIG_NAND_DENALI
#define CONFIG_CMD_NAND
#define CONFIG_SYS_MAX_NAND_DEVICE 1