diff --git a/boards/ite/it82xx2_evb/Kconfig.it82xx2_evb b/boards/ite/it82xx2_evb/Kconfig.it82xx2_evb index 94025707fa..e2f8a89e09 100644 --- a/boards/ite/it82xx2_evb/Kconfig.it82xx2_evb +++ b/boards/ite/it82xx2_evb/Kconfig.it82xx2_evb @@ -2,4 +2,4 @@ # SPDX-License-Identifier: Apache-2.0 config BOARD_IT82XX2_EVB - select SOC_IT82202_AX + select SOC_IT82202AX diff --git a/boards/ite/it8xxx2_evb/Kconfig.it8xxx2_evb b/boards/ite/it8xxx2_evb/Kconfig.it8xxx2_evb index 8e9b476eb6..d5d55c35aa 100644 --- a/boards/ite/it8xxx2_evb/Kconfig.it8xxx2_evb +++ b/boards/ite/it8xxx2_evb/Kconfig.it8xxx2_evb @@ -2,4 +2,4 @@ # SPDX-License-Identifier: Apache-2.0 config BOARD_IT8XXX2_EVB - select SOC_IT81302_BX + select SOC_IT81302BX diff --git a/soc/ite/ec/it8xxx2/Kconfig b/soc/ite/ec/it8xxx2/Kconfig index 47a4f54f0b..4a1e5586eb 100644 --- a/soc/ite/ec/it8xxx2/Kconfig +++ b/soc/ite/ec/it8xxx2/Kconfig @@ -1,11 +1,11 @@ # Copyright (c) 2020 ITE Corporation. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 -config SOC_SERIES_ITE_IT8XXX2 +config SOC_SERIES_IT8XXX2 select CPU_HAS_FPU if "$(ZEPHYR_TOOLCHAIN_VARIANT)" != "zephyr" || RISCV_ISA_EXT_M select HAS_PM -if SOC_SERIES_ITE_IT8XXX2 +if SOC_SERIES_IT8XXX2 config SOC_IT8XXX2 select RISCV @@ -15,7 +15,7 @@ config SOC_IT8XXX2 select RISCV_ISA_EXT_ZIFENCEI # Workaround mul instruction bug, see: # https://www.ite.com.tw/uploads/product_download/it81202-bx-chip-errata.pdf - select RISCV_ISA_EXT_M if !(SOC_IT81302_BX || SOC_IT81202_BX) + select RISCV_ISA_EXT_M if !(SOC_IT81302BX || SOC_IT81202BX) select RISCV_ISA_EXT_A select RISCV_ISA_EXT_C @@ -43,33 +43,33 @@ config SOC_IT8XXX2_USBPD_PHY_V2 This option is automatically selected by variant soc and sets the USBPD PHY version. -config SOC_IT81302_BX +config SOC_IT81302BX select SOC_IT8XXX2_REG_SET_V1 select SOC_IT8XXX2_USBPD_PHY_V1 -config SOC_IT81202_BX +config SOC_IT81202BX select SOC_IT8XXX2_REG_SET_V1 select SOC_IT8XXX2_USBPD_PHY_V1 -config SOC_IT81302_CX +config SOC_IT81302CX select SOC_IT8XXX2_REG_SET_V1 select SOC_IT8XXX2_USBPD_PHY_V2 -config SOC_IT81202_CX +config SOC_IT81202CX select SOC_IT8XXX2_REG_SET_V1 select SOC_IT8XXX2_USBPD_PHY_V2 -config SOC_IT82202_AX +config SOC_IT82202AX select SOC_IT8XXX2_REG_SET_V2 select SOC_IT8XXX2_EC_BUS_24MHZ if !DT_HAS_ITE_IT82XX2_USB_ENABLED select SOC_IT8XXX2_USBPD_PHY_V2 -config SOC_IT82302_AX +config SOC_IT82302AX select SOC_IT8XXX2_REG_SET_V2 select SOC_IT8XXX2_EC_BUS_24MHZ if !DT_HAS_ITE_IT82XX2_USB_ENABLED select SOC_IT8XXX2_USBPD_PHY_V2 -config SOC_IT82002_AW +config SOC_IT82002AW select SOC_IT8XXX2_REG_SET_V2 select SOC_IT8XXX2_EC_BUS_24MHZ if !DT_HAS_ITE_IT82XX2_USB_ENABLED select SOC_IT8XXX2_USBPD_PHY_V2 @@ -183,7 +183,7 @@ config SOC_IT8XXX2_FLASH_SIZE_BYTES config ILM_MAX_SIZE int "ILM Size in kB" - default 60 if SOC_IT81202_CX || SOC_IT81302_CX + default 60 if SOC_IT81202CX || SOC_IT81302CX default SRAM_SIZE -endif # SOC_SERIES_ITE_IT8XXX2 +endif # SOC_SERIES_IT8XXX2 diff --git a/soc/ite/ec/it8xxx2/Kconfig.defconfig.it81202bx b/soc/ite/ec/it8xxx2/Kconfig.defconfig.it81202bx index a643011e6b..5471961fa8 100644 --- a/soc/ite/ec/it8xxx2/Kconfig.defconfig.it81202bx +++ b/soc/ite/ec/it8xxx2/Kconfig.defconfig.it81202bx @@ -1,7 +1,7 @@ # Copyright (c) 2022 ITE Corporation. # SPDX-License-Identifier: Apache-2.0 -if SOC_IT81202_BX +if SOC_IT81202BX config SOC_IT8XXX2_GPIO_GROUP_K_L_DEFAULT_PULL_DOWN default y diff --git a/soc/ite/ec/it8xxx2/Kconfig.defconfig.it81202cx b/soc/ite/ec/it8xxx2/Kconfig.defconfig.it81202cx index e9b5d1d5eb..91f992f076 100644 --- a/soc/ite/ec/it8xxx2/Kconfig.defconfig.it81202cx +++ b/soc/ite/ec/it8xxx2/Kconfig.defconfig.it81202cx @@ -1,7 +1,7 @@ # Copyright (c) 2022 ITE Corporation. # SPDX-License-Identifier: Apache-2.0 -if SOC_IT81202_CX +if SOC_IT81202CX config SOC_IT8XXX2_GPIO_GROUP_K_L_DEFAULT_PULL_DOWN default y diff --git a/soc/ite/ec/it8xxx2/Kconfig.defconfig.it81302bx b/soc/ite/ec/it8xxx2/Kconfig.defconfig.it81302bx index 051d40f1e4..c8f0831080 100644 --- a/soc/ite/ec/it8xxx2/Kconfig.defconfig.it81302bx +++ b/soc/ite/ec/it8xxx2/Kconfig.defconfig.it81302bx @@ -1,7 +1,7 @@ # Copyright (c) 2022 ITE Corporation. # SPDX-License-Identifier: Apache-2.0 -if SOC_IT81302_BX +if SOC_IT81302BX config SOC_IT8XXX2_GPIO_GROUP_K_L_DEFAULT_PULL_DOWN default n diff --git a/soc/ite/ec/it8xxx2/Kconfig.defconfig.it81302cx b/soc/ite/ec/it8xxx2/Kconfig.defconfig.it81302cx index 06fb93d78d..85e1a212f6 100644 --- a/soc/ite/ec/it8xxx2/Kconfig.defconfig.it81302cx +++ b/soc/ite/ec/it8xxx2/Kconfig.defconfig.it81302cx @@ -1,7 +1,7 @@ # Copyright (c) 2022 ITE Corporation. # SPDX-License-Identifier: Apache-2.0 -if SOC_IT81302_CX +if SOC_IT81302CX config SOC_IT8XXX2_GPIO_GROUP_K_L_DEFAULT_PULL_DOWN default n diff --git a/soc/ite/ec/it8xxx2/Kconfig.defconfig.it82002aw b/soc/ite/ec/it8xxx2/Kconfig.defconfig.it82002aw index 30e2db747b..9ac533f35e 100644 --- a/soc/ite/ec/it8xxx2/Kconfig.defconfig.it82002aw +++ b/soc/ite/ec/it8xxx2/Kconfig.defconfig.it82002aw @@ -1,7 +1,7 @@ # Copyright (c) 2023 ITE Corporation. # SPDX-License-Identifier: Apache-2.0 -if SOC_IT82002_AW +if SOC_IT82002AW config SOC_IT8XXX2_GPIO_GROUP_K_L_DEFAULT_PULL_DOWN default y diff --git a/soc/ite/ec/it8xxx2/Kconfig.defconfig.it82202ax b/soc/ite/ec/it8xxx2/Kconfig.defconfig.it82202ax index 99343db0b3..d00acc8c4d 100644 --- a/soc/ite/ec/it8xxx2/Kconfig.defconfig.it82202ax +++ b/soc/ite/ec/it8xxx2/Kconfig.defconfig.it82202ax @@ -1,7 +1,7 @@ # Copyright (c) 2023 ITE Corporation. # SPDX-License-Identifier: Apache-2.0 -if SOC_IT82202_AX +if SOC_IT82202AX config SOC_IT8XXX2_GPIO_GROUP_K_L_DEFAULT_PULL_DOWN default y diff --git a/soc/ite/ec/it8xxx2/Kconfig.defconfig.it82302ax b/soc/ite/ec/it8xxx2/Kconfig.defconfig.it82302ax index e1cff23886..5481408c32 100644 --- a/soc/ite/ec/it8xxx2/Kconfig.defconfig.it82302ax +++ b/soc/ite/ec/it8xxx2/Kconfig.defconfig.it82302ax @@ -1,7 +1,7 @@ # Copyright (c) 2024 ITE Corporation. # SPDX-License-Identifier: Apache-2.0 -if SOC_IT82302_AX +if SOC_IT82302AX config SOC_IT8XXX2_GPIO_GROUP_K_L_DEFAULT_PULL_DOWN default n diff --git a/soc/ite/ec/it8xxx2/Kconfig.defconfig.series b/soc/ite/ec/it8xxx2/Kconfig.defconfig.series index 98fbee6c0c..2b0f8549ef 100644 --- a/soc/ite/ec/it8xxx2/Kconfig.defconfig.series +++ b/soc/ite/ec/it8xxx2/Kconfig.defconfig.series @@ -1,7 +1,7 @@ # Copyright (c) 2020 ITE Corporation. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 -if SOC_SERIES_ITE_IT8XXX2 +if SOC_SERIES_IT8XXX2 config RISCV_GP default y @@ -53,4 +53,4 @@ config RISCV_SOC_INTERRUPT_INIT rsource "Kconfig.defconfig.it8*" -endif # SOC_SERIES_ITE_IT8XXX2 +endif # SOC_SERIES_IT8XXX2 diff --git a/soc/ite/ec/it8xxx2/Kconfig.soc b/soc/ite/ec/it8xxx2/Kconfig.soc index aba69c5534..b0f0a0be93 100644 --- a/soc/ite/ec/it8xxx2/Kconfig.soc +++ b/soc/ite/ec/it8xxx2/Kconfig.soc @@ -1,7 +1,7 @@ # Copyright (c) 2020 ITE Corporation. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 -config SOC_SERIES_ITE_IT8XXX2 +config SOC_SERIES_IT8XXX2 bool select SOC_FAMILY_ITE_EC help @@ -9,44 +9,44 @@ config SOC_SERIES_ITE_IT8XXX2 config SOC_IT8XXX2 bool - select SOC_SERIES_ITE_IT8XXX2 + select SOC_SERIES_IT8XXX2 -config SOC_IT81302_BX +config SOC_IT81302BX bool select SOC_IT8XXX2 -config SOC_IT81202_BX +config SOC_IT81202BX bool select SOC_IT8XXX2 -config SOC_IT81302_CX +config SOC_IT81302CX bool select SOC_IT8XXX2 -config SOC_IT81202_CX +config SOC_IT81202CX bool select SOC_IT8XXX2 -config SOC_IT82202_AX +config SOC_IT82202AX bool select SOC_IT8XXX2 -config SOC_IT82302_AX +config SOC_IT82302AX bool select SOC_IT8XXX2 -config SOC_IT82002_AW +config SOC_IT82002AW bool select SOC_IT8XXX2 config SOC_SERIES - default "it8xxx2" if SOC_SERIES_ITE_IT8XXX2 + default "it8xxx2" if SOC_SERIES_IT8XXX2 config SOC - default "it81202bx" if SOC_IT81202_BX - default "it81202cx" if SOC_IT81202_CX - default "it81302bx" if SOC_IT81302_BX - default "it81302cx" if SOC_IT81302_CX - default "it82002aw" if SOC_IT82002_AW - default "it82202ax" if SOC_IT82202_AX - default "it82302ax" if SOC_IT82302_AX + default "it81202bx" if SOC_IT81202BX + default "it81202cx" if SOC_IT81202CX + default "it81302bx" if SOC_IT81302BX + default "it81302cx" if SOC_IT81302CX + default "it82002aw" if SOC_IT82002AW + default "it82202ax" if SOC_IT82202AX + default "it82302ax" if SOC_IT82302AX diff --git a/soc/ite/ec/it8xxx2/ilm.c b/soc/ite/ec/it8xxx2/ilm.c index 85738f54c4..f586e38dd4 100644 --- a/soc/ite/ec/it8xxx2/ilm.c +++ b/soc/ite/ec/it8xxx2/ilm.c @@ -176,7 +176,7 @@ static const struct ilm_config ilm_config = { SCAR_REG(13), SCAR_REG(14), /* - * Except for CONFIG_SOC_IT81202_CX and CONFIG_SOC_IT81302_CX + * Except for CONFIG_SOC_IT81202CX and CONFIG_SOC_IT81302CX * maximum ILM size are 60KB, the ILM size of other varients * are equal to the SRAM size. */