diff options
author | Alamy Liu <alamy.liu@cypress.com> | 2019-07-18 14:12:23 -0700 |
---|---|---|
committer | David Hu <david.hu@arm.com> | 2019-07-31 03:37:27 +0000 |
commit | e2c94f04a4ffeba731579c20eaa64a745d479c62 (patch) | |
tree | 7ab213df65409c192d0e41db856fce03fe969eb0 | |
parent | 5379da4a7bf0ec592ce23494250170bf8b67708e (diff) | |
download | trusted-firmware-m-e2c94f04a4ffeba731579c20eaa64a745d479c62.tar.gz |
plat: PSoC6 Flash driver: Use SST_FLASH_PROGRAM_UNIT for .program_unit field
The value of .program_unit field is hard-coded to '4'.
However, SST_FLASH_PROGRAM_UNIT is set to '1', which is used
in alignment calculation in sst_encrypted_object_write().
The two values are not synchronized.
Change-Id: Ic623e5db54c6c40673f19c64013de3d08a813cb9
Signed-off-by: Alamy Liu <alamy.liu@cypress.com>
-rw-r--r-- | platform/ext/target/psoc6/CMSIS_Driver/Driver_Flash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/ext/target/psoc6/CMSIS_Driver/Driver_Flash.c b/platform/ext/target/psoc6/CMSIS_Driver/Driver_Flash.c index 4e88d7f50b..090e5d8663 100644 --- a/platform/ext/target/psoc6/CMSIS_Driver/Driver_Flash.c +++ b/platform/ext/target/psoc6/CMSIS_Driver/Driver_Flash.c @@ -75,7 +75,7 @@ static ARM_FLASH_INFO ARM_FLASH0_DEV_DATA = { .sector_count = FLASH0_SIZE / FLASH0_SECTOR_SIZE, .sector_size = FLASH0_SECTOR_SIZE, .page_size = FLASH0_PAGE_SIZE, - .program_unit = 4, + .program_unit = SST_FLASH_PROGRAM_UNIT, .erased_value = ARM_FLASH_DRV_ERASE_VALUE }; |