diff options
author | Hung-Te Lin <hungte@chromium.org> | 2019-01-03 15:22:26 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-01-10 12:17:20 +0000 |
commit | 3f6e32a4b3d0a9400fd281caab3a737ce97b91d3 (patch) | |
tree | 3d448f60daff727f8f49d105038a989cb792450f /src/mainboard/google/kukui | |
parent | f3e50fc68186fbfa93f77d05f182bf0435e745ab (diff) |
google/kukui: Correct boardid init values
From `boardid.h`, the uninitialized ID values should be BOARD_ID_INIT
instead of BOARD_ID_UNKNOWN.
BUG=b:80501386
TEST=make; manually verified on Kukui P1
Change-Id: Ie5267e575e38b92ec64a7317defbd00ee153fa0a
Signed-off-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-on: https://review.coreboot.org/c/30618
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: You-Cheng Syu <youcheng@google.com>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/mainboard/google/kukui')
-rw-r--r-- | src/mainboard/google/kukui/boardid.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mainboard/google/kukui/boardid.c b/src/mainboard/google/kukui/boardid.c index 26ae82f3a6..03485dce46 100644 --- a/src/mainboard/google/kukui/boardid.c +++ b/src/mainboard/google/kukui/boardid.c @@ -39,7 +39,7 @@ static uint32_t get_index(unsigned int channel, uint32_t *cached_id) uint32_t id; - if (*cached_id != BOARD_ID_UNKNOWN) + if (*cached_id != BOARD_ID_INIT) return *cached_id; int value = auxadc_get_voltage(channel); @@ -57,12 +57,12 @@ static uint32_t get_index(unsigned int channel, uint32_t *cached_id) uint32_t board_id(void) { - static uint32_t cached_board_id = BOARD_ID_UNKNOWN; + static uint32_t cached_board_id = BOARD_ID_INIT; return get_index(4, &cached_board_id); } uint32_t ram_code(void) { - static uint32_t cached_ram_code = BOARD_ID_UNKNOWN; + static uint32_t cached_ram_code = BOARD_ID_INIT; return get_index(3, &cached_ram_code); } |