[PATCH 1/3] ARM: at91: microchip-ksz9477-evb: support PBL console

Ahmad Fatoum a.fatoum at pengutronix.de
Wed Jun 2 03:25:22 PDT 2021


First stage PBL does FAT file system accesses, so there is more that
could go wrong compared with second stage PBL that just does extraction.

Enable PBL console to get some error messages out if things don't work
out.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 arch/arm/boards/microchip-ksz9477-evb/lowlevel.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boards/microchip-ksz9477-evb/lowlevel.c b/arch/arm/boards/microchip-ksz9477-evb/lowlevel.c
index 93ae4819750c..7c5a69af05de 100644
--- a/arch/arm/boards/microchip-ksz9477-evb/lowlevel.c
+++ b/arch/arm/boards/microchip-ksz9477-evb/lowlevel.c
@@ -41,8 +41,9 @@ SAMA5_ENTRY_FUNCTION(start_sama5d3_xplained_ung8071_xload_mmc, r4)
 
 	sama5d3_udelay_init(MASTER_CLOCK);
 	sama5d3_xplained_ddrconf();
-	if (IS_ENABLED(CONFIG_DEBUG_LL))
-		dbgu_init();
+
+	dbgu_init();
+	pbl_set_putc(at91_dbgu_putc, IOMEM(AT91_BASE_DBGU1));
 
 	sama5d3_atmci_start_image(0, MASTER_CLOCK, 0);
 }
-- 
2.29.2




More information about the barebox mailing list