Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142546
b: refs/heads/master
c: 7513e00
h: refs/heads/master
v: v3
  • Loading branch information
Michael Hennerich authored and Linus Torvalds committed Apr 7, 2009
1 parent c5a4167 commit 78da714
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8cf5858c51f88208fe56b195251ab4f21265386c
refs/heads/master: 7513e006c64fbe2f43aef2139c8c1f2b1a9cb6b9
2 changes: 2 additions & 0 deletions trunk/arch/blackfin/include/asm/bfin5xx_spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#ifndef _SPI_CHANNEL_H_
#define _SPI_CHANNEL_H_

#define MIN_SPI_BAUD_VAL 2

#define SPI_READ 0
#define SPI_WRITE 1

Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/spi/spi_bfin5xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ static u16 hz_to_spi_baud(u32 speed_hz)
if ((sclk % (2 * speed_hz)) > 0)
spi_baud++;

if (spi_baud < MIN_SPI_BAUD_VAL)
spi_baud = MIN_SPI_BAUD_VAL;

return spi_baud;
}

Expand Down

0 comments on commit 78da714

Please sign in to comment.