mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
board: stm32mp1: use IS_ENABLED to prevent ifdef in ft_board_setup
Use IS_ENABLED to prevent ifdef in ft_board_setup. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
This commit is contained in:
parent
ebfd592f16
commit
06f624f28c
1 changed files with 3 additions and 3 deletions
|
@ -842,14 +842,14 @@ int mmc_get_env_dev(void)
|
||||||
#if defined(CONFIG_OF_BOARD_SETUP)
|
#if defined(CONFIG_OF_BOARD_SETUP)
|
||||||
int ft_board_setup(void *blob, struct bd_info *bd)
|
int ft_board_setup(void *blob, struct bd_info *bd)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_FDT_FIXUP_PARTITIONS
|
|
||||||
struct node_info nodes[] = {
|
struct node_info nodes[] = {
|
||||||
{ "st,stm32f469-qspi", MTD_DEV_TYPE_NOR, },
|
{ "st,stm32f469-qspi", MTD_DEV_TYPE_NOR, },
|
||||||
{ "st,stm32f469-qspi", MTD_DEV_TYPE_SPINAND},
|
{ "st,stm32f469-qspi", MTD_DEV_TYPE_SPINAND},
|
||||||
{ "st,stm32mp15-fmc2", MTD_DEV_TYPE_NAND, },
|
{ "st,stm32mp15-fmc2", MTD_DEV_TYPE_NAND, },
|
||||||
};
|
};
|
||||||
fdt_fixup_mtdparts(blob, nodes, ARRAY_SIZE(nodes));
|
|
||||||
#endif
|
if (IS_ENABLED(CONFIG_FDT_FIXUP_PARTITIONS))
|
||||||
|
fdt_fixup_mtdparts(blob, nodes, ARRAY_SIZE(nodes));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue