summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2023-02-28 19:19:18 +0100
committerTom Rini <trini@konsulko.com>2023-03-29 11:58:26 -0400
commit367b1bf2ceb320e8862c6014b7138fa126268161 (patch)
tree7eaa2057a0fa5012de6f09efea9a3c9ed09fbb85 /arch
parent033ab460d0930e4f7d365279f1c39d914b5e88a4 (diff)
downloadu-boot-367b1bf2ceb320e8862c6014b7138fa126268161.tar.gz
u-boot-367b1bf2ceb320e8862c6014b7138fa126268161.tar.bz2
u-boot-367b1bf2ceb320e8862c6014b7138fa126268161.zip
arm: dts: iot2050: Optionally embed OTP programming data into image
Use external blob otpcmd.bin to replace the 0xff filled OTP programming command block to create a firmware image that provisions the OTP on first boot. This otpcmd.bin is generated from the customer keys using steps described in the meta-iot2050 integration layer for the device. Based on original patch by Baocheng Su. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/dts/k3-am65-iot2050-boot-image.dtsi9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/dts/k3-am65-iot2050-boot-image.dtsi b/arch/arm/dts/k3-am65-iot2050-boot-image.dtsi
index 9082a79a03..a2fc8bbc12 100644
--- a/arch/arm/dts/k3-am65-iot2050-boot-image.dtsi
+++ b/arch/arm/dts/k3-am65-iot2050-boot-image.dtsi
@@ -111,10 +111,19 @@
};
/* OTP update command block */
+#if CONFIG_IOT2050_EMBED_OTPCMD
+ blob-ext@0x6c0000 {
+ offset = <0x6c0000>;
+ size = <0x010000>;
+ filename = "otpcmd.bin";
+ missing-msg = "iot2050-otpcmd";
+ };
+#else
fill@0x6c0000 {
offset = <0x6c0000>;
size = <0x010000>;
fill-byte = [ff];
};
+#endif
};
};