Skip to contentSkip to conversation

tty: serial: msm: Add earlycon support

PATCH New Stephen Boyd 1 participant 1 message Sep 16, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 tty: serial: msm: Add earlycon support

Add support for DT based and command line based early console on platforms with the msm serial hardware.

---

Changes since v1:
* Add kernel commandline support

 Documentation/kernel-parameters.txt | 12 ++++++
 drivers/tty/serial/Kconfig          |  1 +
 drivers/tty/serial/msm_serial.c     | 74 +++++++++++++++++++++++++++++++------
 3 files changed, 75 insertions(+), 12 deletions(-)
Documentation/kernel-parameters.txt +12 -0
index 5ae8608ca9f5..22302931e9d4 100644
@@ -936,6 +936,18 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
 			must already be setup and configured. Options are not
 			yet supported.
 
+		msm_serial,<addr>
+			Start an early, polled-mode console on an msm serial
+			port at the specified address. The serial port
+			must already be setup and configured. Options are not
+			yet supported.
+
+		msm_serial_dm,<addr>
+			Start an early, polled-mode console on an msm serial
+			dm port at the specified address. The serial port
+			must already be setup and configured. Options are not
+			yet supported.
+
 		smh	Use ARM semihosting calls for early console.
 
 	earlyprintk=	[X86,SH,BLACKFIN,ARM,M68k]
drivers/tty/serial/Kconfig +1 -0
index 81f6ee7d4223..d609d605f712 100644
@@ -1070,6 +1070,7 @@ config SERIAL_MSM_CONSOLE
 	bool "MSM serial console support"
 	depends on SERIAL_MSM=y
 	select SERIAL_CORE_CONSOLE
+	select SERIAL_EARLYCON
 
 config SERIAL_MSM_HS
 	tristate "MSM UART High Speed: Serial Driver"
drivers/tty/serial/msm_serial.c +62 -12

110 lines not on this page · raw message

Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation