• Claus Gindhart's avatar
    Probe for up to 3 flash chips · 2fd11d6a
    Claus Gindhart authored
    
    Currently there is an ongoing technology migration from LPC/FWH to SPI chips.
    For this reason some boards have multiple chips of different technologies
    onboard. This patch makes flashrom probe for up to 3 chips and if more than
    one chip is found flashrom exits, asking the user to specify -c.
    
    [root@localhost src]# ./flashrom
    ...
    Multiple flash chips were detected: SST49LF008A M25P16@ICH9
    Please specify which chip to use with the -c <chipname> option.
    [root@localhost src]# 
    
    Corresponding to flashrom svn r222 and coreboot v2 svn r3291.
    Signed-off-by: default avatarClaus Gindhart <claus.gindhart@kontron.com>
    Signed-off-by: default avatarPeter Stuge <peter@stuge.se>
    Acked-by: default avatarClaus Gindhart <claus.gindhart@kontron.com>
    2fd11d6a
flashrom.c 14.7 KB