Kyösti Mälkki (kyosti.malkki@gmail.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/14997
-gerrit
commit 546cae02b6d84127db073d5d94b2fedd66fdbe3b Author: Kyösti Mälkki kyosti.malkki@gmail.com Date: Mon May 30 16:56:11 2016 +0300
pcengines/apu1: Add SMBios SKU field
Just the memory size, there is no strap to identify PCB revision.
Change-Id: I65b2f5b0ac6930bead60ea0a551f13a6bcab24c7 Signed-off-by: Kyösti Mälkki kyosti.malkki@gmail.com --- src/mainboard/pcengines/apu1/mainboard.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
diff --git a/src/mainboard/pcengines/apu1/mainboard.c b/src/mainboard/pcengines/apu1/mainboard.c index 2ebdc75..96b2020 100644 --- a/src/mainboard/pcengines/apu1/mainboard.c +++ b/src/mainboard/pcengines/apu1/mainboard.c @@ -260,6 +260,22 @@ static void usb_oc_setup(void) pci_write_config32(dev, 0x58, 0x011f0); }
+/* + * We will stuff the memory size into the smbios sku location. + */ +const char *smbios_mainboard_sku(void) +{ + static char sku[5]; + if (sku[0] != 0) + return sku; + + if (!get_spd_offset()) + snprintf(sku, sizeof(sku), "2 GB"); + else + snprintf(sku, sizeof(sku), "4 GB"); + return sku; +} + static void mainboard_final(void *chip_info) { u32 mmio_base;