]> git.sur5r.net Git - u-boot/blobdiff - include/configs/ML2.h
Merge with /git/u-boot.git
[u-boot] / include / configs / ML2.h
index d66266126c841bbdac263e037caf873a2e61de70..d8805ea5a7059b30b9167532cf1960e2e29c90cb 100644 (file)
 #define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
 
 
-
-#define CONFIG_COMMANDS               ( (CONFIG_CMD_DFL & (~CFG_CMD_NET)        &  \
-                               (~CFG_CMD_RTC) & ~(CFG_CMD_PCI)  & ~(CFG_CMD_I2C)) | \
+#define CONFIG_COMMANDS               ((CONFIG_CMD_DFL & \
+                                    ~( CFG_CMD_NET | \
+                                       CFG_CMD_RTC | \
+                                       CFG_CMD_PCI | \
+                                       CFG_CMD_I2C   \
+                                     ) ) | \
                                CFG_CMD_IRQ     | \
                                CFG_CMD_KGDB    | \
                                CFG_CMD_BEDBUG  | \
-                               CFG_CMD_ELF      | CFG_CMD_JFFS2 )
+                               CFG_CMD_ELF     | \
+                               CFG_CMD_JFFS2     )
 
 /* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
 #include <cmd_confdefs.h>
 #define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 
-
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_DCACHE_SIZE                8192    /* For IBM 405 CPUs                     */
+#define CFG_DCACHE_SIZE                8192    /* For AMCC 405 CPUs                    */
 #define CFG_CACHELINE_SIZE     32      /* ...                  */
 #if (CONFIG_COMMANDS & CFG_CMD_KGDB)
 #define CFG_CACHELINE_SHIFT    5       /* log base 2 of the above value        */
 #define CONFIG_KGDB_SER_INDEX  2       /* which serial port to use */
 #endif
 
-/* JFFS2 stuff */
+/*
+ * JFFS2 partitions
+ *
+ */
+/* No command line, one static partition, whole device */
+#undef CONFIG_JFFS2_CMDLINE
+#define CONFIG_JFFS2_DEV               "nor0"
+#define CONFIG_JFFS2_PART_SIZE         0xFFFFFFFF
+#define CONFIG_JFFS2_PART_OFFSET       0x00080000
+
+/* mtdparts command line support */
+/* Note: fake mtd_id used, no linux mtd map file */
+/*
+#define CONFIG_JFFS2_CMDLINE
+#define MTDIDS_DEFAULT         "nor0=ml2-0"
+#define MTDPARTS_DEFAULT       "mtdparts=ml2-0:-@512k(jffs2)"
+*/
 
-#define CFG_JFFS2_FIRST_BANK 0
-#define CFG_JFFS2_NUM_BANKS 1
-#define CFG_JFFS2_FIRST_SECTOR 1
 #endif /* __CONFIG_H */