summaryrefslogtreecommitdiff
path: root/util/flash_and_burn/flash_rom.c
diff options
context:
space:
mode:
authorDavid W. Hendricks <dwh@lanl.gov>2004-03-17 21:47:30 +0000
committerDavid W. Hendricks <dwh@lanl.gov>2004-03-17 21:47:30 +0000
commit983b189d919e78953e74915506f68e1be59143ba (patch)
tree6d743c4bd32b9c41efb0d10c122a1e6b492026dc /util/flash_and_burn/flash_rom.c
parent9cfecd14900bdd697985a18af784dec25a3f44a1 (diff)
Added support for SST49LF040
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1422 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/flash_and_burn/flash_rom.c')
-rw-r--r--util/flash_and_burn/flash_rom.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/util/flash_and_burn/flash_rom.c b/util/flash_and_burn/flash_rom.c
index b063b3c1f4..b476d35572 100644
--- a/util/flash_and_burn/flash_rom.c
+++ b/util/flash_and_burn/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 @@ struct flashchip flashchips[] = {
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 @@ struct flashchip * probe_flash(struct flashchip * flash)
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);