• FENG yu ning's avatar
    Various ichspi.c refinements · f041e9b5
    FENG yu ning authored
    
    * add a generic preop-opcode-pair table.
    
    * rename ich_check_opcodes to ich_init_opcodes.
    
    * let ich_init_opcodes do not need to access flashchip structure:
      . move the definition of struct preop_opcode_pair to a better place
      . remove preop_opcode_pairs from 'struct flashchip'
      . modify ich_init_opcodes and generate_opcodes so that they do not access the flashchip structure
    
    * call ich_init_opcodes during chipset enable. Now OPCODES generation mechanism works.
    
    * fix a coding style mistake.
    
    Corresponding to flashrom svn r367 and coreboot v2 svn r3814.
    Signed-off-by: default avatarFENG yu ning <fengyuning1984@gmail.com>
    Acked-by: default avatarPeter Stuge <peter@stuge.se>
    f041e9b5
ichspi.c 19.3 KB