Browse Source
Ports the xmc_4xxx SoC configuration to hardware model version 2 Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>pull/69687/head
19 changed files with 84 additions and 88 deletions
@ -0,0 +1,14 @@
@@ -0,0 +1,14 @@
|
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
# |
||||
# Copyright (c) 2020 Linumiz |
||||
# Author: Parthiban Nallathambi <parthiban@linumiz.com> |
||||
|
||||
config SOC_FAMILY_INFINEON_XMC |
||||
select HAS_SEGGER_RTT if ZEPHYR_SEGGER_MODULE |
||||
select PLATFORM_SPECIFIC_INIT |
||||
|
||||
if SOC_FAMILY_INFINEON_XMC |
||||
|
||||
rsource "*/Kconfig" |
||||
|
||||
endif # SOC_FAMILY_INFINEON_XMC |
@ -0,0 +1,12 @@
@@ -0,0 +1,12 @@
|
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
# |
||||
# Copyright (c) 2020 Linumiz |
||||
# Author: Parthiban Nallathambi <parthiban@linumiz.com> |
||||
|
||||
config SOC_FAMILY_INFINEON_XMC |
||||
bool |
||||
|
||||
config SOC_FAMILY |
||||
default "infineon_xmc" if SOC_FAMILY_INFINEON_XMC |
||||
|
||||
rsource "*/Kconfig.soc" |
@ -0,0 +1,7 @@
@@ -0,0 +1,7 @@
|
||||
family: |
||||
- name: infineon_xmc |
||||
series: |
||||
- name: xmc4xxx |
||||
socs: |
||||
- name: xmc4500 |
||||
- name: xmc4700 |
@ -0,0 +1,40 @@
@@ -0,0 +1,40 @@
|
||||
# XMC 4xxx MCU line |
||||
# |
||||
# Copyright (c) 2020 Linumiz |
||||
# Author: Parthiban Nallathambi <parthiban@linumiz.com> |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
config SOC_SERIES_XMC4XXX |
||||
bool |
||||
select SOC_FAMILY_INFINEON_XMC |
||||
help |
||||
XMC 4xxx Series MCU |
||||
|
||||
config SOC_XMC4500 |
||||
bool |
||||
select SOC_SERIES_XMC4XXX |
||||
help |
||||
SOC_XMC4500 |
||||
|
||||
config SOC_XMC4700 |
||||
bool |
||||
select SOC_SERIES_XMC4XXX |
||||
help |
||||
SOC_XMC4700 |
||||
|
||||
config SOC_PART_NUMBER_F100X1024 |
||||
bool |
||||
|
||||
config SOC_PART_NUMBER_F144X2048 |
||||
bool |
||||
|
||||
config SOC_SERIES |
||||
default "xmc4xxx" if SOC_SERIES_XMC4XXX |
||||
|
||||
config SOC |
||||
default "xmc4500" if SOC_XMC4500 |
||||
default "xmc4700" if SOC_XMC4700 |
||||
|
||||
config SOC_PART_NUMBER |
||||
default "F100x1024" if SOC_PART_NUMBER_F100X1024 |
||||
default "F144x2048" if SOC_PART_NUMBER_F144X2048 |
@ -1,38 +0,0 @@
@@ -1,38 +0,0 @@
|
||||
# XMC 4xxx MCU line |
||||
# |
||||
# Copyright (c) 2020 Linumiz |
||||
# Author: Parthiban Nallathambi <parthiban@linumiz.com> |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
choice |
||||
prompt "XMC 4xxx MCU Selection" |
||||
depends on SOC_SERIES_XMC_4XXX |
||||
|
||||
config SOC_XMC4500 |
||||
bool "SOC_XMC4500" |
||||
select HAS_XMCLIB |
||||
|
||||
config SOC_XMC4700 |
||||
bool "SOC_XMC4700" |
||||
select HAS_XMCLIB |
||||
|
||||
endchoice |
||||
|
||||
if SOC_SERIES_XMC_4XXX |
||||
|
||||
config SOC_PART_NUMBER_F100X1024 |
||||
bool |
||||
|
||||
config SOC_PART_NUMBER_F144X2048 |
||||
bool |
||||
|
||||
config SOC_PART_NUMBER_XMC_4XXX |
||||
string |
||||
default "F100x1024" if SOC_PART_NUMBER_F100X1024 |
||||
default "F144x2048" if SOC_PART_NUMBER_F144X2048 |
||||
help |
||||
This string holds the full part number of the SoC. It is a hidden option |
||||
that you should not set directly. The part number selection choice defines |
||||
the default value for this string. |
||||
|
||||
endif # SOC_SERIES_XMC_4XXX |
@ -1,22 +0,0 @@
@@ -1,22 +0,0 @@
|
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
# |
||||
# Copyright (c) 2020 Linumiz |
||||
# Author: Parthiban Nallathambi <parthiban@linumiz.com> |
||||
|
||||
config SOC_FAMILY_XMC |
||||
bool |
||||
select HAS_SEGGER_RTT if ZEPHYR_SEGGER_MODULE |
||||
select PLATFORM_SPECIFIC_INIT |
||||
|
||||
if SOC_FAMILY_XMC |
||||
|
||||
config SOC_FAMILY |
||||
string |
||||
default "infineon_xmc" |
||||
|
||||
source "soc/soc_legacy/arm/infineon_xmc/*/Kconfig.soc" |
||||
|
||||
config SOC_PART_NUMBER |
||||
default SOC_PART_NUMBER_XMC_4XXX if SOC_SERIES_XMC_4XXX |
||||
|
||||
endif # SOC_FAMILY_XMC |
Loading…
Reference in new issue