Platform: Implement CMSIS flash driver for Musca
-- This patch implements CMSIS compliant flash driver
on Musca A1 test chip board
-- Introduces #defines needed to implement
SST flash interface on top of CMSIS flash driver.
-- Redirects SST storage to Code SRAM
instead of storing it in flash.
-- Reduces the heap size in BL2
-- Increases the stack size for Musca A1
as it was too small to run the regression tests.
-- Removes dead code related to configuring sau and
mpc for code SRAM
Change-Id: Ic810fc24d768200463184233de9bbb389ec413f8
Signed-off-by: Avinash Mehta <avinash.mehta@arm.com>
diff --git a/platform/ext/musca_a.cmake b/platform/ext/musca_a.cmake
index 17b3141..d90aa26 100755
--- a/platform/ext/musca_a.cmake
+++ b/platform/ext/musca_a.cmake
@@ -111,6 +111,10 @@
if (NOT DEFINED BUILD_FLASH)
message(FATAL_ERROR "Configuration variable BUILD_FLASH (true|false) is undefined!")
elseif(BUILD_FLASH)
- list(APPEND ALL_SRC_C "${PLATFORM_DIR}/common/flash_memory_mapped.c")
- embedded_include_directories(PATH "${PLATFORM_DIR}/common" ABSOLUTE)
+ list(APPEND ALL_SRC_C "${PLATFORM_DIR}/target/musca_a/CMSIS_Driver/Driver_Flash.c")
+ # As the SST area is going to be in RAM, it is required to set SST_RAM_FS to be sure the
+ # SST service knows that when it starts the SST area does not contain any valid block and
+ # it needs to create an empty one.
+ set(SST_RAM_FS True)
+ embedded_include_directories(PATH "${PLATFORM_DIR}/target/musca_a/CMSIS_Driver" ABSOLUTE)
endif()