From: Tom Rini Date: Tue, 30 Apr 2013 20:00:15 +0000 (-0400) Subject: mx28evk: Guard NAND-related ENV defines with CONFIG_ENV_IS_IN_NAND X-Git-Tag: v2025.01-rc5-pxa1908~15849^2~76 X-Git-Url: http://git.dujemihanovic.xyz/%22http:/www.sics.se/static/%7B%7B%20%24.Site.BaseURL%20%7D%7Dposts/index.xml?a=commitdiff_plain;h=da85c9c81331575d6e01134050506e8d630688c5;p=u-boot.git mx28evk: Guard NAND-related ENV defines with CONFIG_ENV_IS_IN_NAND The redundancy related defines are only correct for NAND, so guard all of that area with CONFIG_ENV_IS_IN_NAND Cc: Fabio Estevam Signed-off-by: Tom Rini --- diff --git a/include/configs/mx28evk.h b/include/configs/mx28evk.h index d470b4733e..3747955bde 100644 --- a/include/configs/mx28evk.h +++ b/include/configs/mx28evk.h @@ -138,14 +138,14 @@ #define CONFIG_SYS_NAND_5_ADDR_CYCLE /* Environment is in NAND */ +#ifdef CONFIG_ENV_IS_IN_NAND #define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE #define CONFIG_ENV_SECT_SIZE (128 * 1024) #define CONFIG_ENV_RANGE (512 * 1024) -#ifndef CONFIG_ENV_OFFSET #define CONFIG_ENV_OFFSET 0x300000 -#endif #define CONFIG_ENV_OFFSET_REDUND \ (CONFIG_ENV_OFFSET + CONFIG_ENV_RANGE) +#endif #define CONFIG_CMD_UBI #define CONFIG_CMD_UBIFS