diff options
author | Philip Chen <philipchen@google.com> | 2021-07-09 12:34:18 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-07-12 17:56:01 +0000 |
commit | b86dfea40060ba8e5037ba5cb3ea971b28ec541c (patch) | |
tree | c3d7d2ebf5ea21f64f870da3ab09bbde5fa7d3ec /baseboard/grunt | |
parent | 4cb260ea26a3d6e18320bea2421624fa29b1b53d (diff) | |
download | chrome-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.c | 2 |
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; } |