mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 01:24:27 +00:00
refactor(st): rename QSPI macros
To have a more generic code, remove the Q from the *QSPI macros. Change-Id: I2fa94b54054036c2175df3dfddcb76eec1119ad2 Signed-off-by: Yann Gautier <yann.gautier@st.com>
This commit is contained in:
parent
d2b66cc87e
commit
b0ce402457
2 changed files with 12 additions and 12 deletions
|
@ -191,13 +191,13 @@ static void print_boot_device(boot_api_context_t *boot_context)
|
|||
case BOOT_API_CTX_BOOT_INTERFACE_SEL_FLASH_EMMC:
|
||||
INFO("Using EMMC\n");
|
||||
break;
|
||||
case BOOT_API_CTX_BOOT_INTERFACE_SEL_FLASH_NOR_QSPI:
|
||||
INFO("Using QSPI NOR\n");
|
||||
case BOOT_API_CTX_BOOT_INTERFACE_SEL_FLASH_NOR_SPI:
|
||||
INFO("Using SPI NOR\n");
|
||||
break;
|
||||
case BOOT_API_CTX_BOOT_INTERFACE_SEL_FLASH_NAND_FMC:
|
||||
INFO("Using FMC NAND\n");
|
||||
break;
|
||||
case BOOT_API_CTX_BOOT_INTERFACE_SEL_FLASH_NAND_QSPI:
|
||||
case BOOT_API_CTX_BOOT_INTERFACE_SEL_FLASH_NAND_SPI:
|
||||
INFO("Using SPI NAND\n");
|
||||
break;
|
||||
case BOOT_API_CTX_BOOT_INTERFACE_SEL_SERIAL_UART:
|
||||
|
@ -433,7 +433,7 @@ void stm32mp_io_setup(void)
|
|||
break;
|
||||
#endif
|
||||
#if STM32MP_SPI_NOR
|
||||
case BOOT_API_CTX_BOOT_INTERFACE_SEL_FLASH_NOR_QSPI:
|
||||
case BOOT_API_CTX_BOOT_INTERFACE_SEL_FLASH_NOR_SPI:
|
||||
dmbsy();
|
||||
boot_spi_nor(boot_context);
|
||||
break;
|
||||
|
@ -445,7 +445,7 @@ void stm32mp_io_setup(void)
|
|||
break;
|
||||
#endif
|
||||
#if STM32MP_SPI_NAND
|
||||
case BOOT_API_CTX_BOOT_INTERFACE_SEL_FLASH_NAND_QSPI:
|
||||
case BOOT_API_CTX_BOOT_INTERFACE_SEL_FLASH_NAND_SPI:
|
||||
dmbsy();
|
||||
boot_spi_nand(boot_context);
|
||||
break;
|
||||
|
@ -530,14 +530,14 @@ int bl2_plat_handle_pre_image_load(unsigned int image_id)
|
|||
case BOOT_API_CTX_BOOT_INTERFACE_SEL_FLASH_NAND_FMC:
|
||||
#endif
|
||||
#if STM32MP_SPI_NAND
|
||||
case BOOT_API_CTX_BOOT_INTERFACE_SEL_FLASH_NAND_QSPI:
|
||||
case BOOT_API_CTX_BOOT_INTERFACE_SEL_FLASH_NAND_SPI:
|
||||
#endif
|
||||
image_block_spec.offset = STM32MP_NAND_FIP_OFFSET;
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if STM32MP_SPI_NOR
|
||||
case BOOT_API_CTX_BOOT_INTERFACE_SEL_FLASH_NOR_QSPI:
|
||||
case BOOT_API_CTX_BOOT_INTERFACE_SEL_FLASH_NOR_SPI:
|
||||
/*
|
||||
* With FWU Multi Bank feature enabled, the selection of
|
||||
* the image to boot will be done by fwu_init calling the
|
||||
|
@ -694,7 +694,7 @@ void plat_fwu_set_images_source(const struct fwu_metadata *metadata)
|
|||
break;
|
||||
#endif
|
||||
#if STM32MP_SPI_NOR
|
||||
case BOOT_API_CTX_BOOT_INTERFACE_SEL_FLASH_NOR_QSPI:
|
||||
case BOOT_API_CTX_BOOT_INTERFACE_SEL_FLASH_NOR_SPI:
|
||||
if (guidcmp(img_uuid, &STM32MP_NOR_FIP_A_GUID) == 0) {
|
||||
image_spec->offset = STM32MP_NOR_FIP_A_OFFSET;
|
||||
} else if (guidcmp(img_uuid, &STM32MP_NOR_FIP_B_GUID) == 0) {
|
||||
|
@ -747,7 +747,7 @@ static int plat_set_image_source(unsigned int image_id,
|
|||
#endif
|
||||
|
||||
#if STM32MP_SPI_NOR
|
||||
case BOOT_API_CTX_BOOT_INTERFACE_SEL_FLASH_NOR_QSPI:
|
||||
case BOOT_API_CTX_BOOT_INTERFACE_SEL_FLASH_NOR_SPI:
|
||||
if (image_id == FWU_METADATA_IMAGE_ID) {
|
||||
spec->offset = STM32MP_NOR_METADATA1_OFFSET;
|
||||
} else {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2017-2022, STMicroelectronics - All Rights Reserved
|
||||
* Copyright (c) 2017-2023, STMicroelectronics - All Rights Reserved
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
@ -47,7 +47,7 @@
|
|||
#define BOOT_API_CTX_BOOT_INTERFACE_SEL_FLASH_NAND_FMC 0x3U
|
||||
|
||||
/* Boot occurred on QSPI NOR */
|
||||
#define BOOT_API_CTX_BOOT_INTERFACE_SEL_FLASH_NOR_QSPI 0x4U
|
||||
#define BOOT_API_CTX_BOOT_INTERFACE_SEL_FLASH_NOR_SPI 0x4U
|
||||
|
||||
/* Boot occurred on UART */
|
||||
#define BOOT_API_CTX_BOOT_INTERFACE_SEL_SERIAL_UART 0x5U
|
||||
|
@ -56,7 +56,7 @@
|
|||
#define BOOT_API_CTX_BOOT_INTERFACE_SEL_SERIAL_USB 0x6U
|
||||
|
||||
/* Boot occurred on QSPI NAND */
|
||||
#define BOOT_API_CTX_BOOT_INTERFACE_SEL_FLASH_NAND_QSPI 0x7U
|
||||
#define BOOT_API_CTX_BOOT_INTERFACE_SEL_FLASH_NAND_SPI 0x7U
|
||||
|
||||
/**
|
||||
* @brief Possible value of boot context field 'EmmcXferStatus'
|
||||
|
|
Loading…
Add table
Reference in a new issue