summaryrefslogtreecommitdiff
path: root/bitbang_spi.c
diff options
context:
space:
mode:
authorhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2010-07-14 20:21:22 +0000
committerhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2010-07-14 20:21:22 +0000
commit810ac7ed4bd94bcebaeb9f38b1657184e177ffbe (patch)
tree963d487fa71ce4b6ad998d89fde9e167ce11e6bb /bitbang_spi.c
parentbcc97415f2232389de1c1384b3f480769296f880 (diff)
downloadflashrom-810ac7ed4bd94bcebaeb9f38b1657184e177ffbe.tar.gz
We have a generic unlocking infrastructure. Use it for SPI chips.
Actually check if the unlock worked instead of just assuming it worked. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1082 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'bitbang_spi.c')
-rw-r--r--bitbang_spi.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/bitbang_spi.c b/bitbang_spi.c
index adb1038..446be11 100644
--- a/bitbang_spi.c
+++ b/bitbang_spi.c
@@ -141,6 +141,5 @@ int bitbang_spi_read(struct flashchip *flash, uint8_t *buf, int start, int len)
int bitbang_spi_write_256(struct flashchip *flash, uint8_t *buf, int start, int len)
{
- spi_disable_blockprotect();
return spi_write_chunked(flash, buf, start, len, 256);
}