summaryrefslogtreecommitdiff
path: root/board/lazor
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-04-13 09:21:58 +1200
committerCommit Bot <commit-bot@chromium.org>2021-04-13 05:08:34 +0000
commitba7b624489385f3d4094aa16ca9de60115484ff6 (patch)
tree101be519720e8e0542cf14d2f248690b1c17596f /board/lazor
parentb228100c852e47be7171bff2abee4be46b5f3d7b (diff)
downloadchrome-ec-ba7b624489385f3d4094aa16ca9de60115484ff6.tar.gz
zephyr: lazor: Enable the ps8xxx override function
This function is needed to detect the correct product ID for each port. Add it. BUG=b:183296099, b:183118990 BRANCH=none TEST=Build lazor on zephyr; no obvious changes when run Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: I1c7637a6fa6ccd1f0b82cbbd62575c43f096b641 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2822391 Reviewed-by: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'board/lazor')
-rw-r--r--board/lazor/sku.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/board/lazor/sku.c b/board/lazor/sku.c
index a89698e8b6..c7fe08fd87 100644
--- a/board/lazor/sku.c
+++ b/board/lazor/sku.c
@@ -7,6 +7,7 @@
#include "config.h"
#include "console.h"
#include "driver/ln9310.h"
+#include "tcpm/ps8xxx_public.h"
#include "gpio.h"
#include "hooks.h"
#include "system.h"
@@ -69,9 +70,6 @@ int board_is_clamshell(void)
return get_model() == LIMOZEEN;
}
-/* TODO(b:183118990): enable PS8xxx driver for zephyr */
-#ifndef CONFIG_ZEPHYR
-#include "driver/tcpm/ps8xxx.h"
__override uint16_t board_get_ps8xxx_product_id(int port)
{
/*
@@ -85,4 +83,3 @@ __override uint16_t board_get_ps8xxx_product_id(int port)
return PS8805_PRODUCT_ID;
}
-#endif