From d9116684e580b79df7c743bd194a6e1450190eda Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Thu, 3 Sep 2020 18:56:21 +0200 Subject: [PATCH] cpu/cortexm_common: advertise puf_sram feature `puf_sram` is a feature of the linker script, it does not need vendor specific hardware support. --- cpu/cc2538/Kconfig | 1 - cpu/cc2538/Makefile.features | 1 - cpu/cortexm_common/Kconfig | 1 + cpu/cortexm_common/Makefile.features | 1 + cpu/nrf5x_common/Kconfig | 1 - cpu/nrf5x_common/Makefile.features | 1 - cpu/samd21/Kconfig | 1 - cpu/samd21/Makefile.features | 1 - cpu/stm32/Kconfig | 1 - cpu/stm32/Makefile.features | 1 - 10 files changed, 2 insertions(+), 8 deletions(-) diff --git a/cpu/cc2538/Kconfig b/cpu/cc2538/Kconfig index 45b56fb25e..2386cd68d8 100644 --- a/cpu/cc2538/Kconfig +++ b/cpu/cc2538/Kconfig @@ -16,7 +16,6 @@ config CPU_FAM_CC2538 select HAS_PERIPH_UART_MODECFG select HAS_PERIPH_WDT select HAS_CORTEXM_MPU - select HAS_PUF_SRAM ## CPU Models config CPU_MODEL_CC2538NF53 diff --git a/cpu/cc2538/Makefile.features b/cpu/cc2538/Makefile.features index 9b09972797..c4e1935607 100644 --- a/cpu/cc2538/Makefile.features +++ b/cpu/cc2538/Makefile.features @@ -8,6 +8,5 @@ FEATURES_PROVIDED += periph_uart_modecfg FEATURES_PROVIDED += periph_wdt FEATURES_PROVIDED += cortexm_mpu -FEATURES_PROVIDED += puf_sram include $(RIOTCPU)/cortexm_common/Makefile.features diff --git a/cpu/cortexm_common/Kconfig b/cpu/cortexm_common/Kconfig index bd43e69664..13a67d2caa 100644 --- a/cpu/cortexm_common/Kconfig +++ b/cpu/cortexm_common/Kconfig @@ -38,6 +38,7 @@ config CPU_CORE_CORTEX_M bool select HAS_CPU_CORE_CORTEXM select HAS_PERIPH_PM + select HAS_PUF_SRAM select HAS_CPP select HAS_LIBSTDCPP select HAS_CPU_CHECK_ADDRESS diff --git a/cpu/cortexm_common/Makefile.features b/cpu/cortexm_common/Makefile.features index baa25ee296..7527c079d0 100644 --- a/cpu/cortexm_common/Makefile.features +++ b/cpu/cortexm_common/Makefile.features @@ -6,6 +6,7 @@ FEATURES_PROVIDED += cpu_check_address FEATURES_PROVIDED += cpu_core_cortexm FEATURES_PROVIDED += libstdcpp FEATURES_PROVIDED += periph_pm +FEATURES_PROVIDED += puf_sram FEATURES_PROVIDED += ssp # cortex-m4f and cortex-m7 provide FPU support diff --git a/cpu/nrf5x_common/Kconfig b/cpu/nrf5x_common/Kconfig index 79888c3e8e..1e725db870 100644 --- a/cpu/nrf5x_common/Kconfig +++ b/cpu/nrf5x_common/Kconfig @@ -19,7 +19,6 @@ config CPU_COMMON_NRF5X select HAS_BLE_NIMBLE select HAS_RADIO_NRFBLE select HAS_RADIO_NRFMIN - select HAS_PUF_SRAM ## Definition of specific features config HAS_BOOTLOADER_NRFUTIL diff --git a/cpu/nrf5x_common/Makefile.features b/cpu/nrf5x_common/Makefile.features index 77c90ce8dd..2933c0ee40 100644 --- a/cpu/nrf5x_common/Makefile.features +++ b/cpu/nrf5x_common/Makefile.features @@ -12,6 +12,5 @@ FEATURES_PROVIDED += periph_wdt periph_wdt_cb FEATURES_PROVIDED += ble_nimble FEATURES_PROVIDED += radio_nrfble FEATURES_PROVIDED += radio_nrfmin -FEATURES_PROVIDED += puf_sram include $(RIOTCPU)/cortexm_common/Makefile.features diff --git a/cpu/samd21/Kconfig b/cpu/samd21/Kconfig index f584d0f5f4..d2434f5c30 100644 --- a/cpu/samd21/Kconfig +++ b/cpu/samd21/Kconfig @@ -11,7 +11,6 @@ config CPU_COMMON_SAMD21 select CPU_CORE_CORTEX_M0PLUS select HAS_CPU_SAMD21 select HAS_PERIPH_GPIO_FAST_READ - select HAS_PUF_SRAM config CPU_FAM_SAMD21 bool diff --git a/cpu/samd21/Makefile.features b/cpu/samd21/Makefile.features index 32ac4e7821..043d08dea3 100644 --- a/cpu/samd21/Makefile.features +++ b/cpu/samd21/Makefile.features @@ -1,6 +1,5 @@ CPU_CORE = cortex-m0plus -FEATURES_PROVIDED += puf_sram FEATURES_PROVIDED += periph_gpio_fast_read -include $(RIOTCPU)/sam0_common/Makefile.features diff --git a/cpu/stm32/Kconfig b/cpu/stm32/Kconfig index 101d237c96..b05b34d14c 100644 --- a/cpu/stm32/Kconfig +++ b/cpu/stm32/Kconfig @@ -12,7 +12,6 @@ config CPU_STM32 select HAS_PERIPH_CPUID select HAS_PERIPH_GPIO select HAS_PERIPH_GPIO_IRQ - select HAS_PUF_SRAM select HAS_PERIPH_TIMER_PERIODIC select HAS_PERIPH_UART_MODECFG select HAS_PERIPH_UART_NONBLOCKING diff --git a/cpu/stm32/Makefile.features b/cpu/stm32/Makefile.features index 106c07a154..ff52607815 100644 --- a/cpu/stm32/Makefile.features +++ b/cpu/stm32/Makefile.features @@ -4,7 +4,6 @@ FEATURES_PROVIDED += bootloader_stm32 FEATURES_PROVIDED += cpu_stm32$(CPU_FAM) FEATURES_PROVIDED += periph_cpuid FEATURES_PROVIDED += periph_gpio periph_gpio_irq -FEATURES_PROVIDED += puf_sram FEATURES_PROVIDED += periph_timer_periodic FEATURES_PROVIDED += periph_uart_modecfg FEATURES_PROVIDED += periph_uart_nonblocking