spi: kirkwood_spi: implement workaround for FE-9144572
authorChris Packham <judge.packham@gmail.com>
Mon, 22 Jan 2018 09:44:20 +0000 (22:44 +1300)
committerJagan Teki <jagan@amarulasolutions.com>
Wed, 24 Jan 2018 06:34:08 +0000 (12:04 +0530)
commitdf16881cea50a787c37591bd2168c8ea656217bd
tree224a6147fba7fc48c08f87557262df29a4af37d7
parent36890ff0d00f6c44631a6453b355f8af1b5ddd53
spi: kirkwood_spi: implement workaround for FE-9144572

Erratum NO. FE-9144572: The device SPI interface supports frequencies of
up to 50 MHz.  However, due to this erratum, when the device core clock
is 250 MHz and the SPI interfaces is configured for 50MHz SPI clock and
CPOL=CPHA=1 there might occur data corruption on reads from the SPI
device.

Implement the workaround by setting the TMISO_SAMPLE value to 0x2
in the timing1 register.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Reviewed-by: Jagan Teki <jagan@openedev.com>
arch/arm/include/asm/arch-mvebu/spi.h
drivers/spi/kirkwood_spi.c