u-boot/board/Marvell
Pali Rohár a65e65939e arm: mvebu: Espressobin: Setup MTD partitions when booting kernel
Due to different partition layouts in different U-Boot versions, DTS for
Espressobin in Linux does not contain any definition of MTD partitions.
See commit https://git.kernel.org/stable/c/00954566464a4 for more details.

This patch via ft_board_setup() hook fills current partition layout used by
U-Boot, so booted kernel would see correct MTD partitions layout.

U-Boot env partition is calculated from CONFIG_ENV_OFFSET option.

First partition contains secure firmware, ARM trusted firmware and U-Boot
with checksums. So it is not possible to replace just one image (e.g.
U-Boot) without updating other parts where is stored checksum of U-Boot.
Therefore there is no extra partition defined for U-Boot and first
partition is called just 'firmware'.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Konstantin Porotchkin <kostap@marvell.com>
Tested-by: Andre Heider <a.heider@gmail.com>
2020-08-31 14:45:53 +02:00
..
aspenite common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
db-88f6281-bp common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
db-88f6720 treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
db-88f6820-amc treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
db-88f6820-gp treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
db-mv784mp-gp treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
db-xc3-24g4xg common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
dreamplug common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
gplugd treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
guruplug common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
mvebu_armada-8k common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
mvebu_armada-37xx arm: mvebu: Espressobin: Setup MTD partitions when booting kernel 2020-08-31 14:45:53 +02:00
octeon_ebb7304 mips: octeon: Add minimal Octeon 3 EBB7304 EVK support 2020-07-18 15:47:50 +02:00
octeontx arm: octeontx: Add support for OcteonTX SoC platforms 2020-08-25 08:01:16 +02:00
octeontx2 arm: octeontx2: Add support for OcteonTX2 SoC platforms 2020-08-25 08:01:16 +02:00
openrd common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
sheevaplug common: Drop init.h from common header 2020-05-18 17:33:33 -04:00