• Carl-Daniel Hailfinger's avatar
    Have all programmer init functions register bus masters/programmers · c40cff7b
    Carl-Daniel Hailfinger authored
    
    All programmer types (Parallel, SPI, Opaque) now register themselves
    into a generic programmer list and probing is now programmer-centric
    instead of chip-centric.
    Registering multiple SPI/... masters at the same time is now possible
    without any problems. Handling multiple flash chips is still unchanged,
    but now we have the infrastructure to deal with "dual BIOS" and "one
    flash behind southbridge and one flash behind EC" sanely.
    
    A nice side effect is that this patch kills quite a few global variables
    and improves the situation for libflashrom.
    
    Hint for developers:
    struct {spi,par,opaque}_programmer now have a void *data pointer to
    store any additional programmer-specific data, e.g. hardware
    configuration info.
    
    Note:
    flashrom -f -c FOO -r forced_read.bin
    does not work anymore. We have to find an architecturally clean way to
    solve this.
    
    Corresponding to flashrom svn r1475.
    Signed-off-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
    Acked-by: default avatarMichael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
    c40cff7b
spi.c 5.45 KB