Skip to content

Commit

Permalink
Merge remote-tracking branches 'spi/topic/atmel', 'spi/topic/bcm2385'…
Browse files Browse the repository at this point in the history
…, 'spi/topic/bcm2835', 'spi/topic/bcm53xx' and 'spi/topic/bitbang' into spi-next
  • Loading branch information
broonie committed Apr 11, 2015
6 parents 19655dd + ea46732 + b716c4f + 704f32d + b3e7766 + 232a5ad commit f9de734
Show file tree
Hide file tree
Showing 6 changed files with 283 additions and 145 deletions.
8 changes: 7 additions & 1 deletion drivers/spi/spi-atmel.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,17 @@
| SPI_BF(name, value))

/* Register access macros */
#ifdef CONFIG_AVR32
#define spi_readl(port, reg) \
__raw_readl((port)->regs + SPI_##reg)
#define spi_writel(port, reg, value) \
__raw_writel((value), (port)->regs + SPI_##reg)

#else
#define spi_readl(port, reg) \
readl_relaxed((port)->regs + SPI_##reg)
#define spi_writel(port, reg, value) \
writel_relaxed((value), (port)->regs + SPI_##reg)
#endif
/* use PIO for small transfers, avoiding DMA setup/teardown overhead and
* cache operations; better heuristics consider wordsize and bitrate.
*/
Expand Down
Loading

0 comments on commit f9de734

Please sign in to comment.