Skip to content
  • Simon Glass's avatar
    x86: ifdtool: Support collating microcode into one place · b0980323
    Simon Glass authored
    
    
    The Intel Firmware Support Package (FSP) requires that microcode be provided
    very early before the device tree can be scanned. We already support adding
    a pointer to the microcode data in a place where early init code can access.
    
    However this just points into the device tree and can only point to a single
    lot of microcode. For boards which may have different CPU types we must
    support multiple microcodes and pass all of them to the FSP in one place.
    
    Enhance ifdtool to scan all the microcode, place it together in the ROM and
    update the microcode pointer to point there. This allows us to pass multiple
    microcode blocks to the FSP using its existing API.
    
    Enable the flag in the Makefile so that this feature is used by default for
    all boards.
    
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
    Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
    Tested-by: default avatarBin Meng <bmeng.cn@gmail.com>
    b0980323