arm: K3: common: Allow for early console functionality
[oweals/u-boot.git] / arch / arm / mach-k3 / Kconfig
index de1c1cc73f377e5406b83fc5f1e66260815672fc..5583241943f34e9c1aa5c41452d71bb4acee500a 100644 (file)
@@ -66,6 +66,27 @@ config SYS_K3_BOOT_CORE_ID
        int
        default 16
 
+config K3_EARLY_CONS
+       bool "Activate to allow for an early console during SPL"
+       depends on SPL
+       help
+         Turn this option on to enable an early console functionality in SPL
+         before the main console is being brought up. This can be useful in
+         situations where the main console is dependent on System Firmware
+         (SYSFW) being up and running, which is usually not the case during
+         the very early stages of boot. Using this early console functionality
+         will allow for an alternate serial port to be used to support things
+         like UART-based boot and early diagnostic messages until the main
+         console is ready to get activated.
+
+config K3_EARLY_CONS_IDX
+       depends on K3_EARLY_CONS
+       int "Index of serial device to use for SPL early console"
+       default 1
+       help
+         Use this option to set the index of the serial device to be used
+         for the early console during SPL execution.
+
 config K3_LOAD_SYSFW
        bool
        depends on SPL