soc: arm: cypress: Introduce PSoC-63 BLE

Add initial support for PSoC-63 BLE Series.

Signed-off-by: Gerson Fernando Budke <gerson.budke@atl-electronics.com>
This commit is contained in:
Gerson Fernando Budke 2020-09-10 12:41:25 -03:00 committed by Kumar Gala
parent d62aefe608
commit 73e9217e73
8 changed files with 40 additions and 16 deletions

View file

@ -37,6 +37,7 @@
/soc/arm/atmel_sam/sam4s/ @fallrisk
/soc/arm/atmel_sam/same70/ @nandojve
/soc/arm/atmel_sam/samv71/ @nandojve
/soc/arm/cypress/ @nandojve
/soc/arm/bcm*/ @sbranden
/soc/arm/infineon_xmc/ @parthitce
/soc/arm/nxp*/ @MaureenHelm

View file

@ -1,9 +1,11 @@
# Copyright (c) 2018, Cypress
# Copyright (c) 2020, ATL Electronics
# SPDX-License-Identifier: Apache-2.0
choice
prompt "Cypress PSoC6 MCU Selection"
depends on SOC_SERIES_PSOC62
depends on SOC_SERIES_PSOC62 || \
SOC_SERIES_PSOC63
config SOC_PSOC6_M0
bool "SOC_PSOC6_M0"

View file

@ -1,5 +1,6 @@
#
# Copyright (c) 2018, Cypress
# Copyright (c) 2020, ATL Electronics
#
# SPDX-License-Identifier: Apache-2.0
#
@ -9,5 +10,5 @@ zephyr_sources(
soc.c
)
zephyr_linker_sources_ifdef(CONFIG_SOC_SERIES_PSOC62 NOINIT noinit.ld)
zephyr_linker_sources_ifdef(CONFIG_SOC_SERIES_PSOC62 RWDATA rwdata.ld)
zephyr_linker_sources_ifdef(CONFIG_SOC_FAMILY_PSOC6 NOINIT noinit.ld)
zephyr_linker_sources_ifdef(CONFIG_SOC_FAMILY_PSOC6 RWDATA rwdata.ld)

View file

@ -8,8 +8,7 @@ if SOC_PSOC6_M0
config SOC
default "psoc6_m0"
config UART_PSOC6
default y
depends on SERIAL
config NUM_IRQS
default 32
endif # SOC_PSOC6_M0

View file

@ -8,8 +8,7 @@ if SOC_PSOC6_M4
config SOC
default "psoc6_m4"
config UART_PSOC6
default y
depends on SERIAL
config NUM_IRQS
default 147
endif # SOC_PSOC6_M4

View file

@ -1,9 +1,11 @@
# Cypress Semiconductor PSoC6 series configuration options
# Copyright (c) 2018, Cypress
# Copyright (c) 2020, ATL Electronics
# SPDX-License-Identifier: Apache-2.0
if SOC_SERIES_PSOC62
if SOC_SERIES_PSOC62 || \
SOC_SERIES_PSOC63
config SOC_SERIES
default "psoc6"
@ -11,13 +13,17 @@ config SOC_SERIES
config SOC_PART_NUMBER
default "CY8C6247BZI_D54" if SOC_PART_NUMBER_CY8C6247BZI_D54
config NUM_IRQS
# must be >= the highest interrupt number used
default 40
config SOC_PART_NUMBER
default "CY8C6347BZI_BLD53" if SOC_PART_NUMBER_CY8C6347BZI_BLD53
config SYS_CLOCK_HW_CYCLES_PER_SEC
default 50000000
source "soc/arm/cypress/psoc6/Kconfig.defconfig.psoc*"
endif # SOC_SERIES_PSOC62
config UART_PSOC6
default y
depends on SERIAL
endif # SOC_SERIES_PSOC62 || \
# SOC_SERIES_PSOC63

View file

@ -1,12 +1,21 @@
# Cypress PSoC6 MCU line
# Copyright (c) 2018, Cypress Semiconductor
# Copyright (c) 2020, ATL Electronics
# SPDX-License-Identifier: Apache-2.0
config SOC_SERIES_PSOC62
bool "Cypress PSoC6 series MCU"
bool "Cypress PSoC6 series MCU - Standard"
select ARM
select SOC_FAMILY_PSOC6
select HAS_CYPRESS_DRIVERS
help
Enable support for Cypress PSoC6 MCU series
config SOC_SERIES_PSOC63
bool "Cypress PSoC6 series MCU - Bluetooth Low Energy"
select ARM
select SOC_FAMILY_PSOC6
select HAS_CYPRESS_DRIVERS
help
Enable support for Cypress PSoC6-BLE MCU series

View file

@ -1,13 +1,20 @@
# Cypress PSOC6 MCU line
# Copyright (c) 2018, Cypress
# Copyright (c) 2020, ATL Electronics
# SPDX-License-Identifier: Apache-2.0
choice
prompt "Cypress PSoC6 MCU Selection"
depends on SOC_SERIES_PSOC62
depends on SOC_SERIES_PSOC62 || \
SOC_SERIES_PSOC63
config SOC_PART_NUMBER_CY8C6247BZI_D54
bool "CY8C6247BZI_D54"
depends on SOC_SERIES_PSOC62
config SOC_PART_NUMBER_CY8C6347BZI_BLD53
bool "CY8C6347BZI_BLD53"
depends on SOC_SERIES_PSOC63
endchoice