summaryrefslogtreecommitdiffstats
path: root/flash_rom.c
diff options
context:
space:
mode:
Diffstat (limited to 'flash_rom.c')
-rw-r--r--flash_rom.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/flash_rom.c b/flash_rom.c
index fe1bdf7..85a016a 100644
--- a/flash_rom.c
+++ b/flash_rom.c
@@ -36,6 +36,7 @@
#include "flash.h"
#include "jedec.h"
#include "m29f400bt.h"
+#include "82802ab.h"
struct flashchip flashchips[] = {
{"Am29F040B", AMD_ID, AM_29F040B, NULL, 512, 64*1024,
@@ -56,6 +57,8 @@ struct flashchip flashchips[] = {
probe_jedec, erase_jedec, write_jedec},
{"M29F400BT", ST_ID, ST_M29F400BT , NULL, 512, 64*1024,
probe_m29f400bt, erase_m29f400bt, write_linuxbios_m29f400bt},
+ {"82802ab", 137, 173 , NULL, 512, 64*1024,
+ probe_82802ab, erase_82802ab, write_82802ab},
{NULL,}
};
@@ -134,6 +137,7 @@ struct flashchip * probe_flash(struct flashchip * flash)
exit(1);
}
flash->virt_addr = bios;
+ flash->fd_mem = fd_mem;
if (flash->probe(flash) == 1) {
printf ("%s found at physical address: 0x%lx\n",
OpenPOWER on IntegriCloud