aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/earlycon.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/serial/earlycon.c')
-rw-r--r--drivers/tty/serial/earlycon.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/tty/serial/earlycon.c b/drivers/tty/serial/earlycon.c
index 6dc471e30e79..f09636083426 100644
--- a/drivers/tty/serial/earlycon.c
+++ b/drivers/tty/serial/earlycon.c
@@ -72,6 +72,7 @@ static int __init parse_options(struct earlycon_device *device, char *options)
72 72
73 switch (port->iotype) { 73 switch (port->iotype) {
74 case UPIO_MEM32: 74 case UPIO_MEM32:
75 case UPIO_MEM32BE:
75 port->regshift = 2; /* fall-through */ 76 port->regshift = 2; /* fall-through */
76 case UPIO_MEM: 77 case UPIO_MEM:
77 port->mapbase = addr; 78 port->mapbase = addr;
@@ -90,9 +91,11 @@ static int __init parse_options(struct earlycon_device *device, char *options)
90 strlcpy(device->options, options, length); 91 strlcpy(device->options, options, length);
91 } 92 }
92 93
93 if (port->iotype == UPIO_MEM || port->iotype == UPIO_MEM32) 94 if (port->iotype == UPIO_MEM || port->iotype == UPIO_MEM32 ||
95 port->iotype == UPIO_MEM32BE)
94 pr_info("Early serial console at MMIO%s 0x%llx (options '%s')\n", 96 pr_info("Early serial console at MMIO%s 0x%llx (options '%s')\n",
95 (port->iotype == UPIO_MEM32) ? "32" : "", 97 (port->iotype == UPIO_MEM) ? "" :
98 (port->iotype == UPIO_MEM32) ? "32" : "32be",
96 (unsigned long long)port->mapbase, 99 (unsigned long long)port->mapbase,
97 device->options); 100 device->options);
98 else 101 else
@@ -133,7 +136,7 @@ static int __init register_earlycon(char *buf, const struct earlycon_id *match)
133 * 136 *
134 * Registers the earlycon console matching the earlycon specified 137 * Registers the earlycon console matching the earlycon specified
135 * in the param string @buf. Acceptable param strings are of the form 138 * in the param string @buf. Acceptable param strings are of the form
136 * <name>,io|mmio|mmio32,<addr>,<options> 139 * <name>,io|mmio|mmio32|mmio32be,<addr>,<options>
137 * <name>,0x<addr>,<options> 140 * <name>,0x<addr>,<options>
138 * <name>,<options> 141 * <name>,<options>
139 * <name> 142 * <name>