From bc10d7288764cdb034506af4669d169c76255c56 Mon Sep 17 00:00:00 2001 From: Seunghwan Kim Date: Mon, 25 Jun 2018 19:16:52 +0900 Subject: mb/google/poppy/variants/nautilus: Use GPP_B20 to determine SKU We would use GPP_B20 instead of board id to determine nautilus SKU. BUG=b:80052672 BRANCH=poppy TEST=Verified the new coreboot could determine SKU correctly Change-Id: I1978b544eef7a184a3da191306ee32d862fa8c36 Signed-off-by: Seunghwan Kim Reviewed-on: https://review.coreboot.org/27220 Reviewed-by: Furquan Shaikh Tested-by: build bot (Jenkins) --- src/mainboard/google/poppy/variants/nautilus/mainboard.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/mainboard') diff --git a/src/mainboard/google/poppy/variants/nautilus/mainboard.c b/src/mainboard/google/poppy/variants/nautilus/mainboard.c index b4ef1c29dc..502195e473 100644 --- a/src/mainboard/google/poppy/variants/nautilus/mainboard.c +++ b/src/mainboard/google/poppy/variants/nautilus/mainboard.c @@ -13,9 +13,9 @@ * GNU General Public License for more details. */ -#include #include #include +#include #include #include @@ -26,7 +26,13 @@ uint32_t variant_board_sku(void) if (sku_id != SKU_UNKNOWN) return sku_id; - if (board_id() < 9) + /* + * Nautilus uses GPP_B20 to determine SKU + * 0 - Wifi SKU + * 1 - LTE SKU + */ + gpio_input_pulldown(GPP_B20); + if (!gpio_get(GPP_B20)) sku_id = SKU_0_NAUTILUS; else sku_id = SKU_1_NAUTILUS_LTE; -- cgit v1.2.3