u-boot/arch/arm/mach-apple
Mark Kettenis a609353e82 arm: apple: Point stdout-path to framebuffer when keyboard present
Unless you have a spare Apple Silicon machine, getting access to
the serial port on Apple Silicon machines requires special
hardware. Given that most machines come with a built-in screen
the framebuffer is likely to be the most convenient output device
for most users. While U-Boot will output to both serial and
framebuffer, OSes might not. Therefore set stdout-path to point
at /chosen/framebuffer when a keyboard is connected to the machine.

This behaviour can be overridden by setting the "stdout" variable
in the U-Boot environment. I addition to that keep the serial
console as the default when running under the m1n1 hypervisor.
The m1n1 hypervisor virtualizes the serial port such that it
can be easily accessed from any other machine with a USB port.

Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
Reviewed-by: Janne Grunau <j@jannau.net>
Tested-by: Janne Grunau <j@jannau.net>
2022-04-22 15:56:39 -04:00
..
board.c arm: apple: Point stdout-path to framebuffer when keyboard present 2022-04-22 15:56:39 -04:00
Kconfig arm: apple: Change SoC name from "m1" into "apple" 2022-02-10 16:44:23 -05:00
lowlevel_init.S arm: apple: Add initial support for Apple's M1 SoC 2021-10-31 08:46:44 -04:00
Makefile arm: apple: Add RTKit support 2022-02-10 16:44:23 -05:00
rtkit.c arm: apple: Increase RTKit timeout 2022-03-28 08:22:17 -04:00