]> git.ipfire.org Git - people/ms/u-boot.git/commit
sunxi: Set the /chosen/stdout-path fdt property for sunxi boards
authorHans de Goede <hdegoede@redhat.com>
Fri, 20 Feb 2015 15:55:12 +0000 (16:55 +0100)
committerHans de Goede <hdegoede@redhat.com>
Sat, 21 Feb 2015 15:53:40 +0000 (16:53 +0100)
commitf3133962f469a8b6b9ba237ba670f0ca7c88a02e
tree97f41fbe24a56294c78af6669c117906357bc607
parentf388a26d1132dae7ffe123cd7bd9adf78d4f7b57
sunxi: Set the /chosen/stdout-path fdt property for sunxi boards

While discussing with some people how to get the Linux kernel to do the
right thing wrt sending output to both the serial console and the
hdmi out / lcd screen when booting on ARM devices, Grant Likely pointed out
that there already is a solution for this.

All we need to do is set the /chosen/stdout-path fdt property, and if no
console= arguments were specified on the kernel commandline the kernel
will honor this and add this device as a console (next to the primary
video output on hdmi).

And u-boot already has support for setting this, all we need to do is
define OF_STDOUT_PATH and then everything will just work ootb, without
people needing to meddle with adding console= arguments in extlinux.conf .

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
Reviewed-by: Tom Rini <trini@ti.com>
include/configs/sunxi-common.h