From: "Andreas Bießmann" <andreas.devel@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/4] spi: atmel: add WDRBT bit to avoid receive overrun
Date: Tue, 21 Aug 2012 13:11:18 +0200 [thread overview]
Message-ID: <50336CD6.8030703@gmail.com> (raw)
In-Reply-To: <1345444344-31340-2-git-send-email-voice.shen@atmel.com>
Dear Bo Shen,
On 20.08.2012 08:32, Bo Shen wrote:
> The atmel at91sam9x5 series spi has feature to avoid receive overren
>
> Using the patch to enable it
>
> Signed-off-by: Bo Shen <voice.shen@atmel.com>
Acked-by: Andreas Bie?mann <andreas.devel@googlemail.com>
Mike, will you take this patch?
Best regards
Andreas Bie?mann
> ---
> drivers/spi/atmel_spi.c | 3 +++
> drivers/spi/atmel_spi.h | 1 +
> 2 files changed, 4 insertions(+)
>
> diff --git a/drivers/spi/atmel_spi.c b/drivers/spi/atmel_spi.c
> index 83ef8e8..c7a51f7 100644
> --- a/drivers/spi/atmel_spi.c
> +++ b/drivers/spi/atmel_spi.c
> @@ -92,6 +92,9 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,
> as->slave.cs = cs;
> as->regs = regs;
> as->mr = ATMEL_SPI_MR_MSTR | ATMEL_SPI_MR_MODFDIS
> +#if defined(CONFIG_AT91SAM9X5)
> + | ATMEL_SPI_MR_WDRBT
> +#endif
> | ATMEL_SPI_MR_PCS(~(1 << cs) & 0xf);
> spi_writel(as, CSR(cs), csrx);
>
> diff --git a/drivers/spi/atmel_spi.h b/drivers/spi/atmel_spi.h
> index 8b69a6d..057de9a 100644
> --- a/drivers/spi/atmel_spi.h
> +++ b/drivers/spi/atmel_spi.h
> @@ -26,6 +26,7 @@
> #define ATMEL_SPI_MR_PCSDEC (1 << 2)
> #define ATMEL_SPI_MR_FDIV (1 << 3)
> #define ATMEL_SPI_MR_MODFDIS (1 << 4)
> +#define ATMEL_SPI_MR_WDRBT (1 << 5)
> #define ATMEL_SPI_MR_LLB (1 << 7)
> #define ATMEL_SPI_MR_PCS(x) (((x) & 15) << 16)
> #define ATMEL_SPI_MR_DLYBCS(x) ((x) << 24)
>
next prev parent reply other threads:[~2012-08-21 11:11 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-20 6:32 [U-Boot] [PATCH 1/4] spiflash: at25: using common spi flash operation Bo Shen
2012-08-20 6:32 ` [U-Boot] [PATCH 2/4] spi: atmel: add WDRBT bit to avoid receive overrun Bo Shen
2012-08-21 11:11 ` Andreas Bießmann [this message]
2012-08-21 18:56 ` Mike Frysinger
2012-08-24 9:46 ` Bo Shen
2012-08-27 10:46 ` Andreas Bießmann
2012-08-20 6:32 ` [U-Boot] [PATCH 3/4] atmel: at91sam9x5: fix name error for spi Bo Shen
2012-08-21 11:04 ` Andreas Bießmann
2012-08-20 6:32 ` [U-Boot] [PATCH 4/4] atmel: at91sam9x5: add spi flash boot support Bo Shen
2012-08-21 11:26 ` [U-Boot] [PATCH 1/4] spiflash: at25: using common spi flash operation Andreas Bießmann
2012-08-21 18:55 ` Mike Frysinger
2012-08-24 9:51 ` Bo Shen
2012-08-22 1:33 ` Bo Shen
2012-08-27 11:29 ` Andreas Bießmann
2012-09-17 17:03 ` Andreas Bießmann
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=50336CD6.8030703@gmail.com \
--to=andreas.devel@googlemail.com \
--cc=u-boot@lists.denx.de \
/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