summaryrefslogtreecommitdiffstats
path: root/m29f400bt.c
diff options
context:
space:
mode:
Diffstat (limited to 'm29f400bt.c')
-rw-r--r--m29f400bt.c53
1 files changed, 0 insertions, 53 deletions
diff --git a/m29f400bt.c b/m29f400bt.c
index c8ed5d8..2a770ba 100644
--- a/m29f400bt.c
+++ b/m29f400bt.c
@@ -204,56 +204,3 @@ int write_m29f400bt(struct flashchip *flash, uint8_t *buf)
return 0;
}
-
-int write_coreboot_m29f400bt(struct flashchip *flash, uint8_t *buf)
-{
- chipaddr bios = flash->virtual_memory;
-
- msg_cinfo("Programming page:\n ");
- /*********************************
- *Pages for M29F400BT:
- * 16 0x7c000 0x7ffff TOP
- * 8 0x7a000 0x7bfff
- * 8 0x78000 0x79fff
- * 32 0x70000 0x77fff
- * 64 0x60000 0x6ffff
- * 64 0x50000 0x5ffff
- * 64 0x40000 0x4ffff
- *---------------------------------
- * 64 0x30000 0x3ffff
- * 64 0x20000 0x2ffff
- * 64 0x10000 0x1ffff
- * 64 0x00000 0x0ffff BOTTOM
- *********************************/
- msg_cinfo("%04d at address: 0x%08x\n", 7, 0x00000);
- if (block_erase_m29f400bt(flash, 0x00000, 64 * 1024)) {
- msg_cerr("ERASE FAILED!\n");
- return -1;
- }
- write_page_m29f400bt(bios, buf + 0x00000, bios + 0x00000, 64 * 1024);
-
- msg_cinfo("%04d at address: 0x%08x\n", 7, 0x10000);
- if (block_erase_m29f400bt(flash, 0x10000, 64 * 1024)) {
- msg_cerr("ERASE FAILED!\n");
- return -1;
- }
- write_page_m29f400bt(bios, buf + 0x10000, bios + 0x10000, 64 * 1024);
-
- msg_cinfo("%04d at address: 0x%08x\n", 7, 0x20000);
- if (block_erase_m29f400bt(flash, 0x20000, 64 * 1024)) {
- msg_cerr("ERASE FAILED!\n");
- return -1;
- }
- write_page_m29f400bt(bios, buf + 0x20000, bios + 0x20000, 64 * 1024);
-
- msg_cinfo("%04d at address: 0x%08x\n", 7, 0x30000);
- if (block_erase_m29f400bt(flash, 0x30000, 64 * 1024)) {
- msg_cerr("ERASE FAILED!\n");
- return -1;
- }
- write_page_m29f400bt(bios, buf + 0x30000, bios + 0x30000, 64 * 1024);
-
- msg_cinfo("\n");
-
- return 0;
-}
OpenPOWER on IntegriCloud