From 0d3453a47e522fbb13b211e44ce4007b666686f3 Mon Sep 17 00:00:00 2001 From: Christian Mauderer Date: Fri, 28 May 2021 16:54:00 +0200 Subject: bsps/imxrt: Simplify linkcmds and make it flexible Calling the memory FLASH and EXTRAM instead of FLEXSPI and SDRAM makes it simpler to support other types of external RAM. This patch also removes some of the calculations and improves names and documentation to avoid pitfalls. It removes a unnecessary memory definition. Update #4180 --- bsps/arm/imxrt/include/imxrt/memory.h | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) (limited to 'bsps/arm/imxrt/include') diff --git a/bsps/arm/imxrt/include/imxrt/memory.h b/bsps/arm/imxrt/include/imxrt/memory.h index 8185f713cc..47bb10f41e 100644 --- a/bsps/arm/imxrt/include/imxrt/memory.h +++ b/bsps/arm/imxrt/include/imxrt/memory.h @@ -56,29 +56,25 @@ extern char imxrt_memory_peripheral_begin[]; extern char imxrt_memory_peripheral_end[]; extern char imxrt_memory_peripheral_size[]; -extern char imxrt_memory_flexspi_config_begin[]; -extern char imxrt_memory_flexspi_config_end[]; -extern char imxrt_memory_flexspi_config_size[]; +extern char imxrt_memory_flash_config_begin[]; +extern char imxrt_memory_flash_config_end[]; +extern char imxrt_memory_flash_config_size[]; -extern char imxrt_memory_flexspi_ivt_begin[]; -extern char imxrt_memory_flexspi_ivt_end[]; -extern char imxrt_memory_flexspi_ivt_size[]; +extern char imxrt_memory_flash_ivt_begin[]; +extern char imxrt_memory_flash_ivt_end[]; +extern char imxrt_memory_flash_ivt_size[]; -extern char imxrt_memory_flexspi_begin[]; -extern char imxrt_memory_flexspi_end[]; -extern char imxrt_memory_flexspi_size[]; +extern char imxrt_memory_flash_begin[]; +extern char imxrt_memory_flash_end[]; +extern char imxrt_memory_flash_size[]; -extern char imxrt_memory_flexspi_fifo_begin[]; -extern char imxrt_memory_flexspi_fifo_end[]; -extern char imxrt_memory_flexspi_fifo_size[]; +extern char imxrt_memory_extram_begin[]; +extern char imxrt_memory_extram_end[]; +extern char imxrt_memory_extram_size[]; -extern char imxrt_memory_sdram_begin[]; -extern char imxrt_memory_sdram_end[]; -extern char imxrt_memory_sdram_size[]; - -extern char imxrt_memory_sdram_nocache_begin[]; -extern char imxrt_memory_sdram_nocache_end[]; -extern char imxrt_memory_sdram_nocache_size[]; +extern char imxrt_memory_extram_nocache_begin[]; +extern char imxrt_memory_extram_nocache_end[]; +extern char imxrt_memory_extram_nocache_size[]; #ifdef __cplusplus } -- cgit v1.2.3