]> git.sur5r.net Git - u-boot/commitdiff
tseries: Set CONFIG_ENV_IS_NOWHERE for SPL+NAND
authorTom Rini <trini@ti.com>
Fri, 18 Jul 2014 15:51:33 +0000 (11:51 -0400)
committerTom Rini <trini@ti.com>
Mon, 25 Aug 2014 12:52:34 +0000 (08:52 -0400)
In the case of SPL on these boards we only need environment for
SPL_USBETH, so it's safe to normally use ENV_IS_NOWHERE and SPL+NAND
does not support environment today.

Cc: Hannes Petermaier <oe5hpm@oevsv.at>
Signed-off-by: Tom Rini <trini@ti.com>
include/configs/tseries.h

index 1fd6e32bafc96c52f7dce86958196b072c461378..1dd13fd1b071ad6b021c889092c2e688a0cfeb38 100644 (file)
 #define CONFIG_SYS_REDUNDAND_ENVIRONMENT
 
 #elif defined(CONFIG_NAND)
-#undef CONFIG_ENV_IS_NOWHERE
+/* No NAND env support in SPL */
+#ifdef CONFIG_SPL_BUILD
+#define CONFIG_ENV_IS_NOWHERE
+#else
 #define CONFIG_ENV_IS_IN_NAND
+#endif
 #define CONFIG_ENV_OFFSET              0x120000 /* TODO: Adresse definieren */
 #define CONFIG_SYS_ENV_SECT_SIZE       CONFIG_ENV_SIZE
 #else