From 1d5cb928dd66889126912750dba7aca8bfb50509 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20R=C3=B8nningstad?= Date: Fri, 21 Feb 2020 10:14:38 +0100 Subject: [PATCH] soc: arm: Kconfig: Add config for NRF_SPU region sizes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Needs to be aware of the Kconfig NRF5340_CPUAPP_ERRATUM19. Signed-off-by: Øyvind Rønningstad --- soc/arm/Kconfig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/soc/arm/Kconfig b/soc/arm/Kconfig index 5be3950aeda..3043d088be8 100644 --- a/soc/arm/Kconfig +++ b/soc/arm/Kconfig @@ -41,6 +41,22 @@ config CPU_HAS_NRF_IDAU (IDAU: "Implementation-Defined Attribution Unit", in accordance with ARM terminology). +if CPU_HAS_NRF_IDAU +config NRF_SPU_FLASH_REGION_SIZE + hex + default 0x8000 if SOC_NRF9160 + default 0x8000 if SOC_NRF5340_CPUAPP && NRF5340_CPUAPP_ERRATUM19 + default 0x4000 if SOC_NRF5340_CPUAPP + help + FLASH region size for the NRF_SPU peripheral + +config NRF_SPU_RAM_REGION_SIZE + hex + default 0x2000 if SOC_NRF9160 || SOC_NRF5340_CPUAPP + help + RAM region size for the NRF_SPU peripheral +endif + config CPU_HAS_FPU_DOUBLE_PRECISION bool depends on CPU_CORTEX_M7