diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2010-06-28 06:21:37 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-06-29 08:28:14 +0200 |
commit | a0e68122e6b68bdb67ea9bca372a6a4bc0c704a6 (patch) | |
tree | 1ebafd29ceea30a56f1d2a3343a94084b8f3fab8 | |
parent | 713f5b119f4fa1efe6a236dc6d1e907b1b5c79c7 (diff) | |
download | barebox-a0e68122e6b68bdb67ea9bca372a6a4bc0c704a6.tar.gz barebox-a0e68122e6b68bdb67ea9bca372a6a4bc0c704a6.tar.xz |
nor: don't use sector for ERASE_START
Similar to ac2d4d71ba493fd638ae0bf1a530a51c76d3c53d, copy the behaviour
from Linux which does:
cfi_send_gen_cmd(0x80, cfi->addr_unlock1, chip->start, map, cfi, cfi->device_type, NULL);
Notice the third parameter which is simply chip->start. Needed for some
SST-flashes.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | drivers/nor/cfi_flash_amd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/nor/cfi_flash_amd.c b/drivers/nor/cfi_flash_amd.c index 411d8e6526..ea4c2c99eb 100644 --- a/drivers/nor/cfi_flash_amd.c +++ b/drivers/nor/cfi_flash_amd.c @@ -74,8 +74,7 @@ static int amd_flash_is_busy (flash_info_t * info, flash_sect_t sect) static int amd_flash_erase_one (flash_info_t * info, long sect) { flash_unlock_seq(info); - flash_write_cmd (info, sect, AMD_ADDR_ERASE_START, - AMD_CMD_ERASE_START); + flash_write_cmd (info, 0, AMD_ADDR_ERASE_START, AMD_CMD_ERASE_START); flash_unlock_seq(info); flash_write_cmd (info, sect, 0, AMD_CMD_ERASE_SECTOR); |