Original v2 revision: 1422
Added support for SST49LF040
git-svn-id: svn://coreboot.org/flashrom/trunk@5 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
diff --git a/flash_rom.c b/flash_rom.c
index b063b3c..b476d35 100644
--- a/flash_rom.c
+++ b/flash_rom.c
@@ -46,6 +46,7 @@
#include "sst28sf040.h"
#include "w49f002u.h"
#include "sst39sf020.h"
+#include "sst49lf040.h"
#include "pm49fl004.h"
#include "mx29f002.h"
@@ -65,6 +66,9 @@
probe_39sf020, erase_39sf020, write_39sf020, NULL},
{"SST39VF020", SST_ID, SST_39VF020, NULL, 256, 4096,
probe_39sf020, erase_39sf020, write_39sf020, NULL},
+ {"SST49LF040", SST_ID, SST_49LF040, NULL, 512, 4096,
+ probe_49lf040, erase_49lf040, write_49lf040, NULL},
+
#endif
//By LYH begin
{"Pm49FL004", PMC_ID, PMC_49FL004, NULL, 512, 64*1024,
@@ -373,7 +377,8 @@
flash->total_size * 1024, (unsigned long)size);
}
bios = mmap (0, size, PROT_WRITE | PROT_READ, MAP_SHARED,
- fd_mem, (off_t) (0-size));
+ //fd_mem, (off_t) (0x100000000-size));
+ fd_mem, (off_t) (0x0-size));
if (bios == MAP_FAILED) {
perror("Error MMAP /dev/mem");
exit(1);