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 <sh_.kim@samsung.com>
Reviewed-on: https://review.coreboot.org/27220
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Seunghwan Kim 2018-06-25 19:16:52 +09:00 committed by Patrick Georgi
parent d940050897
commit bc10d72887
1 changed files with 8 additions and 2 deletions

View File

@ -13,9 +13,9 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <boardid.h>
#include <baseboard/variants.h> #include <baseboard/variants.h>
#include <chip.h> #include <chip.h>
#include <gpio.h>
#include <device/device.h> #include <device/device.h>
#include <variant/sku.h> #include <variant/sku.h>
@ -26,7 +26,13 @@ uint32_t variant_board_sku(void)
if (sku_id != SKU_UNKNOWN) if (sku_id != SKU_UNKNOWN)
return sku_id; 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; sku_id = SKU_0_NAUTILUS;
else else
sku_id = SKU_1_NAUTILUS_LTE; sku_id = SKU_1_NAUTILUS_LTE;