]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ppc4xx: Move definition for PPC4xx NAND FLASH controller to header
authorStefan Roese <sr@denx.de>
Wed, 20 May 2009 08:58:01 +0000 (10:58 +0200)
committerStefan Roese <sr@denx.de>
Sat, 23 May 2009 10:51:39 +0000 (12:51 +0200)
This patch moves the definition for the PPC4xx NAND FLASH controller
(NDFC) CONFIG_NAND_NDFC into include/ppc4xx.h. This is needed for the
upcoming fix for the ECC byte ordering of the NDFC driver.

Signed-off-by: Stefan Roese <sr@denx.de>
Acked-by: Scott Wood <scottwood@freescale.com>
cpu/ppc4xx/ndfc.c
include/ppc4xx.h

index 3a5af12db9c005ee6e849d1ca011d0ef90d39e11..ba481ad5584c4394a0bc243649591b56c55c1833 100644 (file)
@@ -1,9 +1,9 @@
 /*
  * Overview:
  *   Platform independend driver for NDFC (NanD Flash Controller)
- *   integrated into EP440 cores
+ *   integrated into IBM/AMCC PPC4xx cores
  *
- * (C) Copyright 2006-2007
+ * (C) Copyright 2006-2009
  * Stefan Roese, DENX Software Engineering, sr@denx.de.
  *
  * Based on original work by
 #include <common.h>
 
 #if defined(CONFIG_CMD_NAND) && !defined(CONFIG_NAND_LEGACY) && \
-       (defined(CONFIG_440EP) || defined(CONFIG_440GR) ||           \
-        defined(CONFIG_440EPX) || defined(CONFIG_440GRX) ||         \
-        defined(CONFIG_405EZ) || defined(CONFIG_405EX) ||           \
-        defined(CONFIG_460EX) || defined(CONFIG_460GT))
+    defined(CONFIG_NAND_NDFC)
 
 #include <nand.h>
 #include <linux/mtd/ndfc.h>
index f1478854d116e30f9d69789b15da56dd1bb807d9..55ff32353a1091d7d70fe8b94b9c856dfe3d44ea 100644 (file)
 #define CONFIG_SDRAM_PPC4xx_IBM_DDR2   /* IBM DDR(2) controller */
 #endif
 
+#if defined(CONFIG_440EP) || defined(CONFIG_440GR) ||  \
+    defined(CONFIG_440EPX) || defined(CONFIG_440GRX) ||        \
+    defined(CONFIG_405EZ) || defined(CONFIG_405EX) ||  \
+    defined(CONFIG_460EX) || defined(CONFIG_460GT)
+#define CONFIG_NAND_NDFC
+#endif
+
 /* PLB4 CrossBar Arbiter Core supported across PPC4xx families */
 #if defined(CONFIG_405EX) || \
     defined(CONFIG_440EP) || defined(CONFIG_440EPX) || \