Add bootstd information for VBE. Put it in a separate file to avoid cluttering the main one.
Signed-off-by: Simon Glass <s...@chromium.org> --- Changes in v3: - Add a comment about the offsets Changes in v2: - Move VPL things into a separate file arch/arm/dts/rockchip-u-boot.dtsi | 4 +++ arch/arm/dts/rockchip-vpl-u-boot.dtsi | 40 +++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 arch/arm/dts/rockchip-vpl-u-boot.dtsi diff --git a/arch/arm/dts/rockchip-u-boot.dtsi b/arch/arm/dts/rockchip-u-boot.dtsi index 465f54b8b09..85a89e3a596 100644 --- a/arch/arm/dts/rockchip-u-boot.dtsi +++ b/arch/arm/dts/rockchip-u-boot.dtsi @@ -226,3 +226,7 @@ #endif /* CONFIG_ROCKCHIP_SPI_IMAGE */ }; #endif /* CONFIG_SPL */ + +#ifdef CONFIG_VPL +#include "rockchip-vpl-u-boot.dtsi" +#endif diff --git a/arch/arm/dts/rockchip-vpl-u-boot.dtsi b/arch/arm/dts/rockchip-vpl-u-boot.dtsi new file mode 100644 index 00000000000..475dbc53796 --- /dev/null +++ b/arch/arm/dts/rockchip-vpl-u-boot.dtsi @@ -0,0 +1,40 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2019 Jagan Teki <ja...@amarulasolutions.com> + */ + +/ { + bootstd { + bootph-verify; + compatible = "u-boot,boot-std"; + + /* + * This is used for the VBE OS-request tests. A FAT filesystem + * created in a partition with the VBE information appearing + * before the partition starts. + * + * Offsets are aligned to the media block-size, typically 0x200 + * + * The start of the VBE area is set at 8MB, adjusted for the + * skip-at-start offset. Before that is a block containing the + * version information and before that is the state. These could + * be stored in a different storage device if available, but so + * far VBE only supports MMC. + * + * The total area size is 8MB which should be enough for a FIT + * containing U-Boot and a number of devicetrees. + */ + firmware0 { + bootph-verify; + compatible = "fwupd,vbe-abrec"; + storage = "mmc0"; + skip-offset = <0x8000>; + area-start = <0x7f8000>; + area-size = <0x800000>; + state-offset = <(0x7f8000 - 0x400)>; + state-size = <0x40>; + version-offset = <(0x7f8000 - 0x200)>; + version-size = <0x100>; + }; + }; +}; -- 2.43.0