]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/environment.h
Fix problems with SanDisk Corporation Cruzer Micro USB memory stick.
[karo-tx-uboot.git] / include / environment.h
index bb109649f6bab7492ba9242d64fc43784c8ed2ab..422f800897fb78982e388d5ef9371aed34810ac5 100644 (file)
 # endif
 #endif /* CFG_ENV_IS_IN_FLASH */
 
+#if defined(CFG_ENV_IS_IN_NAND)
+# ifndef CFG_ENV_OFFSET
+#  error "Need to define CFG_ENV_OFFSET when using CFG_ENV_IS_IN_NAND"
+# endif
+# ifndef CFG_ENV_SIZE
+#  error "Need to define CFG_ENV_SIZE when using CFG_ENV_IS_IN_NAND"
+# endif
+# ifdef CFG_ENV_OFFSET_REDUND
+#  define CFG_REDUNDAND_ENVIRONMENT
+# endif
+#endif /* CFG_ENV_IS_IN_NAND */
+
 
 #ifdef CFG_REDUNDAND_ENVIRONMENT
 # define ENV_HEADER_SIZE       (sizeof(unsigned long) + 1)