Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

orion_spi: handle 88F6183 erratum

Add support to orion_spi for the 88F6183 ARM SoC by adding code to work
around a 6183-specific erratum.

Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Lennert Buytenhek and committed by
Linus Torvalds
2bec19fe f1f640a9

+6
+5
drivers/spi/orion_spi.c
··· 364 364 return -EINVAL; 365 365 } 366 366 367 + /* Fix ac timing if required. */ 368 + if (orion_spi->spi_info->enable_clock_fix) 369 + orion_spi_setbits(orion_spi, ORION_SPI_IF_CONFIG_REG, 370 + (1 << 14)); 371 + 367 372 if (spi->bits_per_word == 0) 368 373 spi->bits_per_word = 8; 369 374
+1
include/linux/spi/orion_spi.h
··· 11 11 12 12 struct orion_spi_info { 13 13 u32 tclk; /* no <linux/clk.h> support yet */ 14 + u32 enable_clock_fix; 14 15 }; 15 16 16 17