• P
    mips_malta: generate SPD EEPROM data at runtime · 02bccc77
    Paul Burton 提交于
    The SPD EEPROM specifies the amount of memory present in the system and
    thus its correct contents can only be known at runtime. Calculating
    parts of the data on init allows the data to accurately reflect the
    amount of target memory present and allow YAMON to boot with an
    arbitrary amount of SDRAM.
    
    Where possible the SPD data will favor indicating 2 banks of SDRAM
    rather than 1. For example the default 128MB of target memory will be
    represented as 2x64MB banks rather than 1x128MB bank. This allows
    versions of MIPS BIOS code (such as YAMON 2.22 and older) to boot
    despite a bug preventing them from handling a single bank of SDRAM with
    the Galileo GT64120 system controller emulated by QEMU.
    Signed-off-by: NPaul Burton <paul.burton@imgtec.com>
    Signed-off-by: NLeon Alrae <leon.alrae@imgtec.com>
    Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
    02bccc77
mips_malta.c 35.4 KB