summaryrefslogtreecommitdiff
path: root/src/mainboard/google/hatch/variants
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2019-07-11 22:38:42 -0700
committerFurquan Shaikh <furquan@google.com>2019-07-18 14:44:26 +0000
commit463fca43623d385f486a72444c8e30cbb9b3e9d3 (patch)
tree7dbd1be09a87018d6052e448ad5f97f6409f014e /src/mainboard/google/hatch/variants
parent2af2f2c8cad259ec9ea4d8b217e86a19db2c0d82 (diff)
downloadcoreboot-463fca43623d385f486a72444c8e30cbb9b3e9d3.tar.xz
mb/google/hatch: Add support for variant_memory_sku()
This change adds support for variant_memory_sku() that allows variant to return memory SKU ID. Current implementation of memory_sku() is renamed to weak implementation of variant_memory_sku(). Functionally this change should be the same as before for all hatch variants. This function will be overriden by helios in a follow-up CL. BUG=b:133455595 Change-Id: I509c263ec08e0060c12ef1ea9fed673f1e3f3a41 Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34251 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Diffstat (limited to 'src/mainboard/google/hatch/variants')
-rw-r--r--src/mainboard/google/hatch/variants/baseboard/include/baseboard/variants.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mainboard/google/hatch/variants/baseboard/include/baseboard/variants.h b/src/mainboard/google/hatch/variants/baseboard/include/baseboard/variants.h
index 17bd5df63d..864d140f0e 100644
--- a/src/mainboard/google/hatch/variants/baseboard/include/baseboard/variants.h
+++ b/src/mainboard/google/hatch/variants/baseboard/include/baseboard/variants.h
@@ -34,6 +34,9 @@ const struct pad_config *override_early_gpio_table(size_t *num);
/* Return board specific memory configuration */
void variant_memory_params(struct cnl_mb_cfg *bcfg);
+/* Return memory SKU for the variant */
+int variant_memory_sku(void);
+
/* Return variant specific gpio pads to be configured during sleep */
const struct pad_config *variant_sleep_gpio_table(u8 slp_typ, size_t *num);