Add JFFS2 support for INCA-IP board
authorwdenk <wdenk>
Fri, 12 Dec 2003 00:02:26 +0000 (00:02 +0000)
committerwdenk <wdenk>
Fri, 12 Dec 2003 00:02:26 +0000 (00:02 +0000)
CHANGELOG
include/configs/incaip.h
include/linux/stat.h

index ccbec8b1e8d672693e277577542160d8ba21286b..18f7229d3a6e9c976462a3bd1859cef979c7b491 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -2,6 +2,8 @@
 Changes since U-Boot 1.0.0:
 ======================================================================
 
+* Add JFFS2 support for INCA-IP board
+
 * Patch by Bill Hargen, 09 Dec 2003:
   - BUBINGA405EP: changed flash driver to protect top sector containing
     first instruction.
index 99e7868f9c93b27d45c3ce8852bfd8a50d4d0d80..15d5c2ee28242b74be6c537743290fe564f9b279 100644 (file)
@@ -89,7 +89,8 @@
 #define CONFIG_COMMANDS                (CONFIG_CMD_DFL | \
                                 CFG_CMD_ASKENV | \
                                 CFG_CMD_DHCP   | \
-                                CFG_CMD_ELF    )
+                                CFG_CMD_ELF    | \
+                                CFG_CMD_JFFS2  )
 #include <cmd_confdefs.h>
 
 /*
 #define CONFIG_INCA_IP_SWITCH
 #define CONFIG_NET_MULTI
 
+#define CFG_JFFS2_FIRST_BANK   1
+#define CFG_JFFS2_NUM_BANKS    1
+
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
index 13899c97c712e52c6be3851ad7b3cc497d73c3b9..63a96f13cc2dd1c9da9e57860e15d21a15beb994 100644 (file)
@@ -94,6 +94,37 @@ struct stat {
 
 #endif /* __ARM__ */
 
+#if defined (__MIPS__)
+
+struct stat {
+       dev_t           st_dev;
+       long            st_pad1[3];
+       ino_t           st_ino;
+       mode_t          st_mode;
+       nlink_t         st_nlink;
+       uid_t           st_uid;
+       gid_t           st_gid;
+       dev_t           st_rdev;
+       long            st_pad2[2];
+       off_t           st_size;
+       long            st_pad3;
+       /*
+        * Actually this should be timestruc_t st_atime, st_mtime and st_ctime
+        * but we don't have it under Linux.
+        */
+       time_t          st_atime;
+       long            reserved0;
+       time_t          st_mtime;
+       long            reserved1;
+       time_t          st_ctime;
+       long            reserved2;
+       long            st_blksize;
+       long            st_blocks;
+       long            st_pad4[14];
+};
+
+#endif /* __MIPS__ */
+
 #ifdef __cplusplus
 }
 #endif