From 4b870bf1f084874379da5f8a8cc936b83fcca23c Mon Sep 17 00:00:00 2001 From: Tim Lin Date: Wed, 6 Sep 2023 13:44:56 +0800 Subject: [PATCH] FROMPULL: ITE: soc: Add the variant of it82002aw This variant uses the same die as IT82202/IT82302 series and has a pinout compatible with IT513xx series packages. Signed-off-by: Tim Lin (cherry picked from commit e6f4a4e9ee3b9b27755574eff9985dfcd3dfec7b) BUG=b:305783518 TEST=zmake build brox Change-Id: I4959f1e8b8fec6e83139d991581082d7ff88055e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/4944313 Tested-by: Keith Short Reviewed-by: Tim2 Lin Commit-Queue: Keith Short Reviewed-by: Tristan Honscheid --- .../riscv-ite/it8xxx2/Kconfig.defconfig.it82002aw | 12 ++++++++++++ soc/riscv/riscv-ite/it8xxx2/Kconfig.soc | 4 ++++ 2 files changed, 16 insertions(+) create mode 100644 soc/riscv/riscv-ite/it8xxx2/Kconfig.defconfig.it82002aw diff --git a/soc/riscv/riscv-ite/it8xxx2/Kconfig.defconfig.it82002aw b/soc/riscv/riscv-ite/it8xxx2/Kconfig.defconfig.it82002aw new file mode 100644 index 00000000000..1edba5f674e --- /dev/null +++ b/soc/riscv/riscv-ite/it8xxx2/Kconfig.defconfig.it82002aw @@ -0,0 +1,12 @@ +# Copyright (c) 2023 ITE Corporation. +# SPDX-License-Identifier: Apache-2.0 + +if SOC_IT82002_AW + +config SOC + default "it82002aw" + +config SOC_IT8XXX2_GPIO_GROUP_K_L_DEFAULT_PULL_DOWN + default y + +endif diff --git a/soc/riscv/riscv-ite/it8xxx2/Kconfig.soc b/soc/riscv/riscv-ite/it8xxx2/Kconfig.soc index c33fe0f376f..38525449f89 100644 --- a/soc/riscv/riscv-ite/it8xxx2/Kconfig.soc +++ b/soc/riscv/riscv-ite/it8xxx2/Kconfig.soc @@ -66,6 +66,10 @@ config SOC_IT82302_AX bool "IT82302 AX version" select SOC_IT8XXX2_REG_SET_V2 +config SOC_IT82002_AW + bool "IT82002 AW version" + select SOC_IT8XXX2_REG_SET_V2 + endchoice config SOC_IT8XXX2_PLL_FLASH_48M