• David Woodhouse's avatar
    MTD: NOR flash chip driver updates · 637465e0
    David Woodhouse authored
    Mostly from Eric Biederman for supporting BIOS flash.
    
        - Move support firmware hub style lock and unlock into fhw_lock.h (from cfi_cmdset_0002)
        - Move cfi_varsize_frob into cfi_util from cfi_cmdset_0001.c and cfi_cmdset_0002.c
        - reduce gen_probe probe failuers to a debug level message
        - Modify cfi_fixup to take a struct mtd_info instead of a struct map_info
          So that the fixup routines can modify the mtd functions.
        - Modify cfi_cmdset_0001() to allocate and initialize the mtd structure
          before calling cfi_fixup.
        - Modify cfi_cmdset_0002() to allocate and initialize the mtd structure
          before calling cfi_fixup.
        - Refactor the hard coded fixups in cfi_cmdset_0001 and cfi_cmdset_0002
          so the improved cfi_fixup infrastructure.
        - Rewrote amd76xrom and ichxrom.
          They now report their starting physical address in their name.
          They now both handle multiple bankwidth configurations
          They both can create multipe mtd devices.
          They both now assume the rom windows are properly opened by the BIOS
           or whatever runs previous to them.
          Their code is now synchromized so it is almost identical,
             and could be a starting point for a x86_rom_probe.
    Signed-Off-By: default avatarDavid Woodhouse <dwmw2@infradead.org>
    637465e0
amd76xrom.c 8.26 KB