0001-feat-fvp-add-stdout-path.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. From 8c30a0c7fe0162de0618b26fb34cc91ea582e5f7 Mon Sep 17 00:00:00 2001
  2. From: Debbie Martin <Debbie.Martin@arm.com>
  3. Date: Wed, 27 Sep 2023 18:05:26 +0100
  4. Subject: [PATCH] feat(fvp): add stdout-path
  5. Add stdout-path to the fvp-base devicetree to be passed to BL33 (U-Boot)
  6. and then to the Linux kernel to be compliant to Arm SystemReady IR:
  7. https://developer.arm.com/documentation/DUI1101/2-0/
  8. Configure-U-Boot-for-SystemReady/Adapt-the-Devicetree
  9. This has been tested by booting fvp-base to Linux and ensuring the
  10. console is accessible.
  11. Change-Id: Iae98630f18f735ce344c1158f41f358c2a49eeb6
  12. Signed-off-by: Diego Sueiro <Diego.Sueiro@arm.com>
  13. Signed-off-by: Debbie Martin <Debbie.Martin@arm.com>
  14. Upstream: https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/+/8c30a0c7fe0162de0618b26fb34cc91ea582e5f7%5E!/
  15. Signed-off-by: Vincent Stehlé <vincent.stehle@arm.com>
  16. ---
  17. fdts/fvp-base-psci-common.dtsi | 7 ++++---
  18. 1 file changed, 4 insertions(+), 3 deletions(-)
  19. diff --git a/fdts/fvp-base-psci-common.dtsi b/fdts/fvp-base-psci-common.dtsi
  20. index 79cf37d3b0..ff31ba7616 100644
  21. --- a/fdts/fvp-base-psci-common.dtsi
  22. +++ b/fdts/fvp-base-psci-common.dtsi
  23. @@ -27,11 +27,12 @@
  24. #address-cells = <2>;
  25. #size-cells = <2>;
  26. + chosen {
  27. + stdout-path = "serial0:115200n8";
  28. #if (ENABLE_RME == 1)
  29. - chosen { bootargs = "console=ttyAMA0 earlycon=pl011,0x1c090000 root=/dev/vda ip=on";};
  30. -#else
  31. - chosen {};
  32. + bootargs = "console=ttyAMA0 earlycon=pl011,0x1c090000 root=/dev/vda ip=on";
  33. #endif
  34. + };
  35. aliases {
  36. serial0 = &v2m_serial0;
  37. --
  38. 2.43.0