Skip to contentSkip to conversation

msm: smd: Add smd_tty driver

PATCH New Niranjana Vishwanathapura 1 participant 1 message Dec 15, 2010

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

PATCH 1/1 msm: smd: Add smd_tty driver

Add smd_tty driver which provides tty device interface to 'DS' and 'GPSNMEA' streaming SMD ports.

---
 drivers/char/Kconfig       |    8 ++
 drivers/char/Makefile      |    2 +
 drivers/char/msm_smd_tty.c |  226 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 236 insertions(+), 0 deletions(-)
 create mode 100644 drivers/char/msm_smd_tty.c
drivers/char/Kconfig +8 -0
index 43d3395..3d53383 100644
@@ -1144,5 +1144,13 @@ config RAMOOPS
 	  This enables panic and oops messages to be logged to a circular
 	  buffer in RAM where it can be read back at some later point.
 
+config MSM_SMD_TTY
+	bool "Enable tty device interface for some SMD ports"
+	default n
+	depends on MSM_SMD
+	help
+	  Enables userspace clients to read and write to some streaming SMD
+	  ports via tty device interface for MSM chipset.
+
 endmenu
 
drivers/char/Makefile +2 -0
index ba53ec9..78e3c15 100644
@@ -98,3 +98,5 @@ obj-$(CONFIG_RAMOOPS)		+= ramoops.o
 
 obj-$(CONFIG_JS_RTC)		+= js-rtc.o
 js-rtc-y = rtc.o
+
+obj-$(CONFIG_MSM_SMD_TTY)	+= msm_smd_tty.o
drivers/char/msm_smd_tty.c new file +226 -0

226 lines not on this page · raw message

Signature · 4 lines
1.5.6.3

Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.