diff options
author | Wai-Hong Tam <waihong@google.com> | 2021-05-13 10:04:01 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-05-18 18:39:13 +0000 |
commit | 59780263fcca42d1b411fddf48ebcba683d5f26b (patch) | |
tree | f46d6728ddf98b614ac42c82defb9ea6f0b90a8c /zephyr | |
parent | 86205854684f98d7092e47e974961bb94697b410 (diff) | |
download | chrome-ec-59780263fcca42d1b411fddf48ebcba683d5f26b.tar.gz |
qcom: Create new configs for SC7280
Create new configs (Chromium EC namespace and Zephyr namespace) for
SC7280. In this state, SC7280 power sequence has no difference
from SC7180.
BRANCH=None
BUG=b:187980397
TEST=Built all the Chromium EC images and Zephyr EC images.
TEST=Modify a board to use the new CONFIG.
Change-Id: I178b8ffa5d79d3828baf222ac77906ab2262cf76
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2893069
Diffstat (limited to 'zephyr')
-rw-r--r-- | zephyr/CMakeLists.txt | 2 | ||||
-rw-r--r-- | zephyr/Kconfig.powerseq | 8 | ||||
-rw-r--r-- | zephyr/app/ec/soc/Kconfig | 7 | ||||
-rw-r--r-- | zephyr/shim/include/config_chip.h | 4 |
4 files changed, 21 insertions, 0 deletions
diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt index 2ce9b6e4b6..b4e1b0475d 100644 --- a/zephyr/CMakeLists.txt +++ b/zephyr/CMakeLists.txt @@ -338,6 +338,8 @@ zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_POWERSEQ_HOST_SLEEP "${PLATFORM_EC}/power/host_sleep.c") zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_POWERSEQ_SC7180 "${PLATFORM_EC}/power/qcom.c") +zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_POWERSEQ_SC7280 + "${PLATFORM_EC}/power/qcom.c") zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_PANIC "${PLATFORM_EC}/common/panic_output.c") zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_PWM diff --git a/zephyr/Kconfig.powerseq b/zephyr/Kconfig.powerseq index df83d0ae82..010ea0d1eb 100644 --- a/zephyr/Kconfig.powerseq +++ b/zephyr/Kconfig.powerseq @@ -133,4 +133,12 @@ config PLATFORM_EC_POWERSEQ_SC7180 Enable power sequencing for the Qualcomm Snapdragon SC7180 chipset. +config PLATFORM_EC_POWERSEQ_SC7280 + bool "SC7280 power sequencing" + depends on AP_ARM_QUALCOMM_SC7280 + default y + help + Enable power sequencing for the Qualcomm Snapdragon SC7280 + chipset. + endif # PLATFORM_EC_POWERSEQ diff --git a/zephyr/app/ec/soc/Kconfig b/zephyr/app/ec/soc/Kconfig index 47efe56d16..a77d7fda5a 100644 --- a/zephyr/app/ec/soc/Kconfig +++ b/zephyr/app/ec/soc/Kconfig @@ -41,6 +41,13 @@ config AP_ARM_QUALCOMM_SC7180 The application processor is a Qualcomm Snapdragon SC7180 ARMv8 processor. +config AP_ARM_QUALCOMM_SC7280 + bool "Qualcomm Snapdragon SC7280" + select AP_AARCH64 + help + The application processor is a Qualcomm Snapdragon SC7280 + ARMv8 processor. + endchoice # Invisible meta-symbols generated by the selected chipset. diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h index 8549089d26..9ef652b6b1 100644 --- a/zephyr/shim/include/config_chip.h +++ b/zephyr/shim/include/config_chip.h @@ -107,6 +107,10 @@ #define CONFIG_CHIPSET_SC7180 #endif +#ifdef CONFIG_AP_ARM_QUALCOMM_SC7280 +#define CONFIG_CHIPSET_SC7280 +#endif + #ifdef CONFIG_AP_X86_INTEL_CML #define CONFIG_CHIPSET_COMETLAKE #define CONFIG_CHIPSET_HAS_PRE_INIT_CALLBACK |