ARM: dts: imx: Wrap i.MX8M binman SPL and FIT nodes in CST node if IMX_HAB enabled
In case CONFIG_IMX_HAB is enabled, extend the binman image description for all of i.MX8M{Q,M,N,P} with CST wrapper node. This way, if CONFIG_IMX_HAB is enabled, binman will be automatically used to sign SPL and fitImage. Reviewed-by: Tim Harvey <tharvey@gateworks.com> Signed-off-by: Marek Vasut <marex@denx.de>
This commit is contained in:

committed by
Fabio Estevam

parent
e3da4d0a3a
commit
d415a48b40
@@ -54,126 +54,151 @@
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
binman_imx_spl: nxp-imx8mimage {
|
#ifdef CONFIG_IMX_HAB
|
||||||
filename = "u-boot-spl-mkimage.bin";
|
nxp-imx8mcst@0 {
|
||||||
nxp,boot-from = "sd";
|
filename = "u-boot-spl-mkimage.signed.bin";
|
||||||
nxp,rom-version = <1>;
|
|
||||||
nxp,loader-address = <CONFIG_SPL_TEXT_BASE>;
|
nxp,loader-address = <CONFIG_SPL_TEXT_BASE>;
|
||||||
|
nxp,unlock;
|
||||||
args; /* Needed by mkimage etype superclass */
|
args; /* Needed by mkimage etype superclass */
|
||||||
|
#endif
|
||||||
|
|
||||||
section {
|
binman_imx_spl: nxp-imx8mimage {
|
||||||
align = <4>;
|
filename = "u-boot-spl-mkimage.bin";
|
||||||
align-size = <4>;
|
nxp,boot-from = "sd";
|
||||||
filename = "u-boot-spl-ddr.bin";
|
nxp,rom-version = <1>;
|
||||||
pad-byte = <0xff>;
|
nxp,loader-address = <CONFIG_SPL_TEXT_BASE>;
|
||||||
|
args; /* Needed by mkimage etype superclass */
|
||||||
|
|
||||||
u-boot-spl {
|
section {
|
||||||
align-end = <4>;
|
align = <4>;
|
||||||
filename = "u-boot-spl.bin";
|
align-size = <4>;
|
||||||
};
|
filename = "u-boot-spl-ddr.bin";
|
||||||
|
pad-byte = <0xff>;
|
||||||
|
|
||||||
ddr-1d-imem-fw {
|
u-boot-spl {
|
||||||
filename = "lpddr4_pmu_train_1d_imem.bin";
|
align-end = <4>;
|
||||||
align-end = <4>;
|
filename = "u-boot-spl.bin";
|
||||||
type = "blob-ext";
|
};
|
||||||
};
|
|
||||||
|
|
||||||
ddr-1d-dmem-fw {
|
ddr-1d-imem-fw {
|
||||||
filename = "lpddr4_pmu_train_1d_dmem.bin";
|
filename = "lpddr4_pmu_train_1d_imem.bin";
|
||||||
align-end = <4>;
|
align-end = <4>;
|
||||||
type = "blob-ext";
|
type = "blob-ext";
|
||||||
};
|
};
|
||||||
|
|
||||||
ddr-2d-imem-fw {
|
ddr-1d-dmem-fw {
|
||||||
filename = "lpddr4_pmu_train_2d_imem.bin";
|
filename = "lpddr4_pmu_train_1d_dmem.bin";
|
||||||
align-end = <4>;
|
align-end = <4>;
|
||||||
type = "blob-ext";
|
type = "blob-ext";
|
||||||
};
|
};
|
||||||
|
|
||||||
ddr-2d-dmem-fw {
|
ddr-2d-imem-fw {
|
||||||
filename = "lpddr4_pmu_train_2d_dmem.bin";
|
filename = "lpddr4_pmu_train_2d_imem.bin";
|
||||||
align-end = <4>;
|
align-end = <4>;
|
||||||
type = "blob-ext";
|
type = "blob-ext";
|
||||||
|
};
|
||||||
|
|
||||||
|
ddr-2d-dmem-fw {
|
||||||
|
filename = "lpddr4_pmu_train_2d_dmem.bin";
|
||||||
|
align-end = <4>;
|
||||||
|
type = "blob-ext";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
#ifdef CONFIG_IMX_HAB
|
||||||
};
|
};
|
||||||
|
|
||||||
binman_imx_fit: fit {
|
nxp-imx8mcst@1 {
|
||||||
description = "Configuration to load ATF before U-Boot";
|
filename = "u-boot-fit.signed.bin";
|
||||||
#ifndef CONFIG_IMX_HAB
|
nxp,loader-address = <CONFIG_SPL_LOAD_FIT_ADDRESS>;
|
||||||
fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
|
|
||||||
#endif
|
|
||||||
fit,fdt-list = "of-list";
|
|
||||||
#address-cells = <1>;
|
|
||||||
#ifdef CONFIG_FSPI_CONF_HEADER
|
#ifdef CONFIG_FSPI_CONF_HEADER
|
||||||
offset = <0x58C00>;
|
offset = <0x58C00>;
|
||||||
#else
|
#else
|
||||||
offset = <0x57c00>;
|
offset = <0x57c00>;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
images {
|
args; /* Needed by mkimage etype superclass */
|
||||||
uboot {
|
|
||||||
arch = "arm64";
|
|
||||||
compression = "none";
|
|
||||||
description = "U-Boot (64-bit)";
|
|
||||||
load = <CONFIG_TEXT_BASE>;
|
|
||||||
type = "standalone";
|
|
||||||
|
|
||||||
uboot-blob {
|
|
||||||
filename = "u-boot-nodtb.bin";
|
|
||||||
type = "blob-ext";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
#ifndef CONFIG_ARMV8_PSCI
|
|
||||||
atf {
|
|
||||||
arch = "arm64";
|
|
||||||
compression = "none";
|
|
||||||
description = "ARM Trusted Firmware";
|
|
||||||
entry = <0x920000>;
|
|
||||||
load = <0x920000>;
|
|
||||||
type = "firmware";
|
|
||||||
|
|
||||||
atf-blob {
|
|
||||||
filename = "bl31.bin";
|
|
||||||
type = "atf-bl31";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
binman_fip: fip {
|
binman_imx_fit: fit {
|
||||||
arch = "arm64";
|
description = "Configuration to load ATF before U-Boot";
|
||||||
compression = "none";
|
#ifndef CONFIG_IMX_HAB
|
||||||
description = "Trusted Firmware FIP";
|
fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
|
||||||
load = <0x40310000>;
|
#endif
|
||||||
type = "firmware";
|
fit,fdt-list = "of-list";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#ifdef CONFIG_FSPI_CONF_HEADER
|
||||||
|
offset = <0x58C00>;
|
||||||
|
#else
|
||||||
|
offset = <0x57c00>;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
images {
|
||||||
|
uboot {
|
||||||
|
arch = "arm64";
|
||||||
|
compression = "none";
|
||||||
|
description = "U-Boot (64-bit)";
|
||||||
|
load = <CONFIG_TEXT_BASE>;
|
||||||
|
type = "standalone";
|
||||||
|
|
||||||
|
uboot-blob {
|
||||||
|
filename = "u-boot-nodtb.bin";
|
||||||
|
type = "blob-ext";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
#ifndef CONFIG_ARMV8_PSCI
|
||||||
|
atf {
|
||||||
|
arch = "arm64";
|
||||||
|
compression = "none";
|
||||||
|
description = "ARM Trusted Firmware";
|
||||||
|
entry = <0x920000>;
|
||||||
|
load = <0x920000>;
|
||||||
|
type = "firmware";
|
||||||
|
|
||||||
|
atf-blob {
|
||||||
|
filename = "bl31.bin";
|
||||||
|
type = "atf-bl31";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
|
binman_fip: fip {
|
||||||
|
arch = "arm64";
|
||||||
|
compression = "none";
|
||||||
|
description = "Trusted Firmware FIP";
|
||||||
|
load = <0x40310000>;
|
||||||
|
type = "firmware";
|
||||||
|
};
|
||||||
|
|
||||||
|
@fdt-SEQ {
|
||||||
|
compression = "none";
|
||||||
|
description = "NAME";
|
||||||
|
type = "flat_dt";
|
||||||
|
|
||||||
|
uboot-fdt-blob {
|
||||||
|
filename = "u-boot.dtb";
|
||||||
|
type = "blob-ext";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@fdt-SEQ {
|
configurations {
|
||||||
compression = "none";
|
default = "@config-DEFAULT-SEQ";
|
||||||
description = "NAME";
|
|
||||||
type = "flat_dt";
|
|
||||||
|
|
||||||
uboot-fdt-blob {
|
@config-SEQ {
|
||||||
filename = "u-boot.dtb";
|
description = "NAME";
|
||||||
type = "blob-ext";
|
fdt = "fdt-SEQ";
|
||||||
|
firmware = "uboot";
|
||||||
|
#ifndef CONFIG_ARMV8_PSCI
|
||||||
|
loadables = "atf";
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
#ifdef CONFIG_IMX_HAB
|
||||||
configurations {
|
|
||||||
default = "@config-DEFAULT-SEQ";
|
|
||||||
|
|
||||||
@config-SEQ {
|
|
||||||
description = "NAME";
|
|
||||||
fdt = "fdt-SEQ";
|
|
||||||
firmware = "uboot";
|
|
||||||
#ifndef CONFIG_ARMV8_PSCI
|
|
||||||
loadables = "atf";
|
|
||||||
#endif
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -103,147 +103,172 @@
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
binman_imx_spl: nxp-imx8mimage {
|
#ifdef CONFIG_IMX_HAB
|
||||||
filename = "u-boot-spl-mkimage.bin";
|
nxp-imx8mcst@0 {
|
||||||
nxp,boot-from = "sd";
|
filename = "u-boot-spl-mkimage.signed.bin";
|
||||||
nxp,rom-version = <2>;
|
|
||||||
nxp,loader-address = <CONFIG_SPL_TEXT_BASE>;
|
nxp,loader-address = <CONFIG_SPL_TEXT_BASE>;
|
||||||
|
nxp,unlock;
|
||||||
args; /* Needed by mkimage etype superclass */
|
args; /* Needed by mkimage etype superclass */
|
||||||
|
|
||||||
section {
|
|
||||||
filename = "u-boot-spl-ddr.bin";
|
|
||||||
pad-byte = <0xff>;
|
|
||||||
align-size = <4>;
|
|
||||||
align = <4>;
|
|
||||||
|
|
||||||
u-boot-spl {
|
|
||||||
align-end = <4>;
|
|
||||||
filename = "u-boot-spl.bin";
|
|
||||||
};
|
|
||||||
|
|
||||||
ddr-1d-imem-fw {
|
|
||||||
#ifdef CONFIG_IMX8M_LPDDR4
|
|
||||||
filename = "lpddr4_pmu_train_1d_imem.bin";
|
|
||||||
#elif CONFIG_IMX8M_DDR4
|
|
||||||
filename = "ddr4_imem_1d_201810.bin";
|
|
||||||
#else
|
|
||||||
filename = "ddr3_imem_1d.bin";
|
|
||||||
#endif
|
#endif
|
||||||
type = "blob-ext";
|
|
||||||
align-end = <4>;
|
|
||||||
};
|
|
||||||
|
|
||||||
ddr-1d-dmem-fw {
|
binman_imx_spl: nxp-imx8mimage {
|
||||||
|
filename = "u-boot-spl-mkimage.bin";
|
||||||
|
nxp,boot-from = "sd";
|
||||||
|
nxp,rom-version = <2>;
|
||||||
|
nxp,loader-address = <CONFIG_SPL_TEXT_BASE>;
|
||||||
|
args; /* Needed by mkimage etype superclass */
|
||||||
|
|
||||||
|
section {
|
||||||
|
filename = "u-boot-spl-ddr.bin";
|
||||||
|
pad-byte = <0xff>;
|
||||||
|
align-size = <4>;
|
||||||
|
align = <4>;
|
||||||
|
|
||||||
|
u-boot-spl {
|
||||||
|
align-end = <4>;
|
||||||
|
filename = "u-boot-spl.bin";
|
||||||
|
};
|
||||||
|
|
||||||
|
ddr-1d-imem-fw {
|
||||||
#ifdef CONFIG_IMX8M_LPDDR4
|
#ifdef CONFIG_IMX8M_LPDDR4
|
||||||
filename = "lpddr4_pmu_train_1d_dmem.bin";
|
filename = "lpddr4_pmu_train_1d_imem.bin";
|
||||||
#elif CONFIG_IMX8M_DDR4
|
#elif CONFIG_IMX8M_DDR4
|
||||||
filename = "ddr4_dmem_1d_201810.bin";
|
filename = "ddr4_imem_1d_201810.bin";
|
||||||
#else
|
#else
|
||||||
filename = "ddr3_dmem_1d.bin";
|
filename = "ddr3_imem_1d.bin";
|
||||||
#endif
|
#endif
|
||||||
type = "blob-ext";
|
type = "blob-ext";
|
||||||
align-end = <4>;
|
align-end = <4>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ddr-1d-dmem-fw {
|
||||||
|
#ifdef CONFIG_IMX8M_LPDDR4
|
||||||
|
filename = "lpddr4_pmu_train_1d_dmem.bin";
|
||||||
|
#elif CONFIG_IMX8M_DDR4
|
||||||
|
filename = "ddr4_dmem_1d_201810.bin";
|
||||||
|
#else
|
||||||
|
filename = "ddr3_dmem_1d.bin";
|
||||||
|
#endif
|
||||||
|
type = "blob-ext";
|
||||||
|
align-end = <4>;
|
||||||
|
};
|
||||||
|
|
||||||
#if defined(CONFIG_IMX8M_LPDDR4) || defined(CONFIG_IMX8M_DDR4)
|
#if defined(CONFIG_IMX8M_LPDDR4) || defined(CONFIG_IMX8M_DDR4)
|
||||||
ddr-2d-imem-fw {
|
ddr-2d-imem-fw {
|
||||||
#ifdef CONFIG_IMX8M_LPDDR4
|
#ifdef CONFIG_IMX8M_LPDDR4
|
||||||
filename = "lpddr4_pmu_train_2d_imem.bin";
|
filename = "lpddr4_pmu_train_2d_imem.bin";
|
||||||
#else
|
#else
|
||||||
filename = "ddr4_imem_2d_201810.bin";
|
filename = "ddr4_imem_2d_201810.bin";
|
||||||
#endif
|
#endif
|
||||||
type = "blob-ext";
|
type = "blob-ext";
|
||||||
align-end = <4>;
|
align-end = <4>;
|
||||||
};
|
};
|
||||||
|
|
||||||
ddr-2d-dmem-fw {
|
ddr-2d-dmem-fw {
|
||||||
#ifdef CONFIG_IMX8M_LPDDR4
|
#ifdef CONFIG_IMX8M_LPDDR4
|
||||||
filename = "lpddr4_pmu_train_2d_dmem.bin";
|
filename = "lpddr4_pmu_train_2d_dmem.bin";
|
||||||
#else
|
#else
|
||||||
filename = "ddr4_dmem_2d_201810.bin";
|
filename = "ddr4_dmem_2d_201810.bin";
|
||||||
|
#endif
|
||||||
|
type = "blob-ext";
|
||||||
|
align-end = <4>;
|
||||||
|
};
|
||||||
#endif
|
#endif
|
||||||
type = "blob-ext";
|
|
||||||
align-end = <4>;
|
|
||||||
};
|
};
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef CONFIG_IMX_HAB
|
||||||
};
|
};
|
||||||
|
|
||||||
binman_imx_fit: fit {
|
nxp-imx8mcst@1 {
|
||||||
description = "Configuration to load ATF before U-Boot";
|
filename = "u-boot-fit.signed.bin";
|
||||||
#ifndef CONFIG_IMX_HAB
|
nxp,loader-address = <CONFIG_SPL_LOAD_FIT_ADDRESS>;
|
||||||
fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
|
|
||||||
#endif
|
|
||||||
fit,fdt-list = "of-list";
|
|
||||||
#address-cells = <1>;
|
|
||||||
#ifdef CONFIG_FSPI_CONF_HEADER
|
#ifdef CONFIG_FSPI_CONF_HEADER
|
||||||
offset = <0x59000>;
|
offset = <0x59000>;
|
||||||
#else
|
#else
|
||||||
offset = <0x58000>;
|
offset = <0x58000>;
|
||||||
#endif
|
#endif
|
||||||
|
args; /* Needed by mkimage etype superclass */
|
||||||
images {
|
|
||||||
uboot {
|
|
||||||
arch = "arm64";
|
|
||||||
compression = "none";
|
|
||||||
description = "U-Boot (64-bit)";
|
|
||||||
load = <CONFIG_TEXT_BASE>;
|
|
||||||
type = "standalone";
|
|
||||||
|
|
||||||
uboot-blob {
|
|
||||||
filename = "u-boot-nodtb.bin";
|
|
||||||
type = "blob-ext";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
#ifndef CONFIG_ARMV8_PSCI
|
|
||||||
atf {
|
|
||||||
arch = "arm64";
|
|
||||||
compression = "none";
|
|
||||||
description = "ARM Trusted Firmware";
|
|
||||||
entry = <0x960000>;
|
|
||||||
load = <0x960000>;
|
|
||||||
type = "firmware";
|
|
||||||
|
|
||||||
atf-blob {
|
|
||||||
filename = "bl31.bin";
|
|
||||||
type = "atf-bl31";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
binman_fip: fip {
|
binman_imx_fit: fit {
|
||||||
arch = "arm64";
|
description = "Configuration to load ATF before U-Boot";
|
||||||
compression = "none";
|
#ifndef CONFIG_IMX_HAB
|
||||||
description = "Trusted Firmware FIP";
|
fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
|
||||||
load = <0x40310000>;
|
#endif
|
||||||
type = "firmware";
|
fit,fdt-list = "of-list";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#ifdef CONFIG_FSPI_CONF_HEADER
|
||||||
|
offset = <0x59000>;
|
||||||
|
#else
|
||||||
|
offset = <0x58000>;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
images {
|
||||||
|
uboot {
|
||||||
|
arch = "arm64";
|
||||||
|
compression = "none";
|
||||||
|
description = "U-Boot (64-bit)";
|
||||||
|
load = <CONFIG_TEXT_BASE>;
|
||||||
|
type = "standalone";
|
||||||
|
|
||||||
|
uboot-blob {
|
||||||
|
filename = "u-boot-nodtb.bin";
|
||||||
|
type = "blob-ext";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
#ifndef CONFIG_ARMV8_PSCI
|
||||||
|
atf {
|
||||||
|
arch = "arm64";
|
||||||
|
compression = "none";
|
||||||
|
description = "ARM Trusted Firmware";
|
||||||
|
entry = <0x960000>;
|
||||||
|
load = <0x960000>;
|
||||||
|
type = "firmware";
|
||||||
|
|
||||||
|
atf-blob {
|
||||||
|
filename = "bl31.bin";
|
||||||
|
type = "atf-bl31";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
|
binman_fip: fip {
|
||||||
|
arch = "arm64";
|
||||||
|
compression = "none";
|
||||||
|
description = "Trusted Firmware FIP";
|
||||||
|
load = <0x40310000>;
|
||||||
|
type = "firmware";
|
||||||
|
};
|
||||||
|
|
||||||
|
@fdt-SEQ {
|
||||||
|
compression = "none";
|
||||||
|
description = "NAME";
|
||||||
|
type = "flat_dt";
|
||||||
|
|
||||||
|
uboot-fdt-blob {
|
||||||
|
filename = "u-boot.dtb";
|
||||||
|
type = "blob-ext";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@fdt-SEQ {
|
configurations {
|
||||||
compression = "none";
|
default = "@config-DEFAULT-SEQ";
|
||||||
description = "NAME";
|
|
||||||
type = "flat_dt";
|
|
||||||
|
|
||||||
uboot-fdt-blob {
|
@config-SEQ {
|
||||||
filename = "u-boot.dtb";
|
description = "NAME";
|
||||||
type = "blob-ext";
|
fdt = "fdt-SEQ";
|
||||||
|
firmware = "uboot";
|
||||||
|
#ifndef CONFIG_ARMV8_PSCI
|
||||||
|
loadables = "atf";
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
#ifdef CONFIG_IMX_HAB
|
||||||
configurations {
|
|
||||||
default = "@config-DEFAULT-SEQ";
|
|
||||||
|
|
||||||
@config-SEQ {
|
|
||||||
description = "NAME";
|
|
||||||
fdt = "fdt-SEQ";
|
|
||||||
firmware = "uboot";
|
|
||||||
#ifndef CONFIG_ARMV8_PSCI
|
|
||||||
loadables = "atf";
|
|
||||||
#endif
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@@ -86,110 +86,130 @@
|
|||||||
section {
|
section {
|
||||||
pad-byte = <0x00>;
|
pad-byte = <0x00>;
|
||||||
|
|
||||||
binman_imx_spl: nxp-imx8mimage {
|
#ifdef CONFIG_IMX_HAB
|
||||||
filename = "u-boot-spl-mkimage.bin";
|
nxp-imx8mcst@0 {
|
||||||
nxp,boot-from = "sd";
|
filename = "u-boot-spl-mkimage.signed.bin";
|
||||||
nxp,rom-version = <2>;
|
|
||||||
nxp,loader-address = <CONFIG_SPL_TEXT_BASE>;
|
nxp,loader-address = <CONFIG_SPL_TEXT_BASE>;
|
||||||
|
nxp,unlock;
|
||||||
args; /* Needed by mkimage etype superclass */
|
args; /* Needed by mkimage etype superclass */
|
||||||
|
#endif
|
||||||
|
|
||||||
section {
|
binman_imx_spl: nxp-imx8mimage {
|
||||||
filename = "u-boot-spl-ddr.bin";
|
filename = "u-boot-spl-mkimage.bin";
|
||||||
pad-byte = <0xff>;
|
nxp,boot-from = "sd";
|
||||||
align-size = <4>;
|
nxp,rom-version = <2>;
|
||||||
align = <4>;
|
nxp,loader-address = <CONFIG_SPL_TEXT_BASE>;
|
||||||
|
args; /* Needed by mkimage etype superclass */
|
||||||
|
|
||||||
u-boot-spl {
|
section {
|
||||||
align-end = <4>;
|
filename = "u-boot-spl-ddr.bin";
|
||||||
};
|
pad-byte = <0xff>;
|
||||||
|
align-size = <4>;
|
||||||
|
align = <4>;
|
||||||
|
|
||||||
ddr-1d-imem-fw {
|
u-boot-spl {
|
||||||
filename = "lpddr4_pmu_train_1d_imem_202006.bin";
|
align-end = <4>;
|
||||||
type = "blob-ext";
|
};
|
||||||
align-end = <4>;
|
|
||||||
};
|
|
||||||
|
|
||||||
ddr-1d-dmem-fw {
|
ddr-1d-imem-fw {
|
||||||
filename = "lpddr4_pmu_train_1d_dmem_202006.bin";
|
filename = "lpddr4_pmu_train_1d_imem_202006.bin";
|
||||||
type = "blob-ext";
|
type = "blob-ext";
|
||||||
align-end = <4>;
|
align-end = <4>;
|
||||||
};
|
};
|
||||||
|
|
||||||
ddr-2d-imem-fw {
|
ddr-1d-dmem-fw {
|
||||||
filename = "lpddr4_pmu_train_2d_imem_202006.bin";
|
filename = "lpddr4_pmu_train_1d_dmem_202006.bin";
|
||||||
type = "blob-ext";
|
type = "blob-ext";
|
||||||
align-end = <4>;
|
align-end = <4>;
|
||||||
};
|
};
|
||||||
|
|
||||||
ddr-2d-dmem-fw {
|
ddr-2d-imem-fw {
|
||||||
filename = "lpddr4_pmu_train_2d_dmem_202006.bin";
|
filename = "lpddr4_pmu_train_2d_imem_202006.bin";
|
||||||
type = "blob-ext";
|
type = "blob-ext";
|
||||||
align-end = <4>;
|
align-end = <4>;
|
||||||
|
};
|
||||||
|
|
||||||
|
ddr-2d-dmem-fw {
|
||||||
|
filename = "lpddr4_pmu_train_2d_dmem_202006.bin";
|
||||||
|
type = "blob-ext";
|
||||||
|
align-end = <4>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
#ifdef CONFIG_IMX_HAB
|
||||||
};
|
};
|
||||||
|
|
||||||
binman_imx_fit: fit {
|
nxp-imx8mcst@1 {
|
||||||
description = "Configuration to load ATF before U-Boot";
|
filename = "u-boot-fit.signed.bin";
|
||||||
#ifndef CONFIG_IMX_HAB
|
nxp,loader-address = <CONFIG_SPL_LOAD_FIT_ADDRESS>;
|
||||||
fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
|
|
||||||
#endif
|
|
||||||
fit,fdt-list = "of-list";
|
|
||||||
#address-cells = <1>;
|
|
||||||
offset = <0x58000>;
|
offset = <0x58000>;
|
||||||
|
args; /* Needed by mkimage etype superclass */
|
||||||
images {
|
|
||||||
uboot {
|
|
||||||
description = "U-Boot (64-bit)";
|
|
||||||
type = "standalone";
|
|
||||||
arch = "arm64";
|
|
||||||
compression = "none";
|
|
||||||
load = <CONFIG_TEXT_BASE>;
|
|
||||||
|
|
||||||
uboot_blob: blob-ext {
|
|
||||||
filename = "u-boot-nodtb.bin";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
#ifndef CONFIG_ARMV8_PSCI
|
|
||||||
atf {
|
|
||||||
description = "ARM Trusted Firmware";
|
|
||||||
type = "firmware";
|
|
||||||
arch = "arm64";
|
|
||||||
compression = "none";
|
|
||||||
load = <0x970000>;
|
|
||||||
entry = <0x970000>;
|
|
||||||
|
|
||||||
atf_blob: atf-blob {
|
|
||||||
filename = "bl31.bin";
|
|
||||||
type = "atf-bl31";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@fdt-SEQ {
|
binman_imx_fit: fit {
|
||||||
description = "NAME";
|
description = "Configuration to load ATF before U-Boot";
|
||||||
type = "flat_dt";
|
#ifndef CONFIG_IMX_HAB
|
||||||
compression = "none";
|
fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
|
||||||
|
#endif
|
||||||
|
fit,fdt-list = "of-list";
|
||||||
|
#address-cells = <1>;
|
||||||
|
offset = <0x58000>;
|
||||||
|
|
||||||
blob-ext {
|
images {
|
||||||
filename = "u-boot.dtb";
|
uboot {
|
||||||
|
description = "U-Boot (64-bit)";
|
||||||
|
type = "standalone";
|
||||||
|
arch = "arm64";
|
||||||
|
compression = "none";
|
||||||
|
load = <CONFIG_TEXT_BASE>;
|
||||||
|
|
||||||
|
uboot_blob: blob-ext {
|
||||||
|
filename = "u-boot-nodtb.bin";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
#ifndef CONFIG_ARMV8_PSCI
|
||||||
|
atf {
|
||||||
|
description = "ARM Trusted Firmware";
|
||||||
|
type = "firmware";
|
||||||
|
arch = "arm64";
|
||||||
|
compression = "none";
|
||||||
|
load = <0x970000>;
|
||||||
|
entry = <0x970000>;
|
||||||
|
|
||||||
|
atf_blob: atf-blob {
|
||||||
|
filename = "bl31.bin";
|
||||||
|
type = "atf-bl31";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
|
@fdt-SEQ {
|
||||||
|
description = "NAME";
|
||||||
|
type = "flat_dt";
|
||||||
|
compression = "none";
|
||||||
|
|
||||||
|
blob-ext {
|
||||||
|
filename = "u-boot.dtb";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
configurations {
|
||||||
|
default = "@config-DEFAULT-SEQ";
|
||||||
|
|
||||||
|
@config-SEQ {
|
||||||
|
description = "NAME";
|
||||||
|
fdt = "fdt-SEQ";
|
||||||
|
firmware = "uboot";
|
||||||
|
#ifndef CONFIG_ARMV8_PSCI
|
||||||
|
loadables = "atf";
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
#ifdef CONFIG_IMX_HAB
|
||||||
configurations {
|
|
||||||
default = "@config-DEFAULT-SEQ";
|
|
||||||
|
|
||||||
@config-SEQ {
|
|
||||||
description = "NAME";
|
|
||||||
fdt = "fdt-SEQ";
|
|
||||||
firmware = "uboot";
|
|
||||||
#ifndef CONFIG_ARMV8_PSCI
|
|
||||||
loadables = "atf";
|
|
||||||
#endif
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@@ -38,116 +38,136 @@
|
|||||||
section {
|
section {
|
||||||
pad-byte = <0x00>;
|
pad-byte = <0x00>;
|
||||||
|
|
||||||
binman_imx_spl: nxp-imx8mimage {
|
#ifdef CONFIG_IMX_HAB
|
||||||
filename = "u-boot-spl-mkimage.bin";
|
nxp-imx8mcst@0 {
|
||||||
nxp,boot-from = "sd";
|
filename = "u-boot-spl-mkimage.signed.bin";
|
||||||
nxp,rom-version = <1>;
|
|
||||||
nxp,loader-address = <CONFIG_SPL_TEXT_BASE>;
|
nxp,loader-address = <CONFIG_SPL_TEXT_BASE>;
|
||||||
|
nxp,unlock;
|
||||||
args; /* Needed by mkimage etype superclass */
|
args; /* Needed by mkimage etype superclass */
|
||||||
|
#endif
|
||||||
|
|
||||||
section {
|
binman_imx_spl: nxp-imx8mimage {
|
||||||
align = <4>;
|
filename = "u-boot-spl-mkimage.bin";
|
||||||
align-size = <4>;
|
nxp,boot-from = "sd";
|
||||||
filename = "u-boot-spl-ddr.bin";
|
nxp,rom-version = <1>;
|
||||||
pad-byte = <0xff>;
|
nxp,loader-address = <CONFIG_SPL_TEXT_BASE>;
|
||||||
|
args; /* Needed by mkimage etype superclass */
|
||||||
|
|
||||||
u-boot-spl {
|
section {
|
||||||
align-end = <4>;
|
align = <4>;
|
||||||
filename = "u-boot-spl.bin";
|
align-size = <4>;
|
||||||
};
|
filename = "u-boot-spl-ddr.bin";
|
||||||
|
pad-byte = <0xff>;
|
||||||
|
|
||||||
ddr-1d-imem-fw {
|
u-boot-spl {
|
||||||
filename = "lpddr4_pmu_train_1d_imem.bin";
|
align-end = <4>;
|
||||||
align-end = <4>;
|
filename = "u-boot-spl.bin";
|
||||||
type = "blob-ext";
|
};
|
||||||
};
|
|
||||||
|
|
||||||
ddr-1d-dmem-fw {
|
ddr-1d-imem-fw {
|
||||||
filename = "lpddr4_pmu_train_1d_dmem.bin";
|
filename = "lpddr4_pmu_train_1d_imem.bin";
|
||||||
align-end = <4>;
|
align-end = <4>;
|
||||||
type = "blob-ext";
|
type = "blob-ext";
|
||||||
};
|
};
|
||||||
|
|
||||||
ddr-2d-imem-fw {
|
ddr-1d-dmem-fw {
|
||||||
filename = "lpddr4_pmu_train_2d_imem.bin";
|
filename = "lpddr4_pmu_train_1d_dmem.bin";
|
||||||
align-end = <4>;
|
align-end = <4>;
|
||||||
type = "blob-ext";
|
type = "blob-ext";
|
||||||
};
|
};
|
||||||
|
|
||||||
ddr-2d-dmem-fw {
|
ddr-2d-imem-fw {
|
||||||
filename = "lpddr4_pmu_train_2d_dmem.bin";
|
filename = "lpddr4_pmu_train_2d_imem.bin";
|
||||||
align-end = <4>;
|
align-end = <4>;
|
||||||
type = "blob-ext";
|
type = "blob-ext";
|
||||||
};
|
};
|
||||||
|
|
||||||
signed-hdmi-imx8m {
|
ddr-2d-dmem-fw {
|
||||||
filename = "signed_hdmi_imx8m.bin";
|
filename = "lpddr4_pmu_train_2d_dmem.bin";
|
||||||
type = "blob-ext";
|
align-end = <4>;
|
||||||
|
type = "blob-ext";
|
||||||
|
};
|
||||||
|
|
||||||
|
signed-hdmi-imx8m {
|
||||||
|
filename = "signed_hdmi_imx8m.bin";
|
||||||
|
type = "blob-ext";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
#ifdef CONFIG_IMX_HAB
|
||||||
};
|
};
|
||||||
|
|
||||||
binman_imx_fit: fit {
|
nxp-imx8mcst@1 {
|
||||||
description = "Configuration to load ATF before U-Boot";
|
filename = "u-boot-fit.signed.bin";
|
||||||
|
nxp,loader-address = <CONFIG_SPL_LOAD_FIT_ADDRESS>;
|
||||||
|
offset = <0x58000>;
|
||||||
|
args; /* Needed by mkimage etype superclass */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
binman_imx_fit: fit {
|
||||||
|
description = "Configuration to load ATF before U-Boot";
|
||||||
#ifndef CONFIG_IMX_HAB
|
#ifndef CONFIG_IMX_HAB
|
||||||
fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
|
fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
|
||||||
#endif
|
#endif
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
|
|
||||||
images {
|
images {
|
||||||
uboot {
|
uboot {
|
||||||
arch = "arm64";
|
arch = "arm64";
|
||||||
compression = "none";
|
compression = "none";
|
||||||
description = "U-Boot (64-bit)";
|
description = "U-Boot (64-bit)";
|
||||||
load = <CONFIG_TEXT_BASE>;
|
load = <CONFIG_TEXT_BASE>;
|
||||||
type = "standalone";
|
type = "standalone";
|
||||||
|
|
||||||
uboot-blob {
|
uboot-blob {
|
||||||
filename = "u-boot-nodtb.bin";
|
filename = "u-boot-nodtb.bin";
|
||||||
type = "blob-ext";
|
type = "blob-ext";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
#ifndef CONFIG_ARMV8_PSCI
|
#ifndef CONFIG_ARMV8_PSCI
|
||||||
atf {
|
atf {
|
||||||
arch = "arm64";
|
arch = "arm64";
|
||||||
compression = "none";
|
compression = "none";
|
||||||
description = "ARM Trusted Firmware";
|
description = "ARM Trusted Firmware";
|
||||||
entry = <0x910000>;
|
entry = <0x910000>;
|
||||||
load = <0x910000>;
|
load = <0x910000>;
|
||||||
type = "firmware";
|
type = "firmware";
|
||||||
|
|
||||||
atf-blob {
|
atf-blob {
|
||||||
filename = "bl31.bin";
|
filename = "bl31.bin";
|
||||||
type = "blob-ext";
|
type = "blob-ext";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
fdt {
|
fdt {
|
||||||
compression = "none";
|
compression = "none";
|
||||||
description = "NAME";
|
description = "NAME";
|
||||||
type = "flat_dt";
|
type = "flat_dt";
|
||||||
|
|
||||||
uboot-fdt-blob {
|
uboot-fdt-blob {
|
||||||
filename = "u-boot.dtb";
|
filename = "u-boot.dtb";
|
||||||
type = "blob-ext";
|
type = "blob-ext";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
configurations {
|
||||||
|
default = "conf";
|
||||||
|
|
||||||
|
conf {
|
||||||
|
description = "NAME";
|
||||||
|
fdt = "fdt";
|
||||||
|
firmware = "uboot";
|
||||||
|
#ifndef CONFIG_ARMV8_PSCI
|
||||||
|
loadables = "atf";
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
#ifdef CONFIG_IMX_HAB
|
||||||
configurations {
|
|
||||||
default = "conf";
|
|
||||||
|
|
||||||
conf {
|
|
||||||
description = "NAME";
|
|
||||||
fdt = "fdt";
|
|
||||||
firmware = "uboot";
|
|
||||||
#ifndef CONFIG_ARMV8_PSCI
|
|
||||||
loadables = "atf";
|
|
||||||
#endif
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user