Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 60787
b: refs/heads/master
c: 698ca47
h: refs/heads/master
i:
  60785: dd9f7b3
  60783: 221bdc7
v: v3
  • Loading branch information
Clifford Wolf authored and Linus Torvalds committed Jul 17, 2007
1 parent e2eabb9 commit a399370
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 78961a5740374a8143f8fe120300f2ed160dd276
refs/heads/master: 698ca47e8dba93f4b001b06b4c7037b09ac6eb09
6 changes: 6 additions & 0 deletions trunk/drivers/spi/spi_mpc83xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@ static void mpc83xx_spi_chipselect(struct spi_device *spi, int value)

if ((mpc83xx_spi->sysclk / spi->max_speed_hz) >= 64) {
u8 pm = mpc83xx_spi->sysclk / (spi->max_speed_hz * 64);
if (pm > 0x0f) {
printk(KERN_WARNING "MPC83xx SPI: SPICLK can't be less then a SYSCLK/1024!\n"
"Requested SPICLK is %d Hz. Will use %d Hz instead.\n",
spi->max_speed_hz, mpc83xx_spi->sysclk / 1024);
pm = 0x0f;
}
regval |= SPMODE_PM(pm) | SPMODE_DIV16;
} else {
u8 pm = mpc83xx_spi->sysclk / (spi->max_speed_hz * 4);
Expand Down

0 comments on commit a399370

Please sign in to comment.