summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
authorSeunghwan Kim <sh_.kim@samsung.com>2018-06-25 19:16:52 +0900
committerPatrick Georgi <pgeorgi@google.com>2018-06-28 08:58:30 +0000
commitbc10d7288764cdb034506af4669d169c76255c56 (patch)
tree87505ed6a36fcd41268505e3e6d58b8d8197781e /src/mainboard/google
parentd940050897f7abe45354096d33d72ba7b18ee136 (diff)
downloadcoreboot-bc10d7288764cdb034506af4669d169c76255c56.tar.xz
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>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/poppy/variants/nautilus/mainboard.c10
1 files changed, 8 insertions, 2 deletions
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 <boardid.h>
#include <baseboard/variants.h>
#include <chip.h>
+#include <gpio.h>
#include <device/device.h>
#include <variant/sku.h>
@@ -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;