diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2009-04-06 22:00:32 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-07 11:31:04 -0400 |
commit | 7513e006c64fbe2f43aef2139c8c1f2b1a9cb6b9 (patch) | |
tree | 44817ca1febd0599ea8bff50825fc58568f4e7c3 /arch/blackfin/include | |
parent | 8cf5858c51f88208fe56b195251ab4f21265386c (diff) |
Blackfin SPI Driver: Fix erroneous SPI Clock divisor calculation
Fix erroneous SPI Clock divisor calculation. Make sure SPI_BAUD is always
>= 2. Writing a value of 0 or 1 to the SPI_BAUD register disables the
serial clock.
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/blackfin/include')
-rw-r--r-- | arch/blackfin/include/asm/bfin5xx_spi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/blackfin/include/asm/bfin5xx_spi.h b/arch/blackfin/include/asm/bfin5xx_spi.h index 0292d58f9362..ea2d24af9542 100644 --- a/arch/blackfin/include/asm/bfin5xx_spi.h +++ b/arch/blackfin/include/asm/bfin5xx_spi.h | |||
@@ -11,6 +11,8 @@ | |||
11 | #ifndef _SPI_CHANNEL_H_ | 11 | #ifndef _SPI_CHANNEL_H_ |
12 | #define _SPI_CHANNEL_H_ | 12 | #define _SPI_CHANNEL_H_ |
13 | 13 | ||
14 | #define MIN_SPI_BAUD_VAL 2 | ||
15 | |||
14 | #define SPI_READ 0 | 16 | #define SPI_READ 0 |
15 | #define SPI_WRITE 1 | 17 | #define SPI_WRITE 1 |
16 | 18 | ||