Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212315
b: refs/heads/master
c: bb8beec
h: refs/heads/master
i:
  212313: c850861
  212311: 09095b1
v: v3
  • Loading branch information
Wolfgang Muees authored and Mike Frysinger committed Oct 18, 2010
1 parent c5bae92 commit e0160d6
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: 60d0071b609ecb0aebe12aaedf34fe552da12c5b
refs/heads/master: bb8beecd98de45f821a3360e0b061fc1f8da947c
6 changes: 6 additions & 0 deletions trunk/drivers/spi/spi_bfin5xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1354,6 +1354,12 @@ static int __init bfin_spi_probe(struct platform_device *pdev)
goto out_error_queue_alloc;
}

/* Reset SPI registers. If these registers were used by the boot loader,
* the sky may fall on your head if you enable the dma controller.
*/
write_CTRL(drv_data, BIT_CTL_CPHA | BIT_CTL_MASTER);
write_FLAG(drv_data, 0xFF00);

/* Register with the SPI framework */
platform_set_drvdata(pdev, drv_data);
status = spi_register_master(master);
Expand Down

0 comments on commit e0160d6

Please sign in to comment.