Skip to contentSkip to conversation

msm: add single-wire serial bus interface (SSBI) driver

PATCH Superseded Kenneth Heitke 2 participants 4 messages Mar 2, 2011 – Mar 8, 2011 Arm Qualcomm mailing list

lore
Share & tools
lore
#0 lore raw

v3 cover msm: add single-wire serial bus interface (SSBI) driver

Patch history
v3: move SSBI driver to drivers/platform/msm
v2: move SSBI driver to drivers//msm from arch/arm/mach-msm

Kenneth Heitke (2):
MAINTAINERS: Add drivers/platform/msm to MSM subsystem
platform-drivers: msm: add single-wire serial bus interface (SSBI)
driver

 MAINTAINERS                   |    1 +
 drivers/platform/Kconfig      |    3 +
 drivers/platform/Makefile     |    1 +
 drivers/platform/msm/Kconfig  |   13 ++
 drivers/platform/msm/Makefile |    4 +
 drivers/platform/msm/ssbi.c   |  396 +++++++++++++++++++++++++++++++++++++++++
 include/linux/msm_ssbi.h      |   49 +++++
 7 files changed, 467 insertions(+), 0 deletions(-)
 create mode 100644 drivers/platform/msm/Kconfig
 create mode 100644 drivers/platform/msm/Makefile
 create mode 100644 drivers/platform/msm/ssbi.c
 create mode 100644 include/linux/msm_ssbi.h
Signature · 4 lines
1.7.3.3

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

PATCH v3 1/2 MAINTAINERS: Add drivers/platform/msm to MSM subsystem

---
 MAINTAINERS |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
MAINTAINERS +1 -0
index 59869e4..696cb18 100644
@@ -904,6 +904,7 @@ F:	drivers/mmc/host/msm_sdcc.c
 F:	drivers/mmc/host/msm_sdcc.h
 F:	drivers/tty/serial/msm_serial.h
 F:	drivers/tty/serial/msm_serial.c
+F:	drivers/platform/msm/
 T:	git git://codeaurora.org/quic/kernel/davidb/linux-msm.git
 S:	Maintained
 
Signature · 4 lines
1.7.3.3

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

PATCH v3 2/2 platform-drivers: msm: add single-wire serial bus interface (SSBI) driver

In reply to Kenneth Heitke

SSBI is the Qualcomm single-wire serial bus interface used to connect the MSM devices to the PMIC and other devices.

Since SSBI only supports a single slave, the driver gets the name of the slave device passed in from the board file through the master device's platform data.

SSBI registers pretty early (postcore), so that the PMIC can come up before the board init. This is useful if the board init requires the use of gpios that are connected through the PMIC.

Based on a patch by Dima Zavin <[email protected]> that can be found at:
http://android.git.kernel.org/?p=kernel/msm.git;a=commitdiff;h=eb060bac4

This patch adds PMIC Arbiter support for the MSM8660. The PMIC Arbiter is a hardware wrapper around the SSBI 2.0 controller that is designed to overcome concurrency issues and security limitations. A controller_type field is added to the platform data to specify the type of the SSBI controller (1.0, 2.0, or PMIC Arbiter).

---
 drivers/platform/Kconfig      |    3 +
 drivers/platform/Makefile     |    1 +
 drivers/platform/msm/Kconfig  |   13 ++
 drivers/platform/msm/Makefile |    4 +
 drivers/platform/msm/ssbi.c   |  396 +++++++++++++++++++++++++++++++++++++++++
 include/linux/msm_ssbi.h      |   49 +++++
 6 files changed, 466 insertions(+), 0 deletions(-)
 create mode 100644 drivers/platform/msm/Kconfig
 create mode 100644 drivers/platform/msm/Makefile
 create mode 100644 drivers/platform/msm/ssbi.c
 create mode 100644 include/linux/msm_ssbi.h
drivers/platform/Kconfig +3 -0
index 8390dca..17b5df5 100644
@@ -1,3 +1,6 @@
 if X86
 source "drivers/platform/x86/Kconfig"
 endif
+if ARCH_MSM
+source "drivers/platform/msm/Kconfig"
+endif
drivers/platform/Makefile +1 -0
index 782953a..58c62bd 100644
@@ -3,3 +3,4 @@
 #
 
 obj-$(CONFIG_X86)		+= x86/
+obj-$(CONFIG_ARCH_MSM)		+= msm/
drivers/platform/msm/Kconfig new file +13 -0
new file mode 100644
index 0000000..413bb65
@@ -0,0 +1,13 @@
+menu "Qualcomm MSM specific device drivers"
+	depends on ARCH_MSM
+
+config MSM_SSBI
+	bool "Qualcomm Single-wire Serial Bus Interface (SSBI)"
+	help
+	  If you say yes to this option, support will be included for the
+	  built-in SSBI interface on Qualcomm MSM family processors.
+
+	  This is required for communicating with Qualcomm PMICs and
+	  other devices that have the SSBI interface.
+
+endmenu
drivers/platform/msm/Makefile new file +4 -0
new file mode 100644
index 0000000..ea8c1e4
@@ -0,0 +1,4 @@
+#
+# Makefile for the MSM specific device drivers.
+#
+obj-$(CONFIG_MSM_SSBI) += ssbi.o
drivers/platform/msm/ssbi.c new file +396 -0

396 lines not on this page · raw message

include/linux/msm_ssbi.h new file +49 -0

49 lines not on this page · raw message

Signature · 4 lines
1.7.3.3

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

Re: [PATCH v3 1/2] MAINTAINERS: Add drivers/platform/msm to MSM subsystem

In reply to Kenneth Heitke
Quoted 9 lines · Kenneth Heitke
---
 MAINTAINERS |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
MAINTAINERS +0 -0
index 59869e4..696cb18 100644

MAINTAINERS F: drivers/mmc/host/msm_sdcc.c · line 909

Quoted 6 lines
MAINTAINERS +1 -0
@@ -904,6 +904,7 @@ F:	drivers/mmc/host/msm_sdcc.c
 F:	drivers/mmc/host/msm_sdcc.h
 F:	drivers/tty/serial/msm_serial.h
 F:	drivers/tty/serial/msm_serial.c
+F:	drivers/platform/msm/
 T:	git git://codeaurora.org/quic/kernel/davidb/linux-msm.git
 S:	Maintained

This should be sent 'To' someone who will be able to bring this patch into the tree. Probably one of Andrew Morton or Greg KH should be made the 'To' and this resent. At a minimum, I would need one of them to sign the patch off.

Thanks,
David

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