Updates for BSP v5.5.0
[AGL/meta-agl-refhw.git] / meta-agl-refhw-gen3 / recipes-bsp / arm-trusted-firmware / files / 0001-rcar_gen3-plat-Do-not-panic-on-unrecognized-boards.patch
1 From 61ffc5ec5ad1755d5d22b4386f8ad027bb59e1d5 Mon Sep 17 00:00:00 2001
2 From: Scott Murray <scott.murray@konsulko.com>
3 Date: Tue, 5 Oct 2021 12:10:23 -0400
4 Subject: [PATCH] rcar_gen3: plat: Do not panic on unrecognized boards
5
6 Replace the panic in bl2_populate_compatible_string with just putting
7 "unknown" into the compatible string for the FDT.  This allows us to
8 boot on the AGL reference hardware where the board type seems
9 unavailable.
10
11 Upstream-Status: Inappropriate [board specific usecase]
12
13 Signed-off-by: Scott Murray <scott.murray@konsulko.com>
14 ---
15  plat/renesas/rcar/bl2_plat_setup.c | 5 +++--
16  1 file changed, 3 insertions(+), 2 deletions(-)
17
18 diff --git a/plat/renesas/rcar/bl2_plat_setup.c b/plat/renesas/rcar/bl2_plat_setup.c
19 index bf077c483..7fcc75a13 100644
20 --- a/plat/renesas/rcar/bl2_plat_setup.c
21 +++ b/plat/renesas/rcar/bl2_plat_setup.c
22 @@ -489,8 +489,9 @@ static void bl2_populate_compatible_string(void *dt)
23                                          "renesas,draak");
24                 break;
25         default:
26 -               NOTICE("BL2: Cannot set compatible string, board unsupported\n");
27 -               panic();
28 +               ret = fdt_setprop_string(dt, 0, "compatible",
29 +                                        "renesas,unknown");
30 +               break;
31         }
32  
33         if (ret < 0) {
34 -- 
35 2.31.1
36