Patchwork [U-Boot,v1,2/8] km-powerpc: move CONFIG_FLASH_CFI_MTD to km83xx-common.h

login
register
mail settings
Submitter Valentin Longchamp
Date July 26, 2013, 10:02 a.m.
Message ID <1374832955-4544-3-git-send-email-valentin.longchamp@keymile.com>
Download mbox | patch
Permalink /patch/262109/
State Superseded
Delegated to: York Sun
Headers show

Comments

Valentin Longchamp - July 26, 2013, 10:02 a.m.
This is because kmp204x.h does not have FLASH, so this must not be
defined for all powerpc boards.

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
---
 include/configs/km/km-powerpc.h    | 1 -
 include/configs/km/km83xx-common.h | 2 ++
 2 files changed, 2 insertions(+), 1 deletion(-)

Patch

diff --git a/include/configs/km/km-powerpc.h b/include/configs/km/km-powerpc.h
index b84f12d..33b3c9e 100644
--- a/include/configs/km/km-powerpc.h
+++ b/include/configs/km/km-powerpc.h
@@ -40,7 +40,6 @@ 
 #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS	10
 
 #define CONFIG_ENV_SIZE		0x04000		/* Size of Environment */
-#define CONFIG_FLASH_CFI_MTD
 
 #define CONFIG_SYS_MEMTEST_START 0x00100000	/* memtest works on */
 
diff --git a/include/configs/km/km83xx-common.h b/include/configs/km/km83xx-common.h
index cdfa83a..a0e69e4 100644
--- a/include/configs/km/km83xx-common.h
+++ b/include/configs/km/km83xx-common.h
@@ -15,6 +15,8 @@ 
 #include "keymile-common.h"
 #include "km-powerpc.h"
 
+#define CONFIG_FLASH_CFI_MTD
+
 #ifndef MTDIDS_DEFAULT
 # define MTDIDS_DEFAULT	"nor0=boot"
 #endif /* MTDIDS_DEFAULT */