aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSherry Zhnag <sherry.zhang2@arm.com>2021-09-08 14:43:04 +0800
committerDavid Hu <david.hu@arm.com>2021-09-09 11:36:18 +0200
commit9b2a79930e9068f4c40d73c10f795148c37454b9 (patch)
treecb9508e763c37622d3cdfb66e4ff0e685aaa5fb2
parent3dd9256d42a399c6c57de8b7c1d3706f8094dfa3 (diff)
Boot & FWU: Support unaligned flash write/read on DIPHDA
Signed-off-by: Sherry Zhnag <sherry.zhang2@arm.com> Change-Id: I60158bd7f5dcc4ade5fd5bd067ce889616ed17b7
-rw-r--r--platform/ext/target/arm/diphda/partition/flash_layout.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/ext/target/arm/diphda/partition/flash_layout.h b/platform/ext/target/arm/diphda/partition/flash_layout.h
index 8700a99b9..04b098c39 100644
--- a/platform/ext/target/arm/diphda/partition/flash_layout.h
+++ b/platform/ext/target/arm/diphda/partition/flash_layout.h
@@ -69,6 +69,9 @@
#define PMOD_SF3_FLASH_PROGRAM_UNIT (1U) /* 1 B */
#define FLASH_DEV_NAME Driver_FLASH0
+/* Smallest flash programmable unit in bytes */
+#define TFM_HAL_FLASH_PROGRAM_UNIT (1)
+
#define FLASH_TOTAL_SIZE (PMOD_SF3_FLASH_TOTAL_SIZE) /* 32 MB */
#define FLASH_AREA_IMAGE_SECTOR_SIZE (PMOD_SF3_FLASH_SECTOR_SIZE) /* 4 KiB */