public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] AT91: fix mistake in at91sam9260_devices.c(spi1_hw_init)
@ 2011-07-26  7:56 Reinhard Meyer
  2011-07-26  8:07 ` Reinhard Meyer
  0 siblings, 1 reply; 2+ messages in thread
From: Reinhard Meyer @ 2011-07-26  7:56 UTC (permalink / raw)
  To: u-boot

Bits 0..3 in cs_mask = CS0..CS3 in SPI mode require it to be peripheral
Bits 4..7 in cs_mask = CS0..CS3 in GPIO mode require it to be output

Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
---
 arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c b/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
index 6bdc75c..65b8d51 100644
--- a/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
+++ b/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
@@ -138,7 +138,7 @@ void at91_spi1_hw_init(unsigned long cs_mask)
 		at91_set_b_periph(AT91_PIO_PORTC, 4, 1);
 	}
 	if (cs_mask & (1 << 3)) {
-		at91_set_pio_output(AT91_PIO_PORTC, 3, 1);
+		at91_set_b_periph(AT91_PIO_PORTC, 3, 1);
 	}
 	if (cs_mask & (1 << 4)) {
 		at91_set_pio_output(AT91_PIO_PORTB, 3, 1);
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] AT91: fix mistake in at91sam9260_devices.c(spi1_hw_init)
  2011-07-26  7:56 [U-Boot] [PATCH] AT91: fix mistake in at91sam9260_devices.c(spi1_hw_init) Reinhard Meyer
@ 2011-07-26  8:07 ` Reinhard Meyer
  0 siblings, 0 replies; 2+ messages in thread
From: Reinhard Meyer @ 2011-07-26  8:07 UTC (permalink / raw)
  To: u-boot

Dear Reinhard Meyer,
> Bits 0..3 in cs_mask = CS0..CS3 in SPI mode require it to be peripheral
> Bits 4..7 in cs_mask = CS0..CS3 in GPIO mode require it to be output
> 
> Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
> ---
>  arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
Applied to u-boot-atmel/master.
Thanks, Reinhard

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-26  8:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-26  7:56 [U-Boot] [PATCH] AT91: fix mistake in at91sam9260_devices.c(spi1_hw_init) Reinhard Meyer
2011-07-26  8:07 ` Reinhard Meyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox