]> git.baikalelectronics.ru Git - kernel.git/commit
spi: stm32: introduce compatible data cfg
authorCezary Gapinski <cezary.gapinski@gmail.com>
Mon, 24 Dec 2018 22:00:37 +0000 (23:00 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 7 Jan 2019 18:25:35 +0000 (18:25 +0000)
commit5615d9389707b6872f29404f5696b2781d8c3793
treee366bf7baf5cb982954a9278d7f8c2f3e9d38789
parent47b0d3918a6b5318da304a2b26b0ec491a655b51
spi: stm32: introduce compatible data cfg

Prepare support for STM32F4 spi variant by introducing compatible
configuration data.
Move STM32H7 specific stuff to compatible data structure:
 - registers & bit fields
 - routines to control driver
 - baud rate divisor definitions
 - fifo availability
 - split IRQ functions to parts to be called when the IRQ occurs
   and for threaded interrupt what helps to provide less discontinuous
   mode for drivers without FIFO.

Signed-off-by: Cezary Gapinski <cezary.gapinski@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-stm32.c