2
1

0001-stm32mp157a-avenger96.dts-enable-hash-device-to-unbr.patch 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. From 336dc301e02d64507447f82020ce7a349797bef3 Mon Sep 17 00:00:00 2001
  2. From: Peter Korsgaard <peter@korsgaard.com>
  3. Date: Sun, 5 Nov 2023 14:59:16 +0100
  4. Subject: [PATCH] stm32mp157a-avenger96.dts: enable hash device to unbreak boot
  5. issue
  6. The avenger96 board was forgotten when authentication support was added with
  7. commit 4bdb1a7a6a1325343 (stm32mp1: add authentication support for
  8. stm32image), causing a panic when stm32mp_init_auth() is called, so fix it
  9. similar to how it was done for the STM32MP157C-ED1 board with:
  10. commit b37b52ef8bc05bfd8dcca992d4ba84cd7c5d23bb
  11. Author: Yann Gautier <yann.gautier@st.com>
  12. Date: Tue Oct 13 18:05:06 2020 +0200
  13. fdts: add missing hash node in STM32MP157C-ED1 board DT
  14. Without this node, the board fails to boot and panics in the function
  15. stm32mp_init_auth().
  16. Change-Id: Ia54924410dac2a8c94dd6e45d7e93977fe7d87e2
  17. Signed-off-by: Yann Gautier <yann.gautier@st.com>
  18. Upstream: N/A - Upstream reworked authentication to skip it for MP157A
  19. variant since v2.7, see "feat(st): disable authentication based on
  20. part_number"
  21. (https://github.com/ARM-software/arm-trusted-firmware/commit/49abdfd8cececb91a4bc7e7b29a30c09dce461c7)
  22. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
  23. ---
  24. fdts/stm32mp157a-avenger96.dts | 4 ++++
  25. 1 file changed, 4 insertions(+)
  26. diff --git a/fdts/stm32mp157a-avenger96.dts b/fdts/stm32mp157a-avenger96.dts
  27. index b967736e4..76edecb83 100644
  28. --- a/fdts/stm32mp157a-avenger96.dts
  29. +++ b/fdts/stm32mp157a-avenger96.dts
  30. @@ -271,6 +271,10 @@
  31. };
  32. };
  33. +&hash1 {
  34. + status = "okay";
  35. +};
  36. +
  37. &rng1 {
  38. status = "okay";
  39. };
  40. --
  41. 2.39.2