diff options
author | Ronald G. Minnich <rminnich@gmail.com> | 2003-09-12 22:41:53 +0000 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2003-09-12 22:41:53 +0000 |
commit | 616f35c32aed329276a8d043ecfe3a3e4d8cb2d6 (patch) | |
tree | 4ddad443cb40d4f090ba476bb48ddd47b98790a6 /m29f400bt.c | |
parent | 24d0f7dbb597046482e06a8288c2c821c4b2f355 (diff) | |
download | flashrom-616f35c32aed329276a8d043ecfe3a3e4d8cb2d6.zip flashrom-616f35c32aed329276a8d043ecfe3a3e4d8cb2d6.tar.gz |
Changes from NIKI
Corresponding to coreboot v1 svn r873.
Diffstat (limited to 'm29f400bt.c')
-rw-r--r-- | m29f400bt.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/m29f400bt.c b/m29f400bt.c index 73f9213..a19c8cd 100644 --- a/m29f400bt.c +++ b/m29f400bt.c @@ -70,6 +70,8 @@ int erase_m29f400bt (struct flashchip * flash) myusec_delay(10); toggle_ready_m29f400bt(bios); + + return(0); } int block_erase_m29f400bt (volatile char * bios ,volatile char * dst) @@ -86,9 +88,11 @@ int block_erase_m29f400bt (volatile char * bios ,volatile char * dst) myusec_delay(10); toggle_ready_m29f400bt(bios); + + return(0); } -int write_m29f400bt (struct flashchip * flash, char * buf) +int write_m29f400bt (struct flashchip * flash, unsigned char * buf) { int i; int total_size = flash->total_size *1024, page_size = flash->page_size; @@ -138,11 +142,12 @@ int write_m29f400bt (struct flashchip * flash, char * buf) printf("\n"); //protect_m29f400bt (bios); + + return(0); } -int write_linuxbios_m29f400bt (struct flashchip * flash, char * buf) +int write_linuxbios_m29f400bt (struct flashchip * flash, unsigned char * buf) { - int i; volatile char * bios = flash->virt_addr; printf ("Programming Page:\n "); @@ -179,4 +184,6 @@ int write_linuxbios_m29f400bt (struct flashchip * flash, char * buf) printf("\n"); //protect_m29f400bt (bios); + + return(0); } |