ofwfb: Check for /chosen/stdout-path in addition to /chosen/stdout

Some platforms use /chosen/stdout-path as the property containing the path to
the stdout node, not /chosen/stdout.
This commit is contained in:
Justin Hibbits 2018-07-19 20:22:46 +00:00
parent 0053ed28ff
commit 1dbd2e8c7c

View File

@ -102,6 +102,10 @@ ofwfb_probe(struct vt_device *vd)
if (OF_getprop(chosen, "stdout", &stdout, sizeof(stdout)) ==
sizeof(stdout))
node = OF_instance_to_package(stdout);
if (node == -1)
if (OF_getprop(chosen, "stdout-path", &stdout, sizeof(stdout)) ==
sizeof(stdout))
node = OF_instance_to_package(stdout);
if (node == -1) {
/*
* The "/chosen/stdout" does not exist try