summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mainboard/google/trogdor/boardid.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mainboard/google/trogdor/boardid.c b/src/mainboard/google/trogdor/boardid.c
index c972160fd4..6db17069d3 100644
--- a/src/mainboard/google/trogdor/boardid.c
+++ b/src/mainboard/google/trogdor/boardid.c
@@ -42,6 +42,13 @@ uint32_t ram_code(void)
return id;
}
+static uint8_t panel_id(void)
+{
+ const gpio_t pins[] = {[1] = GPIO(11), [0] = GPIO(4)};
+
+ return gpio_binary_first_base3_value(pins, ARRAY_SIZE(pins));
+}
+
uint32_t sku_id(void)
{
static uint32_t id = UNDEFINED_STRAPPING_ID;
@@ -54,6 +61,9 @@ uint32_t sku_id(void)
id = gpio_binary_first_base3_value(old_pins, ARRAY_SIZE(old_pins));
else
id = gpio_binary_first_base3_value(pins, ARRAY_SIZE(pins));
+
+ if (CONFIG(TROGDOR_HAS_MIPI_PANEL))
+ id = panel_id() << 8 | id;
}
return id;