Changeset 1461 for trunk/flashrom.8


Ignore:
Timestamp:
Nov 8, 2011, 11:55:54 AM (3 years ago)
Author:
stefanct
Message:

ichspi: add support for Intel Hardware Sequencing

Based on the new opaque programmer framework this patch adds support
for Intel Hardware Sequencing on ICH8 and its successors.

By default (or when setting the ich_spi_mode option to auto)
the module tries to use swseq and only activates hwseq if need be:

  • if important opcodes are inaccessible due to lockdown
  • if more than one flash chip is attached.

The other options (swseq, hwseq) select the respective mode (if possible).

A general description of Hardware Sequencing can be found in this blog entry:
http://blogs.coreboot.org/blog/2011/06/11/gsoc-2011-flashrom-part-1/

Besides adding hwseq this patch also introduces these unrelated changes:

  • Fix enable_flash_ich_dc_spi to pass ERROR_FATAL from ich_init_spi. The whole error handling looks a bit odd to me, so this patch does change very little. Also, it does not touch the tunnelcreek method, which should be refactored anyway.
  • Add null-pointer guards to find_opcode and find_preop to matches the other opcode methods better: curopcodes == NULL has some meaning and is actively used/checked in other functions.

TODO: adding real documentation when we have a directory for it

Signed-off-by: Stefan Tauner <stefan.tauner@…>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/flashrom.8

    r1453 r1461  
    304304report so we can diagnose the problem. 
    305305.sp 
     306If you have an Intel chipset with an ICH8 or later southbridge with SPI flash 
     307attached, and if a valid descriptor was written to it (e.g. by the vendor), the 
     308chipset provides an alternative way to access the flash chip(s) named 
     309.BR "Hardware Sequencing" . 
     310It is much simpler than the normal access method (called 
     311.BR "Software Sequencing" ")," 
     312but does not allow the software to choose the SPI commands to be sent. 
     313You can use the 
     314.sp 
     315.B "  flashrom \-p internal:ich_spi_mode=value" 
     316.sp 
     317syntax where value can be 
     318.BR auto ", " swseq " or " hwseq . 
     319By default 
     320.RB "(or when setting " ich_spi_mode=auto ) 
     321the module tries to use swseq and only activates hwseq if need be (e.g. if 
     322important opcodes are inaccessible due to lockdown; or if more than one flash 
     323chip is attached). The other options (swseq, hwseq) select the respective mode 
     324(if possible). 
     325.sp 
    306326If you have an Intel chipset with an ICH6 or later southbridge and if you want 
    307327to set specific IDSEL values for a non-default flash chip or an embedded 
Note: See TracChangeset for help on using the changeset viewer.