diff options
author | Zhuohao Lee <zhuohao@chromium.org> | 2018-03-17 05:00:49 +0800 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2018-03-21 16:02:26 +0000 |
commit | f7b5955b363034c7235ea6a5fcc399eaf53120ce (patch) | |
tree | 177ccb79154c10603c698ac0ecc24b2aeef23b46 /src/mainboard/google/poppy/variants/nami/include | |
parent | c293496f41f8a10929d9704427dc237747e2857c (diff) |
mb/google/poppy/variants/nami: change type of board_sku_id() to uint32_t
Tools/scripts, like mosys/arc-setup, use int (4 bytes) to
read the sku id. In order to support "-1", we need to use
uint32_t (4 bytes) instead of using uint16_t (2 bytes) data type.
Otherwise, tools/scripts will read 65535 instead of -1.
Another reason to change this is that sku_id can be
supported by ec up to 4 bytes.
BUG=b:73792190
TEST=mosys output "Platform not supported" for -1 sku id
arc-setup read -1 sku id
Change-Id: Ib3baa8419f138abeb412ac09c2e7dc608e3b758b
Signed-off-by: Zhuohao Lee <zhuohao@chromium.org>
Reviewed-on: https://review.coreboot.org/25252
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/mainboard/google/poppy/variants/nami/include')
-rw-r--r-- | src/mainboard/google/poppy/variants/nami/include/variant/sku.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainboard/google/poppy/variants/nami/include/variant/sku.h b/src/mainboard/google/poppy/variants/nami/include/variant/sku.h index b72f3497fe..3b67b56ad7 100644 --- a/src/mainboard/google/poppy/variants/nami/include/variant/sku.h +++ b/src/mainboard/google/poppy/variants/nami/include/variant/sku.h @@ -16,7 +16,7 @@ #ifndef __MAINBOARD_SKU_H__ #define __MAINBOARD_SKU_H__ -#define SKU_UNKNOWN 0xFFFF +#define SKU_UNKNOWN 0xFFFFFFFF #define SKU_0_NAMI 0x3A7B #define SKU_1_VAYNE 0x3A63 #define SKU_2_VAYNE 0x3A7F |