From 1c9a95e9550c917d3be8d6241d161e966ce1e830 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Fri, 10 Jul 2020 10:18:22 +0200 Subject: [PATCH 1/3] cpu/samd5x: Add Kconfig symbols --- cpu/samd5x/Kconfig | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/cpu/samd5x/Kconfig b/cpu/samd5x/Kconfig index 7b86fbbc19..27210f8ffb 100644 --- a/cpu/samd5x/Kconfig +++ b/cpu/samd5x/Kconfig @@ -5,4 +5,34 @@ # directory for more details. # +config CPU_FAM_SAMD5X + bool + select CPU_COMMON_SAM0 + select CPU_CORE_CORTEX_M4F + select HAS_BACKUP_RAM + select HAS_CORTEXM_MPU + select HAS_CPU_SAMD5X + select HAS_PERIPH_HWRNG + +## CPU Models +config CPU_MODEL_SAME54P20A + bool + select CPU_FAM_SAMD5X + +## Declaration of specific features +config HAS_CPU_SAMD5X + bool + help + Indicates that a 'samd5x' cpu is being used. + +## CPU common symbols +config CPU_FAM + default "samd5x" if CPU_FAM_SAMD5X + +config CPU_MODEL + default "same54p20a" if CPU_MODEL_SAME54P20A + +config CPU + default "samd5x" if CPU_FAM_SAMD5X + source "$(RIOTCPU)/sam0_common/Kconfig" From 8dc7a6bc393decf9b4cbc06593b4eb4eed7d44e7 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Fri, 10 Jul 2020 10:19:07 +0200 Subject: [PATCH 2/3] boards/same54-xpro: Add Kconfig symbols --- boards/same54-xpro/Kconfig | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 boards/same54-xpro/Kconfig diff --git a/boards/same54-xpro/Kconfig b/boards/same54-xpro/Kconfig new file mode 100644 index 0000000000..1bb42260da --- /dev/null +++ b/boards/same54-xpro/Kconfig @@ -0,0 +1,23 @@ +# Copyright (c) 2020 HAW Hamburg +# +# This file is subject to the terms and conditions of the GNU Lesser +# General Public License v2.1. See the file LICENSE in the top level +# directory for more details. + +config BOARD + default "same54-xpro" if BOARD_SAME54_XPRO + +config BOARD_SAME54_XPRO + bool + default y + select CPU_MODEL_SAME54P20A + select HAS_PERIPH_DAC + select HAS_PERIPH_I2C + select HAS_PERIPH_RTC + select HAS_PERIPH_RTT + select HAS_PERIPH_PWM + select HAS_PERIPH_SPI + select HAS_PERIPH_TIMER + select HAS_PERIPH_UART + select HAS_PERIPH_USBDEV + select HAS_RIOTBOOT From 580bd08648db03cfc43e0a871296dbe745f7fb37 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Fri, 10 Jul 2020 10:19:22 +0200 Subject: [PATCH 3/3] tests/kconfig_features: Add same54-xpro to whitelist --- tests/kconfig_features/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/kconfig_features/Makefile b/tests/kconfig_features/Makefile index 3bebd42183..37937fee76 100644 --- a/tests/kconfig_features/Makefile +++ b/tests/kconfig_features/Makefile @@ -132,6 +132,7 @@ BOARD_WHITELIST += 6lowpan-clicker \ remote-reva \ remote-revb \ ruuvitag \ + same54-xpro \ samr21-xpro \ slstk3401a \ slstk3402a \