Vos 3 devis alarme sont disponibles
Si vous rencontrez des problèmes pour afficher ce message, cliquez ici easy alarme Le Gardien de votre [IMG] tranquillité Augmentation de 19% des 1 cambriolage toutes [IMG] cambriolages les minutes [IMG][IMG] [IMG] Avec Easy Alarme oubliez les cambriolages. Partez [IMG] [IMG] tranquille ! 100 % SECURITÉ FORMULE TOUT COMPRIS INTERVENTION à DOMICILE Protection des biens et des Système d'alarme Capteur d'images personnes Service Personnalisé Contrôle à distance Alerte à la police [IMG]Mon Devis Gratuit [IMG] *Ventes Privées **Achetez maintenant Pour vous désabonner de cette newsletter et ne plus recevoir de message de MONNIER Frères, cliquez ici -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ spi-devel-general mailing list spi-devel-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spi-devel-general
RE: [PATCH v3] SPI: add CSR SiRFprimaII SPI controller driver
> -Original Message- > From: Jean-Christophe PLAGNIOL-VILLARD [mailto:plagn...@jcrosoft.com] > Sent: Thursday, February 09, 2012 12:27 AM > To: Barry Song > Cc: grant.lik...@secretlab.ca; spi-devel-general@lists.sourceforge.net; Barry > Song; linux-arm-ker...@lists.infradead.org; DL-SHA-WorkGroupLinux; Zhiwu > Song > Subject: Re: [PATCH v3] SPI: add CSR SiRFprimaII SPI controller driver > > + > > +static int spi_sirfsoc_setup(struct spi_device *spi) > > +{ > > + struct spi_bitbang *bitbang; > > + struct sirfsoc_spi *sspi; > > + > > + if (!spi->max_speed_hz) > > + return -EINVAL; > > + > > + sspi = spi_master_get_devdata(spi->master); > > + bitbang = &sspi->bitbang; > why do you need this? Jean, thanks! it is redundant code which misses cleanup. I'd like to wait whether Grant has more feedback and fix those together with this one. > > + > > + if (!spi->bits_per_word) > > + spi->bits_per_word = 8; > > + > > + return spi_sirfsoc_setup_transfer(spi, NULL); > > +} > > Best Regards, > J. -barry Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ spi-devel-general mailing list spi-devel-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spi-devel-general
Re: [git pull] SPI changes for v3.3-rc2
On Mon, Feb 6, 2012 at 3:34 PM, Linus Torvalds wrote: > On Sun, Feb 5, 2012 at 10:28 PM, Grant Likely > wrote: >> >> A couple of minor SPI fixes. Description in signed tag. Please pull. > > No can do. I get "already up-to-date". > > It looks like the 'for-linus" tag is your *previous* one - you either > forgot to push, or you pushed without forcing an over-write and didn't > notice that git told you that it's not going to update a > non-fast-forward write or something. > > Hmm? It looks like the branch got pushed, but not the tag. Fixed now. Below is the updated pull request. > Btw, exactly because problems sometimes happen, I do want to see the > description written out in the email too. The whole reason I want to > see diffstats and shortlogs is exactly because "it is correct in the > git tree" is not useful - the email should be a *confirmation* that > what I pulled from the git tree was really what you meant. Okay. Will do. g. --- SPI bug fixes for v3.3-rc2 Minor SPI device driver changes. A rename of the pch_spi_pcidev symbol that merely eliminates a modpost warning, and a Kconfig change to allow the Samsung spi driver to build on EXYNOS. The following changes since commit e862f2e4693f287669e84971c778bf071bd0526b: Merge tag 'sound-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound (2012-02-08 14:56:39 -0800) are available in the git repository at: git://git.secretlab.ca/git/linux-2.6 spi-for-linus Danny Kukawka (1): spi-topcliff-pch: rename pch_spi_pcidev to pch_spi_pcidev_driver Sylwester Nawrocki (1): spi: Add spi-s3c64xx driver dependency on ARCH_EXYNOS4 drivers/spi/Kconfig|2 +- drivers/spi/spi-topcliff-pch.c |6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ spi-devel-general mailing list spi-devel-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spi-devel-general
Re: [PATCH v3] SPI: add CSR SiRFprimaII SPI controller driver
+ > +static int spi_sirfsoc_setup(struct spi_device *spi) > +{ > + struct spi_bitbang *bitbang; > + struct sirfsoc_spi *sspi; > + > + if (!spi->max_speed_hz) > + return -EINVAL; > + > + sspi = spi_master_get_devdata(spi->master); > + bitbang = &sspi->bitbang; why do you need this? > + > + if (!spi->bits_per_word) > + spi->bits_per_word = 8; > + > + return spi_sirfsoc_setup_transfer(spi, NULL); > +} Best Regards, J. -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ spi-devel-general mailing list spi-devel-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spi-devel-general
[PATCH] trivial: spi-pl022.c: fix a wrong kerneldoc comment
Signed-off-by: Federico Vaga --- drivers/spi/spi-pl022.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c index 2f9cb43..286572d 100644 --- a/drivers/spi/spi-pl022.c +++ b/drivers/spi/spi-pl022.c @@ -1495,7 +1495,7 @@ out: /** * pump_messages - Workqueue function which processes spi message queue - * @data: pointer to private data of SSP driver + * @work: pointer to the pump_messages work structure within pl022 structure * * This function checks if there is any spi message in the queue that * needs processing and delegate control to appropriate function -- 1.7.7.6 -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ spi-devel-general mailing list spi-devel-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spi-devel-general
[PATCH v3] SPI: add CSR SiRFprimaII SPI controller driver
From: Zhiwu Song CSR SiRFprimaII has two SPIs (SPI0 and SPI1). Features: * Master and slave modes * 8-/12-/16-/32-bit data unit * 256 bytes receive data FIFO and 256 bytes transmit data FIFO * Multi-unit frame * Configurable SPI_EN (chip select pin) active state * Configurable SPI_CLK polarity * Configurable SPI_CLK phase * Configurable MSB/LSB first Signed-off-by: Zhiwu Song Signed-off-by: Barry Song --- -v3: add missed SIRFSOC_SPI_ prefix before macros for registers; move writel/readl into tx/rx word functions; fix some other coding styles Grant pointed out; add missed device tree binding file. Documentation/devicetree/bindings/spi/spi_sirf.txt | 14 + drivers/spi/Kconfig|7 + drivers/spi/Makefile |1 + drivers/spi/spi-sirf.c | 665 include/linux/spi/spi-sirf.h | 27 + 5 files changed, 714 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/spi/spi_sirf.txt create mode 100644 drivers/spi/spi-sirf.c create mode 100644 include/linux/spi/spi-sirf.h diff --git a/Documentation/devicetree/bindings/spi/spi_sirf.txt b/Documentation/devicetree/bindings/spi/spi_sirf.txt new file mode 100644 index 000..f7a58aa --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spi_sirf.txt @@ -0,0 +1,14 @@ +* CSR SiRFprimaII Serial Peripheral Interface + +Required properties: +- compatible : Should be "sirf,prima2-spi" +- reg : Offset and length of the register set for the device +- interrupts : Should contain SPI interrupt + +Example: + +spi0: spi@b00d { + compatible = "sirf,prima2-spi"; + reg = <0xb00d 0x1>; + interrupts = <15>; +}; diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 3f9a47e..8311cc2 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -324,6 +324,13 @@ config SPI_SH_SCI help SPI driver for SuperH SCI blocks. +config SPI_SIRF +tristate "CSR SiRFprimaII SPI controller" + depends on ARCH_PRIMA2 + select SPI_BITBANG + help + SPI driver for CSR SiRFprimaII SoCs + config SPI_STMP3XXX tristate "Freescale STMP37xx/378x SPI/SSP controller" depends on ARCH_STMP3XXX && SPI_MASTER diff --git a/drivers/spi/Makefile b/drivers/spi/Makefile index 61c3261..e919846 100644 --- a/drivers/spi/Makefile +++ b/drivers/spi/Makefile @@ -51,6 +51,7 @@ obj-$(CONFIG_SPI_S3C64XX) += spi-s3c64xx.o obj-$(CONFIG_SPI_SH) += spi-sh.o obj-$(CONFIG_SPI_SH_MSIOF) += spi-sh-msiof.o obj-$(CONFIG_SPI_SH_SCI) += spi-sh-sci.o +obj-$(CONFIG_SPI_SIRF) += spi-sirf.o obj-$(CONFIG_SPI_STMP3XXX) += spi-stmp.o obj-$(CONFIG_SPI_TEGRA)+= spi-tegra.o obj-$(CONFIG_SPI_TI_SSP) += spi-ti-ssp.o diff --git a/drivers/spi/spi-sirf.c b/drivers/spi/spi-sirf.c new file mode 100644 index 000..6f326cb --- /dev/null +++ b/drivers/spi/spi-sirf.c @@ -0,0 +1,665 @@ +/* + * SPI bus driver for CSR SiRFprimaII + * + * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company. + * + * Licensed under GPLv2 or later. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#define DRIVER_NAME "sirfsoc_spi" + +#define SIRFSOC_SPI_CTRL 0x +#define SIRFSOC_SPI_CMD0x0004 +#define SIRFSOC_SPI_TX_RX_EN 0x0008 +#define SIRFSOC_SPI_INT_EN 0x000C +#define SIRFSOC_SPI_INT_STATUS 0x0010 +#define SIRFSOC_SPI_TX_DMA_IO_CTRL 0x0100 +#define SIRFSOC_SPI_TX_DMA_IO_LEN 0x0104 +#define SIRFSOC_SPI_TXFIFO_CTRL0x0108 +#define SIRFSOC_SPI_TXFIFO_LEVEL_CHK 0x010C +#define SIRFSOC_SPI_TXFIFO_OP 0x0110 +#define SIRFSOC_SPI_TXFIFO_STATUS 0x0114 +#define SIRFSOC_SPI_TXFIFO_DATA0x0118 +#define SIRFSOC_SPI_RX_DMA_IO_CTRL 0x0120 +#define SIRFSOC_SPI_RX_DMA_IO_LEN 0x0124 +#define SIRFSOC_SPI_RXFIFO_CTRL0x0128 +#define SIRFSOC_SPI_RXFIFO_LEVEL_CHK 0x012C +#define SIRFSOC_SPI_RXFIFO_OP 0x0130 +#define SIRFSOC_SPI_RXFIFO_STATUS 0x0134 +#define SIRFSOC_SPI_RXFIFO_DATA0x0138 +#define SIRFSOC_SPI_DUMMY_DELAY_CTL0x0144 + +/* SPI CTRL register defines */ +#define SIRFSOC_SPI_SLV_MODE BIT(16) +#define SIRFSOC_SPI_CMD_MODE BIT(17) +#define SIRFSOC_SPI_CS_IO_OUT BIT(18) +#define SIRFSOC_SPI_CS_IO_MODE BIT(19) +#define SIRFSOC_SPI_CLK_IDLE_STAT BIT(20) +#define SIRFSOC_SPI_CS_IDLE_STAT BIT(21) +#define SIRFSOC_SPI_TRAN_MSB BIT(22) +#define SIRFSOC_SPI_DRV_POS_EDGE BIT(23) +#define SIRFSOC_SPI_CS_HOLD_TIME BIT(24) +#define SIRFSOC_SPI_CLK_SAMPLE_MODEBIT(25) +#define SIRFSOC_SPI_TRAN_DAT_FORMAT_8 (0 << 26)
RE: [PATCH] spi: Add the use of DMA config operation
Hi, Sylwester Nawrocki wrote: > Hi, > > On 02/08/2012 07:52 AM, Kyoungil Kim wrote: > > Config operation is separated from request operation in DMA common > > operation. > > Because spi driver can change the DMA config for every message. > > So this patch is using the separated DMA config operation. > > > > Signed-off-by: Boojin Kim > > Signed-off-by: Kyoungil Kim > > --- > > drivers/spi/spi-s3c64xx.c | 35 +-- > > 1 files changed, 21 insertions(+), 14 deletions(-) > > I'm getting following compilation errors with this patch: > > CC drivers/spi/spi-s3c64xx.o > drivers/spi/spi-s3c64xx.c: In function 'prepare_dma': > drivers/spi/spi-s3c64xx.c:268: error: storage size of 'info' isn't known > drivers/spi/spi-s3c64xx.c:269: error: storage size of 'config' isn't known > drivers/spi/spi-s3c64xx.c:278: error: 'struct samsung_dma_ops' has no member > named 'config' > drivers/spi/spi-s3c64xx.c:286: error: 'struct samsung_dma_ops' has no member > named 'config' > drivers/spi/spi-s3c64xx.c:269: warning: unused variable 'config' > drivers/spi/spi-s3c64xx.c:268: warning: unused variable 'info' > drivers/spi/spi-s3c64xx.c: In function 'acquire_dma': > drivers/spi/spi-s3c64xx.c:302: error: storage size of 'req' isn't known > drivers/spi/spi-s3c64xx.c:302: warning: unused variable 'req' > > Which tree has it been created off of ? > > It seems there are some patches not yet in mainline that it depends on. I'm sorry, I thought that the dependant patch was already in mainline. I'll re-send it with dependant patch. Thank you. Best Regards. -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ spi-devel-general mailing list spi-devel-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spi-devel-general
[PATCH RESEND] intel_mid_ssp_spi: Moorestown and Medfield SPI for SSP devices
From: Mathieu SOULARD This driver is a fusion of various internal drivers into a single driver for the SPI slave/master on the Intel Moorestown and Medfield SSP devices. Signed-off-by: Mathieu SOULARD [Queueing and runtime pm added] Signed-off-by: Kristen Carlson Accardi [Ported to the -next tree DMA engine] Signed-off-by: Alan Cox --- drivers/spi/Kconfig |8 drivers/spi/Makefile|2 drivers/spi/spi-intel-mid-ssp.c | 1426 +++ drivers/spi/spi-intel-mid-ssp.h | 308 4 files changed, 1743 insertions(+), 1 deletions(-) create mode 100644 drivers/spi/spi-intel-mid-ssp.c create mode 100644 drivers/spi/spi-intel-mid-ssp.h diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 8293658..90b7ef6 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -163,6 +163,14 @@ config SPI_IMX This enables using the Freescale i.MX SPI controllers in master mode. +config SPI_INTEL_MID_SSP + tristate "SSP SPI controller driver for Intel MID platforms (EXPERIMENTAL)" + depends on SPI_MASTER && INTEL_MID_DMAC && EXPERIMENTAL + help + This is the unified SSP SPI slave controller driver for the Intel + MID platforms, handling Moorestown & Medfield, master & slave + clock mode. + config SPI_LM70_LLP tristate "Parallel port adapter for LM70 eval board (DEVELOPMENT)" depends on PARPORT && EXPERIMENTAL diff --git a/drivers/spi/Makefile b/drivers/spi/Makefile index 61c3261..e81757a 100644 --- a/drivers/spi/Makefile +++ b/drivers/spi/Makefile @@ -58,4 +58,4 @@ obj-$(CONFIG_SPI_TLE62X0) += spi-tle62x0.o obj-$(CONFIG_SPI_TOPCLIFF_PCH) += spi-topcliff-pch.o obj-$(CONFIG_SPI_TXX9) += spi-txx9.o obj-$(CONFIG_SPI_XILINX) += spi-xilinx.o - +obj-$(CONFIG_SPI_INTEL_MID_SSP)+= spi-intel-mid-ssp.o diff --git a/drivers/spi/spi-intel-mid-ssp.c b/drivers/spi/spi-intel-mid-ssp.c new file mode 100644 index 000..77bff9f --- /dev/null +++ b/drivers/spi/spi-intel-mid-ssp.c @@ -0,0 +1,1426 @@ +/* + * This driver supports Bulverde SSP core used on Intel MID platforms + * It supports the SSP of Medfield platforms and handles clock + * slave & master modes. + * + * Copyright (c) 2010, Intel Corporation. + * Ken Mills + * Sylvain Centelles + * Mathieu SOULARD + * Kristen Carlson Accardi + * Alan Cox + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. + * + */ + +/* + * Note: + * + * Supports DMA and non-interrupt polled transfers. + * + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include "spi-intel-mid-ssp.h" + +#define DRIVER_NAME "spi-intel-mid-ssp" + +MODULE_AUTHOR("Ken Mills"); +MODULE_DESCRIPTION("Bulverde SSP core SPI contoller"); +MODULE_LICENSE("GPL"); + +static const struct pci_device_id pci_ids[]; + +#ifdef DUMP_RX +static void dump_trailer(const struct device *dev, char *buf, int len, int sz) +{ + int tlen1 = (len < sz ? len : sz); + int tlen2 = ((len - sz) > sz) ? sz : (len - sz); + unsigned char *p; + static char msg[MAX_SPI_TRANSFER_SIZE]; + + memset(msg, '\0', sizeof(msg)); + p = buf; + while (p < buf + tlen1) + sprintf(msg, "%s%02x", msg, (unsigned int)*p++); + + if (tlen2 > 0) { + sprintf(msg, "%s .", msg); + p = (buf+len) - tlen2; + while (p < buf + len) + sprintf(msg, "%s%02x", msg, (unsigned int)*p++); + } + + dev_info(dev, "DUMP: %p[0:%d ... %d:%d]:%s", buf, tlen1 - 1, + len-tlen2, len - 1, msg); +} +#endif + +static inline u32 is_tx_fifo_empty(struct ssp_driver_context *drv_context) +{ + u32 sssr; + sssr = read_SSSR(drv_context->ioaddr); + if ((sssr & SSSR_TFL_MASK) || (sssr & SSSR_TNF) == 0) + return 0; + else + return 1; +} + +static inline u32 is_rx_fifo_empty(struct ssp_driver_context *drv_context) +{ + return ((read_SSSR(drv_context->ioaddr) & SSSR_RNE) == 0); +} + +static inline void disable_interface(struct ssp_driver_context *drv_context) +{ + void *reg = drv_context->ioaddr; + write_SSCR0(read_SSCR0(reg) & ~SSCR0_SSE, reg); +} + +stati
Re: [PATCH] spi: Add the use of DMA config operation
Hi, On 02/08/2012 07:52 AM, Kyoungil Kim wrote: > Config operation is separated from request operation in DMA common operation. > Because spi driver can change the DMA config for every message. > So this patch is using the separated DMA config operation. > > Signed-off-by: Boojin Kim > Signed-off-by: Kyoungil Kim > --- > drivers/spi/spi-s3c64xx.c | 35 +-- > 1 files changed, 21 insertions(+), 14 deletions(-) I'm getting following compilation errors with this patch: CC drivers/spi/spi-s3c64xx.o drivers/spi/spi-s3c64xx.c: In function ‘prepare_dma’: drivers/spi/spi-s3c64xx.c:268: error: storage size of ‘info’ isn’t known drivers/spi/spi-s3c64xx.c:269: error: storage size of ‘config’ isn’t known drivers/spi/spi-s3c64xx.c:278: error: ‘struct samsung_dma_ops’ has no member named ‘config’ drivers/spi/spi-s3c64xx.c:286: error: ‘struct samsung_dma_ops’ has no member named ‘config’ drivers/spi/spi-s3c64xx.c:269: warning: unused variable ‘config’ drivers/spi/spi-s3c64xx.c:268: warning: unused variable ‘info’ drivers/spi/spi-s3c64xx.c: In function ‘acquire_dma’: drivers/spi/spi-s3c64xx.c:302: error: storage size of ‘req’ isn’t known drivers/spi/spi-s3c64xx.c:302: warning: unused variable ‘req’ Which tree has it been created off of ? It seems there are some patches not yet in mainline that it depends on. Thanks, -- Sylwester Nawrocki Samsung Poland R&D Center -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ spi-devel-general mailing list spi-devel-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spi-devel-general