summaryrefslogtreecommitdiff
path: root/include/mtd
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2024-09-29 19:49:49 -0600
committerTom Rini <[email protected]>2024-10-11 11:44:48 -0600
commitf38956a687c42db8d9736e09df2d68705369950e (patch)
treeea397b639b37d2651ae245509b5034786cf3e641 /include/mtd
parent371dc068bbf50c6ed6146c04ec83b644bcc79249 (diff)
include: Use CONFIG_XPL_BUILD instead of CONFIG_SPL_BUILD
Use the new symbol to refer to any 'SPL' build, including TPL and VPL Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'include/mtd')
-rw-r--r--include/mtd/cfi_flash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mtd/cfi_flash.h b/include/mtd/cfi_flash.h
index f4aecaac75f..be292e3ceb2 100644
--- a/include/mtd/cfi_flash.h
+++ b/include/mtd/cfi_flash.h
@@ -163,7 +163,7 @@ struct cfi_pri_hdr {
#if defined(CONFIG_SYS_MAX_FLASH_BANKS_DETECT)
/* map to cfi_flash_num_flash_banks only when supported */
#if IS_ENABLED(CONFIG_FLASH_CFI_DRIVER) && \
- (!IS_ENABLED(CONFIG_SPL_BUILD) || IS_ENABLED(CONFIG_SPL_MTD))
+ (!IS_ENABLED(CONFIG_XPL_BUILD) || IS_ENABLED(CONFIG_SPL_MTD))
#define CFI_FLASH_BANKS (cfi_flash_num_flash_banks)
/* board code can update this variable before CFI detection */
extern int cfi_flash_num_flash_banks;