diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-01-07 21:23:45 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-01-07 21:23:45 +0000 |
commit | aca1dce951be2d36d934910a80e19d4b56d455eb (patch) | |
tree | f93a86e513bb8aea162bd46a87da13fd5462d6f7 /flashchips.c | |
parent | 74aa77212923b6edcf3df1c880f95623bcf17471 (diff) | |
download | flashrom-aca1dce951be2d36d934910a80e19d4b56d455eb.tar.gz flashrom-aca1dce951be2d36d934910a80e19d4b56d455eb.tar.bz2 flashrom-aca1dce951be2d36d934910a80e19d4b56d455eb.zip |
Fix Sharp LHF00L04
- Add eraseblock definitions
- Use correct eraseblock sizes (the datasheet is a bit ambiguous)
- Use correct probe function
- Fill in probe timing
There is a lot more stuff left to clean up, but at least probe and erase
should work now.
Corresponding to flashrom svn r837.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Sean Nelson <audiohacked@gmail.com>
Diffstat (limited to 'flashchips.c')
-rw-r--r-- | flashchips.c | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/flashchips.c b/flashchips.c index 50a1226f..e6c4b867 100644 --- a/flashchips.c +++ b/flashchips.c @@ -2522,9 +2522,24 @@ struct flashchip flashchips[] = { .total_size = 1024, .page_size = 64 * 1024, .tested = TEST_UNTESTED, - .probe = probe_lhf00l04, - .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sharplhf00l04.c) */ - .erase = erase_lhf00l04, + .probe = probe_49lfxxxc, + .probe_timing = TIMING_ZERO, + .erase = NULL, + .block_erasers = + { + { + .eraseblocks = { + {64 * 1024, 15}, + {8 * 1024, 8} + }, + .block_erase = erase_lhf00l04_block, + }, { + .eraseblocks = { + {1024 * 1024, 1} + }, + .block_erase = NULL, /* 30 D0, only in PP mode */ + }, + }, .write = write_lhf00l04, .read = read_memmapped, }, |