rmove unused #define and function declaretion
authorLi-Ta Lo <ollie@lanl.gov>
Sat, 20 Mar 2004 17:39:43 +0000 (17:39 +0000)
committerLi-Ta Lo <ollie@lanl.gov>
Sat, 20 Mar 2004 17:39:43 +0000 (17:39 +0000)
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1459 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

util/flash_and_burn/jedec.c
util/flash_and_burn/jedec.h
util/flash_and_burn/pm49fl004.c
util/flash_and_burn/sst39sf020.c
util/flash_and_burn/sst49lf040.c
util/flash_and_burn/sst49lf040.h
util/flash_and_burn/w49f002u.h

index d7f2bef1f698afa18ef0b84a69ae931720e119cc..bae1ddc439737c1d56a0c9446421123cc4c5fe82 100644 (file)
@@ -141,15 +141,16 @@ void write_page_jedec(volatile char *bios, char *src, volatile char *dst,
 
 int write_sector_jedec(volatile char *bios,
                       unsigned char *src,
-                      volatile unsigned char *dst, unsigned int page_size)
+                      volatile unsigned char *dst,
+                      unsigned int page_size)
 {
        int i;
        volatile char *Temp;
 
        for (i = 0; i < page_size; i++) {
                if (*dst != 0xff) {
-                       printf("FATAL: dst %p not erased (val 0x%x\n", dst,
-                              *dst);
+                       printf("FATAL: dst %p not erased (val 0x%x)\n",
+                              dst, *dst);
                        return (-1);
                }
                /* transfer data from source to destination */
index b62223b1c194efcd676659c2c67be26c6ef46d61..1751b296defffcf6a5d8de96e628f57b44095a0a 100644 (file)
@@ -62,5 +62,4 @@ extern __inline__ void protect_jedec(volatile char *bios)
        usleep(200);
 }
 
-
 #endif                         /* !__JEDEC_H__ */
index e0bd6aaa55ce444052de2571f41487eaa66d5f37..4cffc14b25e9ca3a191f4d366d92e2ceb0730555 100644 (file)
 #include "jedec.h"
 #include "pm49fl004.h"
 
-#define AUTO_PGRM              0x10
-#define CHIP_ERASE             0x30
-#define RESET                  0xFF
-#define READ_ID                        0x90
-
 static __inline__ int erase_block_49fl004(volatile unsigned char *bios,
                                          unsigned long address)
 {
index 25d141a35841213e62d92d002b690e9e0e722b44..401247a6df4e7c64e75a35411288982034abcdc8 100644 (file)
 
 #define AUTO_PG_ERASE1         0x20
 #define AUTO_PG_ERASE2         0xD0
-#define AUTO_PGRM              0x10
-#define CHIP_ERASE             0x30
-#define RESET                  0xFF
-#define READ_ID                        0x90
 
 static __inline__ int erase_sector_39sf020(volatile char *bios,
                                           unsigned long address)
index ace2f1ae33fcd62058a3edee4faa399597941ed3..f18e733e7adebdb00030ca66709720cde3bb55cd 100644 (file)
 #include "jedec.h"
 #include "sst49lf040.h"
 
-#define AUTO_PG_ERASE1         0x20
-#define AUTO_PG_ERASE2         0xD0
-#define AUTO_PGRM              0x10
-#define CHIP_ERASE             0x30
-#define RESET                  0xFF
-#define READ_ID                        0x90
-
-
 int write_49lf040(struct flashchip *flash, unsigned char *buf)
 {
        int i;
index a66501506bfefb61a8a217e5fd1ec1fa696c9acd..9e3cfa42364f398e2da279a388cd1717efe08764 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef __SST49LF040_H__
 #define __SST49LF040_H__ 1
 
-extern int probe_49lf040(struct flashchip *flash);
-extern int erase_49lf040(struct flashchip *flash);
 extern int write_49lf040(struct flashchip *flash, unsigned char *buf);
 
 #endif                         /* !__SST49LF040_H__ */
index 4863ea5a4fc91dbca1069236ffc75994ee7fb339..29320b7cefb27da76ba10651656ee42938d2d879 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef __W49F002U_H__
 #define __W49F002U_H__ 1
 
-extern int probe_49f002(struct flashchip *flash);
-extern int erase_49f002(struct flashchip *flash);
 extern int write_49f002(struct flashchip *flash, unsigned char *buf);
 
 #endif                         /* !__W49F002U_H__ */