aboutsummaryrefslogtreecommitdiffstats
path: root/x-loader/include
diff options
context:
space:
mode:
authorH. Nikolaus Schaller <hns@goldelico.com>2012-04-19 23:22:02 +0200
committerH. Nikolaus Schaller <hns@goldelico.com>2012-04-19 23:22:02 +0200
commit0e226b20497768b6af40ace2bb1fa5d14c090566 (patch)
tree8c3104eeb9074fabb4fd6e8e72a8277d395bdedb /x-loader/include
parenteaad9491d530d1c86e23586d0651d1f9a8569cba (diff)
downloadbootable_bootloader_goldelico_gta04_x-loader-0e226b20497768b6af40ace2bb1fa5d14c090566.zip
bootable_bootloader_goldelico_gta04_x-loader-0e226b20497768b6af40ace2bb1fa5d14c090566.tar.gz
bootable_bootloader_goldelico_gta04_x-loader-0e226b20497768b6af40ace2bb1fa5d14c090566.tar.bz2
added option to enable/disable NAND booting so that we can compile a serial-loader from the same sources
Diffstat (limited to 'x-loader/include')
-rw-r--r--x-loader/include/configs/omap3530gta04.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/x-loader/include/configs/omap3530gta04.h b/x-loader/include/configs/omap3530gta04.h
index 07fa63d..3e6ef21 100644
--- a/x-loader/include/configs/omap3530gta04.h
+++ b/x-loader/include/configs/omap3530gta04.h
@@ -85,6 +85,9 @@
//#define SDRC_B1_R_B0_C 1
#define SDRC_R_B_C 1
+/* Enable the below macro if NAND boot support is required */
+//#define CONFIG_NAND 1
+
#define NAND_BASE_ADR NAND_BASE
#define ONENAND_BASE ONENAND_MAP
#define ONENAND_ADDR ONENAND_BASE
@@ -124,6 +127,8 @@
*/
#define CONFIG_STACKSIZE (128*1024) /* regular stack */
+#if defined(CONFIG_NAND)
+
/*-----------------------------------------------------------------------
* Board NAND Info.
*/
@@ -205,5 +210,7 @@
#define ONENAND_PAGE_SIZE 2048 /* 2KB */
#define ONENAND_BLOCK_SIZE 0x20000 /* 128KB */
+#endif
+
#endif /* __CONFIG_H */