diff options
author | Reinhard Meyer <u-boot@emk-elektronik.de> | 2011-07-25 21:56:04 +0000 |
---|---|---|
committer | U-Boot <uboot@aari01-12.(none)> | 2011-08-03 13:00:56 +0200 |
commit | b38d634b39341039d3839c5b9d020564a4d88b4b (patch) | |
tree | dd600802b276c04d1c674e718ef6cc84b1fdf28e /arch/arm | |
parent | c23e5e7edadd37e604cd52e4c3c8f6bd60908051 (diff) | |
download | u-boot-imx-b38d634b39341039d3839c5b9d020564a4d88b4b.zip u-boot-imx-b38d634b39341039d3839c5b9d020564a4d88b4b.tar.gz u-boot-imx-b38d634b39341039d3839c5b9d020564a4d88b4b.tar.bz2 |
AT91: fix mistake in at91sam9260_devices.c(spi1_hw_init)
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>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | 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); |