summaryrefslogtreecommitdiff
path: root/zephyr/projects/trogdor/lazor/include/gpio_map.h
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2021-03-11 13:24:16 -0700
committerCommit Bot <commit-bot@chromium.org>2021-03-11 23:44:04 +0000
commit0f7e8a8c28606538650e5767eff303d2f66f434d (patch)
tree3bf00c0466bcdae64ad55d72122e94c25828c73a /zephyr/projects/trogdor/lazor/include/gpio_map.h
parent44b0ef516a4d01390bcff811060a4ad8644c13cc (diff)
downloadchrome-ec-0f7e8a8c28606538650e5767eff303d2f66f434d.tar.gz
zephyr: lazor: enable board version using GPIO
Lazor uses the Board ID pins to select the board version. Create the appropriate definitions in gpio_map.h and enable. BUG=b:102398910 BRANCH=none TEST=run "version" command, board version is 3 as expected for DVT Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: Ib2730e3fa6be01c1eacb2b986be72cd334b7ec76 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2752343 Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/projects/trogdor/lazor/include/gpio_map.h')
-rw-r--r--zephyr/projects/trogdor/lazor/include/gpio_map.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/zephyr/projects/trogdor/lazor/include/gpio_map.h b/zephyr/projects/trogdor/lazor/include/gpio_map.h
index a1715a3847..19d956e473 100644
--- a/zephyr/projects/trogdor/lazor/include/gpio_map.h
+++ b/zephyr/projects/trogdor/lazor/include/gpio_map.h
@@ -10,6 +10,9 @@
#include <gpio_signal.h>
#define GPIO_AC_PRESENT NAMED_GPIO(acok_od)
+#define GPIO_BOARD_VERSION1 NAMED_GPIO(brd_id0)
+#define GPIO_BOARD_VERSION2 NAMED_GPIO(brd_id1)
+#define GPIO_BOARD_VERSION3 NAMED_GPIO(brd_id2)
#define GPIO_ENTERING_RW NAMED_GPIO(ec_entering_rw)
#define GPIO_LID_OPEN NAMED_GPIO(lid_open_ec)
#define GPIO_POWER_BUTTON_L NAMED_GPIO(ec_pwr_btn_odl)