summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Yilun Lin <yllin@chromium.org>2023-02-13 13:22:27 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-02-13 06:35:12 +0000
commit2988a887440dd63bdd7480e125ed9928a6a94ce8 (patch)
tree5faec2e7a8744c8af6ae6c0d5f5c256d7722214e
parentb06f4bb37716b86bce36cc103a3c99e7c6e07443 (diff)
downloadchrome-ec-2988a887440dd63bdd7480e125ed9928a6a94ce8.tar.gz
mt8188: add notes about mt8186 code reuse
Add comments for indicating the reuse of the mt8186 code on mt8188 platform. BUG=b:267268982 TEST=zmake build BRANCH=none Change-Id: I026071eec35fa0bd999c1c1642f1c15065712a7f Signed-off-by: Eric Yilun Lin <yllin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4243819 Auto-Submit: Eric Yilun Lin <yllin@google.com> Tested-by: Eric Yilun Lin <yllin@google.com> Commit-Queue: Fei Shao <fshao@chromium.org> Reviewed-by: Fei Shao <fshao@chromium.org> Reviewed-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
-rw-r--r--zephyr/CMakeLists.txt1
-rw-r--r--zephyr/Kconfig.powerseq5
2 files changed, 4 insertions, 2 deletions
diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt
index ddc260bc9f..e3c5780a4c 100644
--- a/zephyr/CMakeLists.txt
+++ b/zephyr/CMakeLists.txt
@@ -358,6 +358,7 @@ zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_POWERSEQ_HOST_SLEEP
"${PLATFORM_EC}/power/host_sleep.c")
zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_POWERSEQ_MT8186
"${PLATFORM_EC}/power/mt8186.c")
+# Re-use mt8186.c code
zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_POWERSEQ_MT8188
"${PLATFORM_EC}/power/mt8186.c")
zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_POWERSEQ_MT8192
diff --git a/zephyr/Kconfig.powerseq b/zephyr/Kconfig.powerseq
index 341657ef63..7865a6b8e2 100644
--- a/zephyr/Kconfig.powerseq
+++ b/zephyr/Kconfig.powerseq
@@ -218,11 +218,12 @@ config PLATFORM_EC_POWERSEQ_MT8186
Use the MT8186 code for power sequencing.
config PLATFORM_EC_POWERSEQ_MT8188
- bool "Use common MT8186 code for power sequencing"
+ bool "Use common MT8188 code for power sequencing"
default y
depends on AP_ARM_MTK_MT8188
help
- Use the MT8188 code for power sequencing.
+ Use the MT8188 code for power sequencing. Re-use MT8186 common
+ code.
config PLATFORM_EC_POWERSEQ_SC7180
bool "SC7180 power sequencing"