* [PATCH 1/2] ARM: socfpga: Configure console from device tree
@ 2015-08-26 8:55 Sascha Hauer
2015-08-26 8:55 ` [PATCH 2/2] serial: ns16550: Set linux_console_name Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Sascha Hauer @ 2015-08-26 8:55 UTC (permalink / raw)
To: Barebox List
Add the missing stdout-path properties for the socfpga boards and
enable CONFIG_CONSOLE_ACTIVATE_NONE.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
arch/arm/configs/socfpga_defconfig | 1 +
arch/arm/dts/socfpga_cyclone5_sockit.dts | 1 +
arch/arm/dts/socfpga_cyclone5_socrates.dts | 1 +
3 files changed, 3 insertions(+)
diff --git a/arch/arm/configs/socfpga_defconfig b/arch/arm/configs/socfpga_defconfig
index ec369ae..414aa23 100644
--- a/arch/arm/configs/socfpga_defconfig
+++ b/arch/arm/configs/socfpga_defconfig
@@ -14,6 +14,7 @@ CONFIG_CMDLINE_EDITING=y
CONFIG_AUTO_COMPLETE=y
CONFIG_MENU=y
# CONFIG_TIMESTAMP is not set
+CONFIG_CONSOLE_ACTIVATE_NONE=y
CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW=y
CONFIG_LONGHELP=y
CONFIG_CMD_IOMEM=y
diff --git a/arch/arm/dts/socfpga_cyclone5_sockit.dts b/arch/arm/dts/socfpga_cyclone5_sockit.dts
index 1c3fb4d..d763117 100644
--- a/arch/arm/dts/socfpga_cyclone5_sockit.dts
+++ b/arch/arm/dts/socfpga_cyclone5_sockit.dts
@@ -22,6 +22,7 @@
compatible = "terasic,sockit", "altr,socfpga";
chosen {
+ stdout-path = &uart0;
};
memory {
diff --git a/arch/arm/dts/socfpga_cyclone5_socrates.dts b/arch/arm/dts/socfpga_cyclone5_socrates.dts
index 125ad1b..a1a7c63 100644
--- a/arch/arm/dts/socfpga_cyclone5_socrates.dts
+++ b/arch/arm/dts/socfpga_cyclone5_socrates.dts
@@ -22,6 +22,7 @@
compatible = "ebv,socrates", "altr,socfpga";
chosen {
+ stdout-path = &uart0;
};
memory {
--
2.4.6
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 2/2] serial: ns16550: Set linux_console_name
2015-08-26 8:55 [PATCH 1/2] ARM: socfpga: Configure console from device tree Sascha Hauer
@ 2015-08-26 8:55 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2015-08-26 8:55 UTC (permalink / raw)
To: Barebox List
The regular ns16450/ns16550 devices get the console name "ttyS" under
Linux. Add this to the driver data.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
drivers/serial/serial_ns16550.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/serial/serial_ns16550.c b/drivers/serial/serial_ns16550.c
index c186ad4..1af226a 100644
--- a/drivers/serial/serial_ns16550.c
+++ b/drivers/serial/serial_ns16550.c
@@ -297,10 +297,12 @@ static void ns16550_probe_dt(struct device_d *dev, struct ns16550_priv *priv)
static struct ns16550_drvdata ns16450_drvdata = {
.init_port = ns16450_serial_init_port,
+ .linux_console_name = "ttyS",
};
static struct ns16550_drvdata ns16550_drvdata = {
.init_port = ns16550_serial_init_port,
+ .linux_console_name = "ttyS",
};
static __maybe_unused struct ns16550_drvdata omap_drvdata = {
--
2.4.6
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-08-26 8:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-26 8:55 [PATCH 1/2] ARM: socfpga: Configure console from device tree Sascha Hauer
2015-08-26 8:55 ` [PATCH 2/2] serial: ns16550: Set linux_console_name Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox