mainboard/pcengines/apu2: use GENERIC_SPD_BIN
Use GENERIC_SPD_BIN method of adding the SPD bins to final rom. Change-Id: I242e393bafac41aa7743f83b52cadf027019ee6e Signed-off-by: Kamil Wcislo <kamil.wcislo@3mdeb.com> Reviewed-on: https://review.coreboot.org/21980 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
parent
a5f225f288
commit
c5d3944ad5
|
@ -29,6 +29,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
|
|||
select BOARD_ROMSIZE_KB_8192
|
||||
select HUDSON_DISABLE_IMC
|
||||
select USE_BLOBS
|
||||
select GENERIC_SPD_BIN
|
||||
select TPM
|
||||
select MAINBOARD_HAS_LPC_TPM
|
||||
|
||||
|
|
|
@ -21,22 +21,6 @@ ramstage-y += BiosCallOuts.c
|
|||
ramstage-y += OemCustomize.c
|
||||
ramstage-y += gpio_ftns.c
|
||||
|
||||
## DIMM SPD for on-board memory
|
||||
SPD_BIN = $(obj)/spd.bin
|
||||
|
||||
# Order of names in SPD_SOURCES is important!
|
||||
SPD_SOURCES = HYNIX-2G-1333 HYNIX-4G-1333-ECC
|
||||
|
||||
SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/$(f).spd.hex)
|
||||
|
||||
# Include spd rom data
|
||||
$(SPD_BIN): $(SPD_DEPS)
|
||||
for f in $+; \
|
||||
do for c in $$(cat $$f | grep -v ^#); \
|
||||
do printf $$(printf '\%o' 0x$$c); \
|
||||
done; \
|
||||
done > $@
|
||||
|
||||
cbfs-files-y += spd.bin
|
||||
spd.bin-file := $(SPD_BIN)
|
||||
spd.bin-type := spd
|
||||
SPD_SOURCES = HYNIX-2G-1333
|
||||
SPD_SOURCES += HYNIX-4G-1333-ECC
|
||||
|
|
Loading…
Reference in New Issue