Linux on ARM/arm64 will infer from the presence of a /chosen/stdout-path DT property or of a SPCR ACPI table that the primary console is the serial port, even if a graphical console is available as well. So let's introduce a driver that allows the user to set a preference between graphical and serial if both are available. If the preference is set to 'Graphical', and any GOP protocol instances have been installed by the time the ReadyToBoot event is signalled, remove the DT property and/or the SPCR table entirely. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
28 lines
1.2 KiB
Plaintext
28 lines
1.2 KiB
Plaintext
/** @file
|
|
*
|
|
* Copyright (c) 2017, Linaro, Ltd. All rights reserved.
|
|
*
|
|
* This program and the accompanying materials are licensed and made available
|
|
* under the terms and conditions of the BSD License which accompanies this
|
|
* distribution. The full text of the license may be found at
|
|
* http://opensource.org/licenses/bsd-license.php
|
|
*
|
|
* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
*
|
|
**/
|
|
|
|
#langdef en-US "English"
|
|
|
|
#string STR_FORM_SET_TITLE #language en-US "Console Preference Selection"
|
|
#string STR_FORM_SET_TITLE_HELP #language en-US "Press <Enter> to choose between graphical and serial console."
|
|
|
|
#string STR_MAIN_FORM_TITLE #language en-US "Console Preference Selection"
|
|
#string STR_NULL_STRING #language en-US ""
|
|
|
|
#string STR_CONSOLE_PREF_SELECT_PROMPT #language en-US "Preferred console"
|
|
#string STR_CONSOLE_PREF_SELECT_HELP #language en-US "Select the preferred console if both graphical and serial are available."
|
|
|
|
#string STR_CONSOLE_PREF_GRAPHICAL #language en-US "Graphical"
|
|
#string STR_CONSOLE_PREF_SERIAL #language en-US "Serial"
|