On Tue, 9 Apr 2013 17:53:22 +0100
Mark Brown wrote:
> On Mon, Apr 01, 2013 at 05:29:21PM +0200, Anatolij Gustschin wrote:
> > Currently the driver only uses one internal chip select.
> > Add support for gpio chip selects configured by cs-gpios
> > DT binding.
>
> App
There is no need to disable transmitter/receiver after each loop
iteration and re-enable it for next loop iteration. Enable the
transmitter/receiver before xfer loop starts and disable it when
the whole transfer is done.
Signed-off-by: Anatolij Gustschin
---
drivers/spi/spi-mpc512x-psc.c | 10
Currently the driver only uses one internal chip select.
Add support for gpio chip selects configured by cs-gpios
DT binding.
Signed-off-by: Anatolij Gustschin
---
v2 resend:
- no changes, resend to Mark
v2:
- do not parse GPIO chip selects manually
drivers/spi/spi-mpc512x-psc.c | 31
On Mon, 1 Apr 2013 14:30:17 +0100
Mark Brown wrote:
> On Wed, Mar 13, 2013 at 02:57:43PM +0100, Anatolij Gustschin wrote:
> > Some SPI slave devices require asserted chip select signal across
> > multiple transfer segments of an SPI message. Currently the driver
>
> Th
s sent in a previous transfer segment because the
transaction could be considered aborted (SS was de-asserted
before reading the response).
Reported-by: Gerhard Sittig
Signed-off-by: Anatolij Gustschin
---
drivers/spi/spi-mpc512x-psc.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Currently the driver only uses one internal chip select.
Add support for gpio chip selects configured by cs-gpios
DT binding.
Signed-off-by: Anatolij Gustschin
---
v2:
- do not parse GPIO chip selects manually
drivers/spi/spi-mpc512x-psc.c | 31 +--
1 files
On Tue, 05 Feb 2013 14:18:46 +
Grant Likely wrote:
> On Mon, 14 Jan 2013 21:27:01 +0100, Anatolij Gustschin wrote:
> > Currently the driver only uses one internal chip select. Add support
> > for gpio chip selects configured by gpio specifiers in the device tree.
> &g
Currently the driver only uses one internal chip select. Add support
for gpio chip selects configured by gpio specifiers in the device tree.
Signed-off-by: Anatolij Gustschin
---
drivers/spi/spi-mpc512x-psc.c | 80 ++---
1 files changed, 75 insertions(+), 5
The driver should setup mode bits it supports, otherwise
adding an SPI device might fail even if the driver supports
the requested SPI mode.
Signed-off-by: Anatolij Gustschin
---
drivers/spi/spi-mpc512x-psc.c |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/spi
Remove deprecated cell-index property and use spi alias to
obtain the SPI PSC number used for SPI bus id.
Signed-off-by: Anatolij Gustschin
---
v2:
- use of_alias_get_id() to get spi bus number
drivers/spi/spi-mpc512x-psc.c | 16 +---
1 files changed, 5 insertions(+), 11
Remove deprecated cell-index property and use spi alias to
obtain the SPI PSC number used for SPI bus id.
Signed-off-by: Anatolij Gustschin
---
v2:
- use of_alias_get_id() to get spi bus number
drivers/spi/spi-mpc512x-psc.c | 16 +---
1 files changed, 5 insertions(+), 11
Hi Grant,
On Fri, 21 Dec 2012 19:29:14 +
Grant Likely wrote:
> On Fri, 21 Dec 2012 14:48:38 +, Grant Likely
> wrote:
> > On Fri, Dec 21, 2012 at 2:43 PM, Anatolij Gustschin wrote:
> > > Use unique PSCx register base offset to obtain the
> > > SPI
Use unique PSCx register base offset to obtain the
SPI PSC number used for SPI bus id.
Signed-off-by: Anatolij Gustschin
---
drivers/spi/spi-mpc512x-psc.c | 17 +++--
1 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/drivers/spi/spi-mpc512x-psc.c b/drivers/spi/spi
't specify needed bits_per_word for ongoing transfer.
Signed-off-by: Anatolij Gustschin
---
drivers/spi/spi_bitbang.c |6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/spi/spi_bitbang.c b/drivers/spi/spi_bitbang.c
index 14a63f6..bb38c83 100644
--- a/drivers/sp
Move of_register_spi_devices() call from drivers to
spi_register_master(). Also change the function to use
the struct device_node pointer from master spi device
instead of passing it as function argument.
Signed-off-by: Anatolij Gustschin
Cc: David Brownell
Cc: Grant Likely
Cc: devicetree-disc
still call of_register_spi_devices()
directly. Maybe these drivers should be reworked later.
Signed-off-by: Anatolij Gustschin
Cc: David Brownell
Cc: Grant Likely
Cc: devicetree-disc...@lists.ozlabs.org
---
drivers/of/of_spi.c |7 +++
drivers/spi/mpc52xx_psc_spi.c |9
Signed-off-by: Anatolij Gustschin
---
drivers/spi/mpc512x_psc_spi.c | 10 +-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/drivers/spi/mpc512x_psc_spi.c b/drivers/spi/mpc512x_psc_spi.c
index c8d69fc..39e5faf 100644
--- a/drivers/spi/mpc512x_psc_spi.c
+++ b/drivers/spi
Change annotations from __init/__exit to __devinit/__devexit
to get rid of section mismatch warning.
Signed-off-by: Anatolij Gustschin
---
drivers/spi/mpc512x_psc_spi.c | 16
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/spi/mpc512x_psc_spi.c b
Fixes build errors caused by the:
- OF device_node pointer being moved into struct device
- removal of the match_table field from struct of_platform_driver
Signed-off-by: Anatolij Gustschin
Cc: Grant Likely
---
drivers/spi/mpc512x_psc_spi.c | 12 ++--
1 files changed, 6 insertions
Signed-off-by: John Rigby
Signed-off-by: Anatolij Gustschin
---
arch/powerpc/include/asm/mpc52xx_psc.h |1 +
drivers/spi/Kconfig|7 +
drivers/spi/Makefile |1 +
drivers/spi/mpc512x_psc_spi.c | 576
4
now done
by this patch.
Signed-off-by: Anatolij Gustschin
---
arch/powerpc/platforms/512x/mpc512x_shared.c | 78 ++
drivers/serial/mpc52xx_uart.c| 69 ---
2 files changed, 78 insertions(+), 69 deletions(-)
diff --git a/arch/powerpc
Anatolij Gustschin (2):
powerpc/mpc5121: move PSC FIFO memory init to platform code
spi: Add SPI master driver for MPC5121 PSC
arch/powerpc/include/asm/mpc52xx_psc.h |1 +
arch/powerpc/platforms/512x/mpc512x_shared.c | 78
drivers/serial/mpc52xx_uart.c| 69
22 matches
Mail list logo