Browse Source
Convert the ite_ec soc to the hardware model v2. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>pull/69687/head
39 changed files with 83 additions and 88 deletions
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
||||
# Copyright (c) 2020 ITE Corporation. All Rights Reserved. |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
source "soc/soc_legacy/riscv/ite_ec/*/Kconfig.series" |
||||
rsource "*/Kconfig" |
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
||||
# Copyright (c) 2020 ITE Corporation. All Rights Reserved. |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
source "soc/soc_legacy/riscv/ite_ec/*/Kconfig.defconfig.series" |
||||
rsource "*/Kconfig.defconfig.series" |
@ -0,0 +1,10 @@
@@ -0,0 +1,10 @@
|
||||
# Copyright (c) 2020 ITE Corporation. All Rights Reserved. |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
config SOC_FAMILY_ITE_EC |
||||
bool |
||||
|
||||
config SOC_FAMILY |
||||
default "ite_ec" if SOC_FAMILY_ITE_EC |
||||
|
||||
rsource "*/Kconfig.soc" |
@ -1,6 +1,6 @@
@@ -1,6 +1,6 @@
|
||||
zephyr_sources( |
||||
soc.c |
||||
) |
||||
zephyr_sources(soc.c) |
||||
zephyr_include_directories(.) |
||||
|
||||
zephyr_library_sources_ifndef(CONFIG_RISCV_ISA_EXT_M __arithmetic.S) |
||||
zephyr_sources_ifdef(CONFIG_SOC_IT8XXX2_USE_ILM ilm.c) |
||||
|
@ -0,0 +1,49 @@
@@ -0,0 +1,49 @@
|
||||
# Copyright (c) 2020 ITE Corporation. All Rights Reserved. |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
config SOC_SERIES_ITE_IT8XXX2 |
||||
bool |
||||
select SOC_FAMILY_ITE_EC |
||||
help |
||||
Enable support for ITE IT8XXX2 |
||||
|
||||
config SOC_IT8XXX2 |
||||
bool |
||||
select SOC_SERIES_ITE_IT8XXX2 |
||||
|
||||
config SOC_IT81302_BX |
||||
bool |
||||
select SOC_IT8XXX2 |
||||
|
||||
config SOC_IT81202_BX |
||||
bool |
||||
select SOC_IT8XXX2 |
||||
|
||||
config SOC_IT81302_CX |
||||
bool |
||||
select SOC_IT8XXX2 |
||||
|
||||
config SOC_IT81202_CX |
||||
bool |
||||
select SOC_IT8XXX2 |
||||
|
||||
config SOC_IT82202_AX |
||||
bool |
||||
select SOC_IT8XXX2 |
||||
|
||||
config SOC_IT82302_AX |
||||
bool |
||||
select SOC_IT8XXX2 |
||||
|
||||
config SOC_IT82002_AW |
||||
bool |
||||
select SOC_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 |
@ -0,0 +1,10 @@
@@ -0,0 +1,10 @@
|
||||
series: |
||||
- name: it8xxxx |
||||
socs: |
||||
- name: it81202bx |
||||
- name: it81202cx |
||||
- name: it81302bx |
||||
- name: it81302cx |
||||
- name: it82002aw |
||||
- name: it82202ax |
||||
- name: it82302ax |
@ -1,17 +0,0 @@
@@ -1,17 +0,0 @@
|
||||
# Copyright (c) 2020 ITE Corporation. All Rights Reserved. |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
config SOC_FAMILY_ITE_EC |
||||
bool |
||||
help |
||||
ITE Embedded Controller SoC family |
||||
|
||||
if SOC_FAMILY_ITE_EC |
||||
|
||||
config SOC_FAMILY |
||||
string |
||||
default "ite_ec" |
||||
|
||||
source "soc/soc_legacy/riscv/ite_ec/*/Kconfig.soc" |
||||
|
||||
endif # SOC_FAMILY_ITE_EC |
@ -1,13 +0,0 @@
@@ -1,13 +0,0 @@
|
||||
# Copyright (c) 2020 ITE Corporation. All Rights Reserved. |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
config SOC_SERIES_ITE_IT8XXX2 |
||||
bool "ITE IT8XXX2 implementation" |
||||
#depends on RISCV |
||||
# RV32IAFC is an uncommon configuration which is not supported by |
||||
# default in most toolchains, causing link-time errors. |
||||
select CPU_HAS_FPU if "$(ZEPHYR_TOOLCHAIN_VARIANT)" != "zephyr" || RISCV_ISA_EXT_M |
||||
select SOC_FAMILY_ITE_EC |
||||
select HAS_PM |
||||
help |
||||
Enable support for ITE IT8XXX2 |
Loading…
Reference in new issue