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>
This commit is contained in:
Kyösti Mälkki 2016-05-30 16:56:11 +03:00
parent 5d9cc7866f
commit 9aba60ed6e
1 changed files with 16 additions and 0 deletions

View File

@ -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;