All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jarkko Nikula <jarkko.nikula-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
To: "qipeng.zha" <qipeng.zha-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
	linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
	fei.yang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org,
	huiquan.zhong-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org,
	jason.cj.chen-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org,
	qi.zheng-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org,
	Andy Shevchenko
	<andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
Subject: Re: [PATCH] spi/pxa2xx: add support for Intel Broxton
Date: Tue, 21 Apr 2015 16:44:49 +0300	[thread overview]
Message-ID: <55365451.4010000@linux.intel.com> (raw)
In-Reply-To: <1429573714-68828-1-git-send-email-qipeng.zha-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>

Hi Huiquan and Qipeng

On 04/21/2015 02:48 AM, qipeng.zha wrote:
> From: Huiquan Zhong <huiquan.zhong-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
>
> Broxton have 3 SPI ports, PCI ids are 0x0ac2, 0x0ac4, 0x0ac6.
> The LPSS SSP private register offset is 0x200. iDMA register offset
> is 0x800.
>
> Every Broxton SPI Controller have integrated one dedicated DMA IP.
> Two DMA channels mapping:
> 	channel[0] -> SPI Tx,
> 	channel[1] -> SPI Rx.
>
> BXT SSP SPI does not support DMA burst mode operation. Only iDMA
> M-Size setting equal to 1(Single) is supported for all DMA
> peripherial transfers from the SSP to the DMA and from the DMA
> to the SSP, otherwise RX data corruption will happen.
>
> Use a new parameter(.chip_select) for BXT dedicated cs control.
>
> Signed-off-by: Huiquan Zhong <huiquan.zhong-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> ---
>   drivers/spi/spi-pxa2xx-pci.c   | 103 ++++++++++++++++++++++++++++++++++++++++
>   drivers/spi/spi-pxa2xx.c       | 105 +++++++++++++++++++++++++++++++++++++++++
>   drivers/spi/spi-pxa2xx.h       |   1 +
>   include/linux/pxa2xx_ssp.h     |   3 ++
>   include/linux/spi/pxa2xx_spi.h |   2 +
>   5 files changed, 214 insertions(+)
>
Can we hold this a bit and join our efforts? We have been cooking a 
support for Skylake recently with a plan to extend to Broxton later.

Major difference to patch here is that we plan to use common code that 
probes PCI and ACPI enumerated individual devices (I2C, SPI and UART) 
and their integrated DMA (which doesn't have its own PCI or ACPI ID and 
not all devices have it) and adds them as platform devices.

That module will take care of reset and clock management so for instance 
this SPI code becomes a bit shorter and avoids similar code in I2C and 
UART too. Our MFD loader has been posted recently but is not merged yet:

https://lkml.org/lkml/2015/3/31/258

-- 
Jarkko
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2015-04-21 13:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-20 23:48 [PATCH] spi/pxa2xx: add support for Intel Broxton qipeng.zha
     [not found] ` <1429573714-68828-1-git-send-email-qipeng.zha-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-04-21 13:44   ` Jarkko Nikula [this message]
     [not found]     ` <55365451.4010000-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2015-04-22  2:59       ` Zhong, Huiquan

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=55365451.4010000@linux.intel.com \
    --to=jarkko.nikula-vuqaysv1563yd54fqh9/ca@public.gmane.org \
    --cc=andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org \
    --cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=fei.yang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=huiquan.zhong-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=jason.cj.chen-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=qi.zheng-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=qipeng.zha-ral2JQCrhuEAvxtiuMwx3w@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.