arm: mvebu: Fix Espressobin build for configs where ENV is not in SPI
When storing the UBoot Environment in for example EXT4, the U-Boot build is broken for several reasons: 1. armada-385-turris-omnia-u-boot.dtsi will not allow CONFIG_ENV_OFFSET and CONFIG_ENV_SIZE to be undefined 2. armada-37xx/board.c ft_board_setup function does not exist if CONFIG_ENV_IS_IN_SPI_FLASH is not defined This commit changes these files so that selecting a different location for the environment is possible. Signed-off-by: Rogier Stam <rogier@unrailed.org> Reviewed-by: Pali Rohár <pali@kernel.org>
This commit is contained in:
committed by
Stefan Roese
parent
83a8e27062
commit
a37b68820c
@@ -38,6 +38,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
#ifdef CONFIG_ENV_IS_IN_SPI_FLASH
|
||||
&spi0 {
|
||||
u-boot,dm-pre-reloc;
|
||||
|
||||
@@ -56,6 +57,7 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
#endif
|
||||
|
||||
&uart0 {
|
||||
u-boot,dm-pre-reloc;
|
||||
|
||||
Reference in New Issue
Block a user