]> asedeno.scripts.mit.edu Git - linux.git/commit
spi: sun6i: Support Allwinner H3 SPI controller
authorMilo Kim <woogyom.kim@gmail.com>
Fri, 28 Oct 2016 06:54:12 +0000 (15:54 +0900)
committerMark Brown <broonie@kernel.org>
Wed, 2 Nov 2016 20:59:09 +0000 (14:59 -0600)
commit10565dfd35488c45826201b4ce28597d6b5de3dd
tree21b345d2b93eccae9b4613ab399ce5669231f22e
parent8ea7ce9cc6dec26db22a97f00523a4bfd3a97d72
spi: sun6i: Support Allwinner H3 SPI controller

H3 has two SPI controllers. The size of the buffer is 64 * 8.
(8 bit transfer by 64 entry FIFO)
A31 has four controllers. The size of the buffer is 128 * 8.
(8 bit transfer by 128 entry FIFO)

Register maps are sharable, so sun6i SPI driver is reusable with
device configuration.

Use the variable, 'fifo_depth' instead of fixed value to support both SPI
controllers.

Signed-off-by: Milo Kim <woogyom.kim@gmail.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-sun6i.c