From: Daniel Walker <dwalker@codeaurora.org>
To: Kenneth Heitke <kheitke@codeaurora.org>
Cc: davidb@codeaurora.org, dima@android.com, tsoni@codeaurora.org,
linux-arm-msm@vger.kernel.org,
"open list:ARM PORT" <linux-arm-kernel@lists.infradead.org>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] msm: add single-wire serial bus interface (SSBI) driver
Date: Thu, 17 Feb 2011 16:37:12 -0800 [thread overview]
Message-ID: <1297989432.9680.50.camel@c-dwalke-linux.qualcomm.com> (raw)
In-Reply-To: <1297989299-27320-1-git-send-email-kheitke@codeaurora.org>
On Thu, 2011-02-17 at 17:34 -0700, Kenneth Heitke wrote:
> 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 <dima@android.com> 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).
>
> Signed-off-by: Kenneth Heitke <kheitke@codeaurora.org>
> ---
> arch/arm/mach-msm/Kconfig | 16 ++
> arch/arm/mach-msm/Makefile | 1 +
> arch/arm/mach-msm/include/mach/msm_ssbi.h | 38 +++
> arch/arm/mach-msm/ssbi.c | 376 +++++++++++++++++++++++++++++
> 4 files changed, 431 insertions(+), 0 deletions(-)
> create mode 100644 arch/arm/mach-msm/include/mach/msm_ssbi.h
> create mode 100644 arch/arm/mach-msm/ssbi.c
>
> diff --git a/arch/arm/mach-msm/Kconfig b/arch/arm/mach-msm/Kconfig
> index 997c5bd..f35c3d9 100644
> --- a/arch/arm/mach-msm/Kconfig
> +++ b/arch/arm/mach-msm/Kconfig
> @@ -24,6 +24,7 @@ config ARCH_MSM7X30
> select MSM_GPIOMUX
> select MSM_PROC_COMM
> select HAS_MSM_DEBUG_UART_PHYS
> + select HAS_MSM_SSBI
>
> config ARCH_QSD8X50
> bool "QSD8X50"
> @@ -46,6 +47,7 @@ config ARCH_MSM8X60
> select MSM_V2_TLMM
> select MSM_GPIOMUX
> select MSM_SCM if SMP
> + select HAS_MSM_SSBI
>
> config ARCH_MSM8960
> bool "MSM8960"
> @@ -56,6 +58,7 @@ config ARCH_MSM8960
> select MSM_V2_TLMM
> select MSM_GPIOMUX
> select MSM_SCM if SMP
> + select HAS_MSM_SSBI
>
> endchoice
>
> @@ -190,6 +193,16 @@ choice
> endchoice
> endif
>
> +config MSM_SSBI
> + bool "Qualcomm Single-wire Serial Bus Interface (SSBI)"
> + depends on HAS_MSM_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.
> +
Can you put this in drivers/ this doesn't looks like it need to be here.
Daniel
--
Sent by a consultant of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
next prev parent reply other threads:[~2011-02-18 0:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-18 0:34 [PATCH] msm: add single-wire serial bus interface (SSBI) driver Kenneth Heitke
2011-02-18 0:37 ` Daniel Walker [this message]
[not found] ` <4D5DC289.1090004@codeaurora.org>
2011-02-18 18:46 ` Daniel Walker
2011-02-22 20:47 ` Dima Zavin
2011-02-23 0:10 ` Daniel Walker
2011-02-23 0:17 ` David Brown
2011-02-23 0:39 ` Daniel Walker
2011-02-23 2:37 ` Nicolas Pitre
2011-02-23 3:05 ` David Brown
2011-02-23 3:21 ` Nicolas Pitre
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1297989432.9680.50.camel@c-dwalke-linux.qualcomm.com \
--to=dwalker@codeaurora.org \
--cc=davidb@codeaurora.org \
--cc=dima@android.com \
--cc=kheitke@codeaurora.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tsoni@codeaurora.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox