diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2011-11-04 21:35:26 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2011-11-04 21:35:26 +0000 |
commit | 532c717bccc95aa93bae7af8be0695bee83c32b5 (patch) | |
tree | 406d46e209a8a56f176c7afa20f14754800e77d9 /flashchips.c | |
parent | b992d3433974479909e6fd584dd798d4badf27b9 (diff) | |
download | flashrom-532c717bccc95aa93bae7af8be0695bee83c32b5.tar.gz flashrom-532c717bccc95aa93bae7af8be0695bee83c32b5.tar.bz2 flashrom-532c717bccc95aa93bae7af8be0695bee83c32b5.zip |
Add opaque programmer registration infrastructure
An opaque programmer does not allow direct flash access and only offers
abstract probe/read/erase/write methods.
Due to that, opaque programmers need their own infrastructure and
registration framework.
Corresponding to flashrom svn r1459.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
Diffstat (limited to 'flashchips.c')
-rw-r--r-- | flashchips.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/flashchips.c b/flashchips.c index 26581a83a..7ce4b583b 100644 --- a/flashchips.c +++ b/flashchips.c @@ -8874,6 +8874,28 @@ const struct flashchip flashchips[] = { }, { + .vendor = "Programmer", + .name = "Opaque flash chip", + .bustype = BUS_PROG, + .manufacture_id = PROGMANUF_ID, + .model_id = PROGDEV_ID, + .total_size = 0, + .page_size = 256, + /* probe is assumed to work, rest will be filled in by probe */ + .tested = TEST_OK_PROBE, + .probe = probe_opaque, + /* eraseblock sizes will be set by the probing function */ + .block_erasers = + { + { + .block_erase = erase_opaque, + } + }, + .write = write_opaque, + .read = read_opaque, + }, + + { .vendor = "AMIC", .name = "unknown AMIC SPI chip", .bustype = BUS_SPI, |