summaryrefslogtreecommitdiff
path: root/baseboard/grunt
diff options
context:
space:
mode:
authorPhilip Chen <philipchen@google.com>2021-07-09 12:34:18 -0700
committerCommit Bot <commit-bot@chromium.org>2021-07-12 17:56:01 +0000
commitb86dfea40060ba8e5037ba5cb3ea971b28ec541c (patch)
treec3d7d2ebf5ea21f64f870da3ab09bbde5fa7d3ec /baseboard/grunt
parent4cb260ea26a3d6e18320bea2421624fa29b1b53d (diff)
downloadchrome-ec-b86dfea40060ba8e5037ba5cb3ea971b28ec541c.tar.gz
system: Generalize system_get_board_version()
Extend system_get_board_version() to support not only AP-sourced SKU ID but also EC-sourced SKU ID, whose getter function can be customized per board. BRANCH=None BUG=b:186264627 TEST=make buildall -j TEST=zmake testall Change-Id: I764868d6472fb66480a43d028e5a79933b10117d Signed-off-by: Philip Chen <philipchen@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3017602 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> Commit-Queue: Philip Chen <philipchen@chromium.org> Tested-by: Philip Chen <philipchen@chromium.org>
Diffstat (limited to 'baseboard/grunt')
-rw-r--r--baseboard/grunt/baseboard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/baseboard/grunt/baseboard.c b/baseboard/grunt/baseboard.c
index d5761768e0..35997db8d5 100644
--- a/baseboard/grunt/baseboard.c
+++ b/baseboard/grunt/baseboard.c
@@ -748,7 +748,7 @@ static void cbi_init(void)
*/
DECLARE_HOOK(HOOK_INIT, cbi_init, HOOK_PRIO_INIT_ADC + 1);
-uint32_t system_get_sku_id(void)
+__override uint32_t board_get_sku_id(void)
{
return sku_id;
}