aboutsummaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorChris Brand <chris.brand@cypress.com>2020-02-05 16:48:42 -0800
committerDavid Hu <david.hu@arm.com>2020-06-16 04:15:59 +0000
commitcdc5297d05f072d63d44ab28ff947e2ee6735483 (patch)
tree46461380e51c43d5baf89b360df793a390d2c9f7 /platform
parent437d7760f486e0da07d2888563fa53766de0a52b (diff)
downloadtrusted-firmware-m-cdc5297d05f072d63d44ab28ff947e2ee6735483.tar.gz
Platform: PSoC64: Increase ITS_MAX_BLOCK_DATA_COPY to 512
PSoC64 has 512-byte flash sectors, so bumping this to 512 can significantly reduce the number of read and write operations, depending on the alignment of the reads and writes. Change-Id: I9f156542f0d489ec13a0894d035bef7dff882f25 Signed-off-by: Chris Brand <chris.brand@cypress.com>
Diffstat (limited to 'platform')
-rw-r--r--platform/ext/target/cypress/psoc64/partition/flash_layout.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/ext/target/cypress/psoc64/partition/flash_layout.h b/platform/ext/target/cypress/psoc64/partition/flash_layout.h
index 181aff594f..36bdeeb3fe 100644
--- a/platform/ext/target/cypress/psoc64/partition/flash_layout.h
+++ b/platform/ext/target/cypress/psoc64/partition/flash_layout.h
@@ -165,6 +165,8 @@
#define ITS_MAX_ASSET_SIZE (512)
/* The maximum number of assets to be stored in the ITS area */
#define ITS_NUM_ASSETS (10)
+/* Decrease flash wear slightly, at the cost of increased ITS service memory */
+#define ITS_MAX_BLOCK_DATA_COPY 512
/* NV Counters definitions */
#define TFM_NV_COUNTERS_FLASH_DEV Driver_FLASH0