]> git.sur5r.net Git - u-boot/blobdiff - common/board_f.c
spi: fsl_qspi: Fix issues on arm64
[u-boot] / common / board_f.c
index 622093a3915af1326d30bc4de5022f19b1582961..109025a68d656d2222b7619c5cecaf4948758c1c 100644 (file)
@@ -1095,6 +1095,13 @@ void board_init_f_r(void)
        if (initcall_run_list(init_sequence_f_r))
                hang();
 
+       /*
+        * The pre-relocation drivers may be using memory that has now gone
+        * away. Mark serial as unavailable - this will fall back to the debug
+        * UART if available.
+        */
+       gd->flags &= ~GD_FLG_SERIAL_READY;
+
        /*
         * U-Boot has been copied into SDRAM, the BSS has been cleared etc.
         * Transfer execution from Flash to RAM by calculating the address