summaryrefslogtreecommitdiff
path: root/board/lazor/board.h
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2021-06-15 15:57:02 -0700
committerCommit Bot <commit-bot@chromium.org>2021-06-16 04:30:16 +0000
commitf1ecf804038855c0ee27714901553711aecccfc9 (patch)
tree314f20ff7f5f2c438827ad4bb226cbd9e81663aa /board/lazor/board.h
parent504216c9b3df0af440ce86571136bb7dc005fc02 (diff)
downloadchrome-ec-f1ecf804038855c0ee27714901553711aecccfc9.tar.gz
lazor: Interpret the BOARD ID in the binary-first base3 system
Convert the raw BOARD ID to a binary-first base3 number. So it won't affect the original binary BOARD ID assignment. If all the GPIOs are not tri-state, it ends up to be a number in binary interpretation. Also cache the BOARD ID value. BRANCH=Trogdor BUG=b:190250108 TEST=Build the image and check the BOARD IDs. Change-Id: Ibd938fbc05977df1eb7d8d27460beab4cd0f7bf7 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2964390 Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'board/lazor/board.h')
-rw-r--r--board/lazor/board.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/board/lazor/board.h b/board/lazor/board.h
index d4f4426d05..077e6ded70 100644
--- a/board/lazor/board.h
+++ b/board/lazor/board.h
@@ -13,6 +13,9 @@
/* Internal SPI flash on NPCX7 */
#define CONFIG_FLASH_SIZE_BYTES (512 * 1024) /* 512KB internal spi flash */
+/* Custom the board version using tristate */
+#define CONFIG_BOARD_VERSION_CUSTOM
+
/* Switchcap */
#define CONFIG_LN9310
@@ -83,6 +86,7 @@
#include "gpio_signal.h"
#include "registers.h"
+#include "sku.h"
enum adc_channel {
ADC_VBUS,