From 5a99e93d698cabd6946e62d664a19a4d5eca883c Mon Sep 17 00:00:00 2001 From: Nazar Palamar Date: Mon, 28 Feb 2022 12:23:48 +0200 Subject: [PATCH] soc: arm: cypress: Update PSoC 6 implementation to use mtb-pdl-cat1 Updated PSoC 6 implementation to use hal_infineon/mtb-pdl-cat1 This PR is reflected changes according to Task#1 for RFC#42883. Signed-off-by: Nazar Palamar --- soc/arm/cypress/psoc6/noinit.ld | 3 +++ soc/arm/cypress/psoc6/rwdata.ld | 1 - soc/arm/cypress/psoc6/soc.c | 8 ++++++++ soc/arm/cypress/psoc6/soc.h | 2 -- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/soc/arm/cypress/psoc6/noinit.ld b/soc/arm/cypress/psoc6/noinit.ld index c1772734f3a..94808f99381 100644 --- a/soc/arm/cypress/psoc6/noinit.ld +++ b/soc/arm/cypress/psoc6/noinit.ld @@ -15,3 +15,6 @@ KEEP(*(.heap)) . = ALIGN(4); KEEP(*(.stack)) + +. = ALIGN(4); +KEEP(*(.cy_sharedmem)) diff --git a/soc/arm/cypress/psoc6/rwdata.ld b/soc/arm/cypress/psoc6/rwdata.ld index c3d1c155492..a7aac19afe2 100644 --- a/soc/arm/cypress/psoc6/rwdata.ld +++ b/soc/arm/cypress/psoc6/rwdata.ld @@ -1,4 +1,3 @@ - /* * SPDX-License-Identifier: Apache-2.0 * Extracted from: diff --git a/soc/arm/cypress/psoc6/soc.c b/soc/arm/cypress/psoc6/soc.c index 78c5255e74d..43c88ac57f5 100644 --- a/soc/arm/cypress/psoc6/soc.c +++ b/soc/arm/cypress/psoc6/soc.c @@ -37,6 +37,14 @@ #define CY_CFG_PWR_VDDA_MV 3300 #define CY_CFG_PWR_USING_ULP 0 +/* Dummy symbols, requres for cy_sysint.c module. + * NOTE: in this PSoC 6 integration, PSoC 6 Zephyr drivers (uart, spi, gpio) + * do not use cy_sysint.c implementation to handle interrupt routine. + * Instead this they use IRQ_CONNECT to define ISR. + */ +uint32_t __ramVectors; +uint32_t __Vectors; + static const cy_stc_fll_manual_config_t srss_0__clock_0__fll_0__fllConfig = { .fllMult = 500u, .refDiv = 20u, diff --git a/soc/arm/cypress/psoc6/soc.h b/soc/arm/cypress/psoc6/soc.h index 2fdbb94b401..fe5e982cde1 100644 --- a/soc/arm/cypress/psoc6/soc.h +++ b/soc/arm/cypress/psoc6/soc.h @@ -19,9 +19,7 @@ #ifndef _ASMLANGUAGE - #include - #include "../common/soc_gpio.h" #include "../common/cypress_psoc6_dt.h"