pseries: Populate "/chosen/linux,stdout-path" in the FDT

There is a device tree property "/chosen/linux,stdout-path" which indicates
which device should be used as stdout - ie. "the console".

Currently we don't specify anything, which means both firmware and Linux
choose something arbitrarily. Use the routine we added in the last patch
to pick a default vty and specify it as stdout.

Currently SLOF doesn't use the property, but we are hoping to update it
to do so.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
David Gibson 2011-12-13 15:24:34 +11:00 committed by Alexander Graf
parent 98331f8ad6
commit 68f3a94c64
4 changed files with 40 additions and 1 deletions

View file

@ -149,7 +149,7 @@ static VIOsPAPRDeviceInfo spapr_vty = {
},
};
static VIOsPAPRDevice *spapr_vty_get_default(VIOsPAPRBus *bus)
VIOsPAPRDevice *spapr_vty_get_default(VIOsPAPRBus *bus)
{
VIOsPAPRDevice *sdev, *selected;
DeviceState *iter;