summaryrefslogtreecommitdiff
path: root/plat
diff options
context:
space:
mode:
authorYann Gautier <yann.gautier@foss.st.com>2023-08-17 11:44:07 +0200
committerYann Gautier <yann.gautier@st.com>2023-09-27 16:21:58 +0200
commita2500ab7aba27ed5d613718f5f15371bbe895ca6 (patch)
tree6bb81c45f80a67733ba236b1d846a0087ceaa946 /plat
parent8b826636a39e0f20cc2c0557288b1eeab46fb923 (diff)
fix(st): reduce MMC block_buffer
This buffer used by io_block should be the size on one block (512 bytes) not 512*4 due to the use of uint32_t. Change that to uint8_t. This reduces the size of BSS by 1.5KiB. Change-Id: I8492f13f5386679b0c81efba66911422412782f9 Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
Diffstat (limited to 'plat')
-rw-r--r--plat/st/common/bl2_io_storage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plat/st/common/bl2_io_storage.c b/plat/st/common/bl2_io_storage.c
index 0bcfeced3..86795d71a 100644
--- a/plat/st/common/bl2_io_storage.c
+++ b/plat/st/common/bl2_io_storage.c
@@ -56,7 +56,7 @@ uintptr_t enc_dev_handle;
#if STM32MP_SDMMC || STM32MP_EMMC
static struct mmc_device_info mmc_info;
-static uint32_t block_buffer[MMC_BLOCK_SIZE] __aligned(MMC_BLOCK_SIZE);
+static uint8_t block_buffer[MMC_BLOCK_SIZE] __aligned(MMC_BLOCK_SIZE);
static io_block_dev_spec_t mmc_block_dev_spec = {
/* It's used as temp buffer in block driver */