Added support for MX29F001T and MX29F001B flash chips.
Signed-off-by: Mark Panajotovic panajotovic.marko@gmail.com
---
Changed code to use the functions from mx29f002.c. Tested all functionality for MX29F001T, and marked it as such.
Let me know if I'm missing anything. :)
#flashrom
flashrom v0.9.0-r695 No coreboot table found. Found chipset "Intel PIIX4/4E/4M", enabling flash write... OK. This chipset supports the following protocols: Non-SPI. Calibrating delay loop... OK. Found chip "Macronix MX29F001T" (128 KB, Parallel) at physical address 0xfffe0000. No operations were specified.
#flashrom -r dump.hex
flashrom v0.9.0-r695 No coreboot table found. Found chipset "Intel PIIX4/4E/4M", enabling flash write... OK. This chipset supports the following protocols: Non-SPI. Calibrating delay loop... OK. Found chip "Macronix MX29F001T" (128 KB, Parallel) at physical address 0xfffe0000. Reading flash... done.
#flashrom -E
flashrom v0.9.0-r695 No coreboot table found. Found chipset "Intel PIIX4/4E/4M", enabling flash write... OK. This chipset supports the following protocols: Non-SPI. Calibrating delay loop... OK. Found chip "Macronix MX29F001T" (128 KB, Parallel) at physical address 0xfffe0000. Erasing flash chip... SUCCESS.
#flashrom -r blank.hex
flashrom v0.9.0-r695 No coreboot table found. Found chipset "Intel PIIX4/4E/4M", enabling flash write... OK. This chipset supports the following protocols: Non-SPI. Calibrating delay loop... OK. Found chip "Macronix MX29F001T" (128 KB, Parallel) at physical address 0xfffe0000. Reading flash... done.
#hexdump blank.hex
0000000 ffff ffff ffff ffff ffff ffff ffff ffff * 0020000
#flashrom -w dump.hex
flashrom v0.9.0-r695 No coreboot table found. Found chipset "Intel PIIX4/4E/4M", enabling flash write... OK. This chipset supports the following protocols: Non-SPI. Calibrating delay loop... OK. Found chip "Macronix MX29F001T" (128 KB, Parallel) at physical address 0xfffe0000. Flash image seems to be a legacy BIOS. Disabling checks. Writing flash chip... Programming page: address: 0x00000000address: 0x00001000address: 0x00002000address: 0x00003000address: 0x00004000address: 0x00005000address: 0x00006000address: 0x00007000address: 0x00008000address: 0x00009000address: 0x0000a000address: 0x0000b000address: 0x0000c000address: 0x0000d000address: 0x0000e000address: 0x0000f000address: 0x00010000address: 0x00011000address: 0x00012000address: 0x00013000address: 0x00014000address: 0x00015000address: 0x00016000address: 0x00017000address: 0x00018000address: 0x00019000address: 0x0001a000address: 0x0001b000address: 0x0001c000address: 0x0001d000address: 0x0001e000address: 0x0001f000 COMPLETE. Verifying flash... VERIFIED.