summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2016-05-30 16:56:11 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2016-06-05 10:06:37 +0200
commit9aba60ed6e4ab3c1b44e15c1ac0cd324581bb600 (patch)
treec591db70185557bd44ccca577d4522e6e1c2ddf2 /src
parent5d9cc7866f9c2536c0fd809665c00ec88501226f (diff)
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> Reviewed-on: https://review.coreboot.org/14997 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/pcengines/apu1/mainboard.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mainboard/pcengines/apu1/mainboard.c b/src/mainboard/pcengines/apu1/mainboard.c
index 2ebdc752cb..96b20209f9 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;