From 45ad24421209251525996bf153e6c5c92e55e3ac Mon Sep 17 00:00:00 2001 From: Gerson Fernando Budke Date: Thu, 3 Aug 2023 12:52:57 +0200 Subject: [PATCH] soc: atmel: Enable platform specific init This replace pre kernel initialization by the platform specific initialization call. The platform specific init will configure at very beginning the clocks, flash wait states and cache. Signed-off-by: Gerson Fernando Budke --- soc/arm/atmel_sam/sam3x/Kconfig.series | 1 + soc/arm/atmel_sam/sam3x/soc.c | 15 ++---------- soc/arm/atmel_sam/sam4e/Kconfig.series | 3 ++- soc/arm/atmel_sam/sam4e/soc.c | 16 ++----------- soc/arm/atmel_sam/sam4l/Kconfig.series | 3 ++- soc/arm/atmel_sam/sam4l/soc.c | 16 ++----------- soc/arm/atmel_sam/sam4s/Kconfig.series | 3 ++- soc/arm/atmel_sam/sam4s/soc.c | 15 ++---------- .../atmel_sam/same70/Kconfig.defconfig.series | 1 + soc/arm/atmel_sam/same70/Kconfig.series | 1 + soc/arm/atmel_sam/same70/soc.c | 22 ++++++++++-------- .../atmel_sam/samv71/Kconfig.defconfig.series | 2 +- soc/arm/atmel_sam/samv71/Kconfig.series | 1 + soc/arm/atmel_sam/samv71/soc.c | 23 +++++++++++-------- soc/arm/atmel_sam0/common/soc_samc2x.c | 7 ++---- soc/arm/atmel_sam0/common/soc_samd2x.c | 7 ++---- soc/arm/atmel_sam0/common/soc_samd5x.c | 7 ++---- soc/arm/atmel_sam0/common/soc_saml2x.c | 7 ++---- soc/arm/atmel_sam0/samc20/Kconfig.series | 1 + soc/arm/atmel_sam0/samc21/Kconfig.series | 1 + soc/arm/atmel_sam0/samd20/Kconfig.series | 1 + soc/arm/atmel_sam0/samd21/Kconfig.series | 1 + soc/arm/atmel_sam0/samd51/Kconfig.series | 1 + soc/arm/atmel_sam0/same51/Kconfig.series | 1 + soc/arm/atmel_sam0/same53/Kconfig.series | 1 + soc/arm/atmel_sam0/same54/Kconfig.series | 1 + soc/arm/atmel_sam0/saml21/Kconfig.series | 1 + soc/arm/atmel_sam0/samr21/Kconfig.series | 1 + soc/arm/atmel_sam0/samr34/Kconfig.series | 1 + soc/arm/atmel_sam0/samr35/Kconfig.series | 1 + 30 files changed, 65 insertions(+), 97 deletions(-) diff --git a/soc/arm/atmel_sam/sam3x/Kconfig.series b/soc/arm/atmel_sam/sam3x/Kconfig.series index 51874e8ae80..911eab6b1cc 100644 --- a/soc/arm/atmel_sam/sam3x/Kconfig.series +++ b/soc/arm/atmel_sam/sam3x/Kconfig.series @@ -13,6 +13,7 @@ config SOC_SERIES_SAM3X select CPU_CORTEX_M_HAS_DWT select CPU_HAS_ARM_MPU select SOC_FAMILY_SAM + select PLATFORM_SPECIFIC_INIT select ASF help Enable support for Atmel SAM3X Cortex-M3 microcontrollers. diff --git a/soc/arm/atmel_sam/sam3x/soc.c b/soc/arm/atmel_sam/sam3x/soc.c index d35011a0624..7e9e997910f 100644 --- a/soc/arm/atmel_sam/sam3x/soc.c +++ b/soc/arm/atmel_sam/sam3x/soc.c @@ -1,6 +1,7 @@ /* * Copyright (c) 2013-2015 Wind River Systems, Inc. * Copyright (c) 2016 Intel Corporation. + * Copyright (c) 2023 Gerson Fernando Budke * * SPDX-License-Identifier: Apache-2.0 */ @@ -192,15 +193,7 @@ static ALWAYS_INLINE void clock_init(void) } } -/** - * @brief Perform basic hardware initialization at boot. - * - * This has to be run at the very beginning thus the init priority is set at - * 0 (zero). - * - * @return 0 - */ -static int atmel_sam3x_init(void) +void z_arm_platform_init(void) { /* * Set FWS (Flash Wait State) value before increasing Master Clock @@ -213,8 +206,4 @@ static int atmel_sam3x_init(void) /* Setup system clocks */ clock_init(); - - return 0; } - -SYS_INIT(atmel_sam3x_init, PRE_KERNEL_1, 0); diff --git a/soc/arm/atmel_sam/sam4e/Kconfig.series b/soc/arm/atmel_sam/sam4e/Kconfig.series index 3d35b821d91..612e1d20bd6 100644 --- a/soc/arm/atmel_sam/sam4e/Kconfig.series +++ b/soc/arm/atmel_sam/sam4e/Kconfig.series @@ -2,7 +2,7 @@ # Copyright (c) 2017 Justin Watson # Copyright (c) 2018 Vincent van der Locht -# Copyright (c) 2019-2020 Gerson Fernando Budke +# Copyright (c) 2019-2023 Gerson Fernando Budke # SPDX-License-Identifier: Apache-2.0 config SOC_SERIES_SAM4E @@ -13,6 +13,7 @@ config SOC_SERIES_SAM4E select CPU_HAS_ARM_MPU select CPU_HAS_FPU select SOC_FAMILY_SAM + select PLATFORM_SPECIFIC_INIT select ASF help Enable support for Atmel SAM4E Cortex-M4 microcontrollers. diff --git a/soc/arm/atmel_sam/sam4e/soc.c b/soc/arm/atmel_sam/sam4e/soc.c index 47bed7f3b1d..2b374da4556 100644 --- a/soc/arm/atmel_sam/sam4e/soc.c +++ b/soc/arm/atmel_sam/sam4e/soc.c @@ -2,7 +2,7 @@ * Copyright (c) 2013-2015 Wind River Systems, Inc. * Copyright (c) 2016 Intel Corporation. * Copyright (c) 2017 Justin Watson - * Copyright (c) 2019 Gerson Fernando Budke + * Copyright (c) 2019-2023 Gerson Fernando Budke * * SPDX-License-Identifier: Apache-2.0 */ @@ -180,15 +180,7 @@ static ALWAYS_INLINE void clock_init(void) } } -/** - * @brief Perform basic hardware initialization at boot. - * - * This needs to be run from the very beginning. - * So the init priority has to be 0 (zero). - * - * @return 0 - */ -static int atmel_sam4e_init(void) +void z_arm_platform_init(void) { /* * Set FWS (Flash Wait State) value before increasing Master Clock @@ -202,8 +194,4 @@ static int atmel_sam4e_init(void) /* Setup system clocks. */ clock_init(); - - return 0; } - -SYS_INIT(atmel_sam4e_init, PRE_KERNEL_1, 0); diff --git a/soc/arm/atmel_sam/sam4l/Kconfig.series b/soc/arm/atmel_sam/sam4l/Kconfig.series index 6201d662dc7..7a41ba2ff24 100644 --- a/soc/arm/atmel_sam/sam4l/Kconfig.series +++ b/soc/arm/atmel_sam/sam4l/Kconfig.series @@ -1,4 +1,4 @@ -# Copyright (c) 2020 Gerson Fernando Budke +# Copyright (c) 2020-2023 Gerson Fernando Budke # SPDX-License-Identifier: Apache-2.0 config SOC_SERIES_SAM4L @@ -8,6 +8,7 @@ config SOC_SERIES_SAM4L select CPU_CORTEX_M_HAS_DWT select CPU_HAS_ARM_MPU select SOC_FAMILY_SAM + select PLATFORM_SPECIFIC_INIT select ASF help Enable support for Atmel SAM4L Cortex-M4 microcontrollers. diff --git a/soc/arm/atmel_sam/sam4l/soc.c b/soc/arm/atmel_sam/sam4l/soc.c index 9c67f99c6b6..c4e7b48ce1a 100644 --- a/soc/arm/atmel_sam/sam4l/soc.c +++ b/soc/arm/atmel_sam/sam4l/soc.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Gerson Fernando Budke + * Copyright (c) 2020-2023 Gerson Fernando Budke * SPDX-License-Identifier: Apache-2.0 */ @@ -253,15 +253,7 @@ static ALWAYS_INLINE void clock_init(void) PM->MCCTRL = OSC_SRC_PLL0; } -/** - * @brief Perform basic hardware initialization at boot. - * - * This needs to be run from the very beginning. - * So the init priority has to be 0 (zero). - * - * @return 0 - */ -static int atmel_sam4l_init(void) +void z_arm_platform_init(void) { #if defined(CONFIG_WDT_DISABLE_AT_BOOT) wdt_set_ctrl(WDT->CTRL & ~WDT_CTRL_EN); @@ -272,8 +264,4 @@ static int atmel_sam4l_init(void) /* Setup system clocks. */ clock_init(); - - return 0; } - -SYS_INIT(atmel_sam4l_init, PRE_KERNEL_1, 0); diff --git a/soc/arm/atmel_sam/sam4s/Kconfig.series b/soc/arm/atmel_sam/sam4s/Kconfig.series index c7ea2b88e97..34fe0ce55f2 100644 --- a/soc/arm/atmel_sam/sam4s/Kconfig.series +++ b/soc/arm/atmel_sam/sam4s/Kconfig.series @@ -2,7 +2,7 @@ # Copyright (c) 2017 Justin Watson # Copyright (c) 2018 Vincent van der Locht -# Copyright (c) 2020 Gerson Fernando Budke +# Copyright (c) 2020-2023 Gerson Fernando Budke # SPDX-License-Identifier: Apache-2.0 config SOC_SERIES_SAM4S @@ -12,6 +12,7 @@ config SOC_SERIES_SAM4S select CPU_CORTEX_M_HAS_DWT select CPU_HAS_ARM_MPU select SOC_FAMILY_SAM + select PLATFORM_SPECIFIC_INIT select ASF help Enable support for Atmel SAM4S Cortex-M4 microcontrollers. diff --git a/soc/arm/atmel_sam/sam4s/soc.c b/soc/arm/atmel_sam/sam4s/soc.c index 13eba428e7a..9937fcd6c80 100644 --- a/soc/arm/atmel_sam/sam4s/soc.c +++ b/soc/arm/atmel_sam/sam4s/soc.c @@ -2,6 +2,7 @@ * Copyright (c) 2013-2015 Wind River Systems, Inc. * Copyright (c) 2016 Intel Corporation. * Copyright (c) 2017 Justin Watson + * Copyright (c) 2023 Gerson Fernando Budke * * SPDX-License-Identifier: Apache-2.0 */ @@ -179,15 +180,7 @@ static ALWAYS_INLINE void clock_init(void) } } -/** - * @brief Perform basic hardware initialization at boot. - * - * This needs to be run from the very beginning. - * So the init priority has to be 0 (zero). - * - * @return 0 - */ -static int atmel_sam4s_init(void) +void z_arm_platform_init(void) { /* * Set FWS (Flash Wait State) value before increasing Master Clock @@ -202,8 +195,4 @@ static int atmel_sam4s_init(void) /* Setup system clocks. */ clock_init(); - - return 0; } - -SYS_INIT(atmel_sam4s_init, PRE_KERNEL_1, 0); diff --git a/soc/arm/atmel_sam/same70/Kconfig.defconfig.series b/soc/arm/atmel_sam/same70/Kconfig.defconfig.series index a02f44dc99a..3be4f1b59d8 100644 --- a/soc/arm/atmel_sam/same70/Kconfig.defconfig.series +++ b/soc/arm/atmel_sam/same70/Kconfig.defconfig.series @@ -1,6 +1,7 @@ # Atmel SAM E70 MCU series configuration options # Copyright (c) 2016 Piotr Mienkowski +# Copyright (c) 2023 Gerson Fernando Budke # SPDX-License-Identifier: Apache-2.0 if SOC_SERIES_SAME70 diff --git a/soc/arm/atmel_sam/same70/Kconfig.series b/soc/arm/atmel_sam/same70/Kconfig.series index 33a3e7f6477..f8955bd4a76 100644 --- a/soc/arm/atmel_sam/same70/Kconfig.series +++ b/soc/arm/atmel_sam/same70/Kconfig.series @@ -12,6 +12,7 @@ config SOC_SERIES_SAME70 select CPU_HAS_ARM_MPU select CPU_HAS_FPU_DOUBLE_PRECISION select SOC_FAMILY_SAM + select PLATFORM_SPECIFIC_INIT select ASF select HAS_SWO select XIP diff --git a/soc/arm/atmel_sam/same70/soc.c b/soc/arm/atmel_sam/same70/soc.c index 35913cb0fa4..79b9c1a1ae8 100644 --- a/soc/arm/atmel_sam/same70/soc.c +++ b/soc/arm/atmel_sam/same70/soc.c @@ -1,5 +1,6 @@ /* * Copyright (c) 2016 Piotr Mienkowski + * Copyright (c) 2023 Gerson Fernando Budke * SPDX-License-Identifier: Apache-2.0 */ @@ -223,15 +224,7 @@ static ALWAYS_INLINE void clock_init(void) } } -/** - * @brief Perform basic hardware initialization at boot. - * - * This needs to be run at the very beginning. - * So the init priority has to be 0 (zero). - * - * @return 0 - */ -static int atmel_same70_init(void) +void z_arm_platform_init(void) { SCB_EnableICache(); @@ -249,7 +242,18 @@ static int atmel_same70_init(void) /* Setup system clocks */ clock_init(); +} +/** + * @brief Perform basic hardware initialization at boot. + * + * This needs to be run at the very beginning. + * So the init priority has to be 0 (zero). + * + * @return 0 + */ +static int atmel_same70_init(void) +{ /* Check that the CHIP CIDR matches the HAL one */ if (CHIPID->CHIPID_CIDR != CHIP_CIDR) { LOG_WRN("CIDR mismatch: chip = 0x%08x vs HAL = 0x%08x", diff --git a/soc/arm/atmel_sam/samv71/Kconfig.defconfig.series b/soc/arm/atmel_sam/samv71/Kconfig.defconfig.series index 531e7b01b2e..f0db4faec2c 100644 --- a/soc/arm/atmel_sam/samv71/Kconfig.defconfig.series +++ b/soc/arm/atmel_sam/samv71/Kconfig.defconfig.series @@ -1,7 +1,7 @@ # Atmel SAM V71 MCU series configuration options # Copyright (c) 2016 Piotr Mienkowski -# Copyright (c) 2019 Gerson Fernando Budke +# Copyright (c) 2019-2023 Gerson Fernando Budke # SPDX-License-Identifier: Apache-2.0 if SOC_SERIES_SAMV71 diff --git a/soc/arm/atmel_sam/samv71/Kconfig.series b/soc/arm/atmel_sam/samv71/Kconfig.series index 20ad501ea72..75072eec1ee 100644 --- a/soc/arm/atmel_sam/samv71/Kconfig.series +++ b/soc/arm/atmel_sam/samv71/Kconfig.series @@ -12,6 +12,7 @@ config SOC_SERIES_SAMV71 select CPU_HAS_ARM_MPU select CPU_HAS_FPU_DOUBLE_PRECISION select SOC_FAMILY_SAM + select PLATFORM_SPECIFIC_INIT select ASF select HAS_SWO select XIP diff --git a/soc/arm/atmel_sam/samv71/soc.c b/soc/arm/atmel_sam/samv71/soc.c index 5d3eea72feb..a805bc76a2b 100644 --- a/soc/arm/atmel_sam/samv71/soc.c +++ b/soc/arm/atmel_sam/samv71/soc.c @@ -1,6 +1,6 @@ /* * Copyright (c) 2016 Piotr Mienkowski - * Copyright (c) 2019 Gerson Fernando Budke + * Copyright (c) 2019-2023 Gerson Fernando Budke * SPDX-License-Identifier: Apache-2.0 */ @@ -224,15 +224,7 @@ static ALWAYS_INLINE void clock_init(void) } } -/** - * @brief Perform basic hardware initialization at boot. - * - * This needs to be run at the very beginning. - * So the init priority has to be 0 (zero). - * - * @return 0 - */ -static int atmel_samv71_init(void) +void z_arm_platform_init(void) { SCB_EnableICache(); @@ -250,7 +242,18 @@ static int atmel_samv71_init(void) /* Setup system clocks */ clock_init(); +} +/** + * @brief Perform basic hardware initialization at boot. + * + * This needs to be run at the very beginning. + * So the init priority has to be 0 (zero). + * + * @return 0 + */ +static int atmel_samv71_init(void) +{ /* Check that the CHIP CIDR matches the HAL one */ if (CHIPID->CHIPID_CIDR != CHIP_CIDR) { LOG_WRN("CIDR mismatch: chip = 0x%08x vs HAL = 0x%08x", diff --git a/soc/arm/atmel_sam0/common/soc_samc2x.c b/soc/arm/atmel_sam0/common/soc_samc2x.c index 6a0528309a5..69c7b5bfae6 100644 --- a/soc/arm/atmel_sam0/common/soc_samc2x.c +++ b/soc/arm/atmel_sam0/common/soc_samc2x.c @@ -1,5 +1,6 @@ /* * Copyright (c) 2022 Kamil Serwus + * Copyright (c) 2023 Gerson Fernando Budke * * SPDX-License-Identifier: Apache-2.0 */ @@ -42,14 +43,10 @@ static void gclks_init(void) | GCLK_GENCTRL_GENEN; } -static int atmel_samc_init(void) +void z_arm_platform_init(void) { flash_waitstates_init(); osc48m_init(); mclk_init(); gclks_init(); - - return 0; } - -SYS_INIT(atmel_samc_init, PRE_KERNEL_1, 0); diff --git a/soc/arm/atmel_sam0/common/soc_samd2x.c b/soc/arm/atmel_sam0/common/soc_samd2x.c index 33ef01192e5..d5ff7cd1626 100644 --- a/soc/arm/atmel_sam0/common/soc_samd2x.c +++ b/soc/arm/atmel_sam0/common/soc_samd2x.c @@ -1,6 +1,7 @@ /* * Copyright (c) 2017 Google LLC. * Copyright (c) 2023 Ionut Catalin Pavel + * Copyright (c) 2023 Gerson Fernando Budke * * SPDX-License-Identifier: Apache-2.0 */ @@ -254,7 +255,7 @@ static inline void osc8m_disable(void) } #endif -static int atmel_samd_init(void) +void z_arm_platform_init(void) { osc8m_init(); osc32k_init(); @@ -265,8 +266,4 @@ static int atmel_samd_init(void) gclk_main_configure(); gclk_adc_configure(); osc8m_disable(); - - return 0; } - -SYS_INIT(atmel_samd_init, PRE_KERNEL_1, 0); diff --git a/soc/arm/atmel_sam0/common/soc_samd5x.c b/soc/arm/atmel_sam0/common/soc_samd5x.c index d50191f3c3f..7b7d8220c1a 100644 --- a/soc/arm/atmel_sam0/common/soc_samd5x.c +++ b/soc/arm/atmel_sam0/common/soc_samd5x.c @@ -1,5 +1,6 @@ /* * Copyright (c) 2019 ML!PA Consulting GmbH + * Copyright (c) 2023 Gerson Fernando Budke * * SPDX-License-Identifier: Apache-2.0 */ @@ -104,7 +105,7 @@ static void gclk_connect(uint8_t gclk, uint8_t src, uint8_t div) | GCLK_GENCTRL_GENEN; } -static int atmel_samd_init(void) +void z_arm_platform_init(void) { uint8_t dfll_div; @@ -129,8 +130,4 @@ static int atmel_samd_init(void) /* connect GCLK2 to 48 MHz DFLL for USB */ gclk_connect(2, GCLK_SOURCE_DFLL48M, 0); - - return 0; } - -SYS_INIT(atmel_samd_init, PRE_KERNEL_1, 0); diff --git a/soc/arm/atmel_sam0/common/soc_saml2x.c b/soc/arm/atmel_sam0/common/soc_saml2x.c index 1914b221433..3045c4dc24c 100644 --- a/soc/arm/atmel_sam0/common/soc_saml2x.c +++ b/soc/arm/atmel_sam0/common/soc_saml2x.c @@ -1,5 +1,6 @@ /* * Copyright (c) 2021 Argentum Systems Ltd. + * Copyright (c) 2023 Gerson Fernando Budke * * SPDX-License-Identifier: Apache-2.0 */ @@ -242,7 +243,7 @@ static inline void pause_for_debug(void) static inline void pause_for_debug(void) {} #endif -static int atmel_saml_init(void) +void z_arm_platform_init(void) { pause_for_debug(); @@ -255,8 +256,4 @@ static int atmel_saml_init(void) pm_init(); gclk_main_configure(); gclk_adc_configure(); - - return 0; } - -SYS_INIT(atmel_saml_init, PRE_KERNEL_1, 0); diff --git a/soc/arm/atmel_sam0/samc20/Kconfig.series b/soc/arm/atmel_sam0/samc20/Kconfig.series index f4132616e0e..4406e1bead4 100644 --- a/soc/arm/atmel_sam0/samc20/Kconfig.series +++ b/soc/arm/atmel_sam0/samc20/Kconfig.series @@ -11,6 +11,7 @@ config SOC_SERIES_SAMC20 select CPU_CORTEX_M_HAS_SYSTICK select CPU_CORTEX_M_HAS_VTOR select SOC_FAMILY_SAM0 + select PLATFORM_SPECIFIC_INIT select ASF help Enable support for Atmel SAMC20 Cortex-M0+ microcontrollers. diff --git a/soc/arm/atmel_sam0/samc21/Kconfig.series b/soc/arm/atmel_sam0/samc21/Kconfig.series index fda348223d8..044a7aea229 100644 --- a/soc/arm/atmel_sam0/samc21/Kconfig.series +++ b/soc/arm/atmel_sam0/samc21/Kconfig.series @@ -11,6 +11,7 @@ config SOC_SERIES_SAMC21 select CPU_CORTEX_M_HAS_SYSTICK select CPU_CORTEX_M_HAS_VTOR select SOC_FAMILY_SAM0 + select PLATFORM_SPECIFIC_INIT select ASF help Enable support for Atmel SAMC21 Cortex-M0+ microcontrollers. diff --git a/soc/arm/atmel_sam0/samd20/Kconfig.series b/soc/arm/atmel_sam0/samd20/Kconfig.series index 2cf9f39bed9..2ec93b4954c 100644 --- a/soc/arm/atmel_sam0/samd20/Kconfig.series +++ b/soc/arm/atmel_sam0/samd20/Kconfig.series @@ -11,6 +11,7 @@ config SOC_SERIES_SAMD20 select CPU_CORTEX_M_HAS_SYSTICK select CPU_CORTEX_M_HAS_VTOR select SOC_FAMILY_SAM0 + select PLATFORM_SPECIFIC_INIT select ASF help Enable support for Atmel SAMD20 Cortex-M0+ microcontrollers. diff --git a/soc/arm/atmel_sam0/samd21/Kconfig.series b/soc/arm/atmel_sam0/samd21/Kconfig.series index cef2940080a..b947c755a7a 100644 --- a/soc/arm/atmel_sam0/samd21/Kconfig.series +++ b/soc/arm/atmel_sam0/samd21/Kconfig.series @@ -11,6 +11,7 @@ config SOC_SERIES_SAMD21 select CPU_CORTEX_M_HAS_SYSTICK select CPU_CORTEX_M_HAS_VTOR select SOC_FAMILY_SAM0 + select PLATFORM_SPECIFIC_INIT select ASF help Enable support for Atmel SAMD21 Cortex-M0+ microcontrollers. diff --git a/soc/arm/atmel_sam0/samd51/Kconfig.series b/soc/arm/atmel_sam0/samd51/Kconfig.series index 0ce5e528b90..c85832735d8 100644 --- a/soc/arm/atmel_sam0/samd51/Kconfig.series +++ b/soc/arm/atmel_sam0/samd51/Kconfig.series @@ -12,6 +12,7 @@ config SOC_SERIES_SAMD51 select CPU_HAS_ARM_MPU select CPU_HAS_FPU select SOC_FAMILY_SAM0 + select PLATFORM_SPECIFIC_INIT select ASF help Enable support for Atmel SAMD51 Cortex-M4F microcontrollers. diff --git a/soc/arm/atmel_sam0/same51/Kconfig.series b/soc/arm/atmel_sam0/same51/Kconfig.series index 924359400db..ced8b081fbe 100644 --- a/soc/arm/atmel_sam0/same51/Kconfig.series +++ b/soc/arm/atmel_sam0/same51/Kconfig.series @@ -12,6 +12,7 @@ config SOC_SERIES_SAME51 select CPU_HAS_ARM_MPU select CPU_HAS_FPU select SOC_FAMILY_SAM0 + select PLATFORM_SPECIFIC_INIT select ASF help Enable support for Atmel SAME51 Cortex-M4F microcontrollers. diff --git a/soc/arm/atmel_sam0/same53/Kconfig.series b/soc/arm/atmel_sam0/same53/Kconfig.series index 5a18ce40af8..a90a89229cb 100644 --- a/soc/arm/atmel_sam0/same53/Kconfig.series +++ b/soc/arm/atmel_sam0/same53/Kconfig.series @@ -12,6 +12,7 @@ config SOC_SERIES_SAME53 select CPU_HAS_ARM_MPU select CPU_HAS_FPU select SOC_FAMILY_SAM0 + select PLATFORM_SPECIFIC_INIT select ASF help Enable support for Atmel SAME53 Cortex-M4F microcontrollers. diff --git a/soc/arm/atmel_sam0/same54/Kconfig.series b/soc/arm/atmel_sam0/same54/Kconfig.series index 1b363de55f4..5840a5e3515 100644 --- a/soc/arm/atmel_sam0/same54/Kconfig.series +++ b/soc/arm/atmel_sam0/same54/Kconfig.series @@ -12,6 +12,7 @@ config SOC_SERIES_SAME54 select CPU_HAS_ARM_MPU select CPU_HAS_FPU select SOC_FAMILY_SAM0 + select PLATFORM_SPECIFIC_INIT select ASF help Enable support for Atmel SAME54 Cortex-M4F microcontrollers. diff --git a/soc/arm/atmel_sam0/saml21/Kconfig.series b/soc/arm/atmel_sam0/saml21/Kconfig.series index 374c10d36dc..662120102bb 100644 --- a/soc/arm/atmel_sam0/saml21/Kconfig.series +++ b/soc/arm/atmel_sam0/saml21/Kconfig.series @@ -11,6 +11,7 @@ config SOC_SERIES_SAML21 select CPU_CORTEX_M_HAS_SYSTICK select CPU_CORTEX_M_HAS_VTOR select SOC_FAMILY_SAM0 + select PLATFORM_SPECIFIC_INIT select ASF help Enable support for Atmel SAML21 Cortex-M0+ microcontrollers. diff --git a/soc/arm/atmel_sam0/samr21/Kconfig.series b/soc/arm/atmel_sam0/samr21/Kconfig.series index c1a9a270a72..8dd60e5f650 100644 --- a/soc/arm/atmel_sam0/samr21/Kconfig.series +++ b/soc/arm/atmel_sam0/samr21/Kconfig.series @@ -11,6 +11,7 @@ config SOC_SERIES_SAMR21 select CPU_CORTEX_M_HAS_SYSTICK select CPU_CORTEX_M_HAS_VTOR select SOC_FAMILY_SAM0 + select PLATFORM_SPECIFIC_INIT select ASF help Enable support for Atmel SAMR21 Cortex-M0+ microcontrollers. diff --git a/soc/arm/atmel_sam0/samr34/Kconfig.series b/soc/arm/atmel_sam0/samr34/Kconfig.series index cfacc0f1922..d3be127ac16 100644 --- a/soc/arm/atmel_sam0/samr34/Kconfig.series +++ b/soc/arm/atmel_sam0/samr34/Kconfig.series @@ -11,6 +11,7 @@ config SOC_SERIES_SAMR34 select CPU_CORTEX_M_HAS_SYSTICK select CPU_CORTEX_M_HAS_VTOR select SOC_FAMILY_SAM0 + select PLATFORM_SPECIFIC_INIT select ASF help Enable support for Atmel SAMR34 Cortex-M0+ microcontrollers. diff --git a/soc/arm/atmel_sam0/samr35/Kconfig.series b/soc/arm/atmel_sam0/samr35/Kconfig.series index 4efc6a3479f..d55718d8524 100644 --- a/soc/arm/atmel_sam0/samr35/Kconfig.series +++ b/soc/arm/atmel_sam0/samr35/Kconfig.series @@ -11,6 +11,7 @@ config SOC_SERIES_SAMR35 select CPU_CORTEX_M_HAS_SYSTICK select CPU_CORTEX_M_HAS_VTOR select SOC_FAMILY_SAM0 + select PLATFORM_SPECIFIC_INIT select ASF help Enable support for Atmel SAMR35 Cortex-M0+ microcontrollers.