]> git.baikalelectronics.ru Git - kernel.git/commit
tty: goldfish: Implement support for kernel 'earlycon' parameter
authorMiodrag Dinic <miodrag.dinic@imgtec.com>
Tue, 29 Aug 2017 13:53:20 +0000 (15:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Aug 2017 16:58:45 +0000 (18:58 +0200)
commit66c201cc351765c667f4d16a3b0bb5f15acbd74a
tree322458246a1fa3351a5d4331e1102bccbffe5aad
parent0620ec4a2fde5abc2dd0e4da8ba1cda4583e4957
tty: goldfish: Implement support for kernel 'earlycon' parameter

Add early console functionality to the Goldfish tty driver.

When 'earlycon' kernel command line parameter is used with no options,
the early console is determined by the 'stdout-path' property in device
tree's 'chosen' node. This is illustrated in the following device tree
source example:

Device tree example:

    chosen {
        stdout-path = "/goldfish_tty@1f004000";
    };

    goldfish_tty@1f004000 {
        interrupts = <0xc>;
        reg = <0x1f004000 0x0 0x1000>;
        compatible = "google,goldfish-tty";
    };

Signed-off-by: Miodrag Dinic <miodrag.dinic@imgtec.com>
Signed-off-by: Goran Ferenc <goran.ferenc@imgtec.com>
Signed-off-by: Aleksandar Markovic <aleksandar.markovic@imgtec.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/Kconfig
drivers/tty/goldfish.c