zephyr/drivers/spi
Laurentiu Palcu 7dd2372dd5 spi_dw: use SPI bus frequency in spi_dw_configure()
The SPI API states:

"max_sys_freq is the maximum frequency supported by the slave it
will deal with"

However, currently, for DW the max_sys_freq is a divider which confuses
the user.

This patch adds a small hack to allow users to use both dividers and
frequencies when configuring the bus. The only trade-off is one has to
use dividers for bus frequencies smaller than 65536Hz. However, since
most devices nowadays can run at clock frequencies more than 100kHz,
this is a good compromise.

Change-Id: I44386cc8ad501b08eeaf71bc7588661ff36e108b
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
2016-04-02 23:08:49 +00:00
..
Kconfig spi: restructure kconfig options 2016-03-17 21:05:12 +00:00
Kconfig.dw refactor common driver initialization priorities 2016-03-28 15:58:29 -07:00
Kconfig.intel spi: restructure kconfig options 2016-03-17 21:05:12 +00:00
Kconfig.k64 spi/k64: remove SoC specific SPI constants from kconfig 2016-03-26 20:36:32 -04:00
Kconfig.qmsi spi: restructure kconfig options 2016-03-17 21:05:12 +00:00
Makefile arm: K64 SPI module driver 2016-03-09 15:50:16 +00:00
spi_dw.c spi_dw: use SPI bus frequency in spi_dw_configure() 2016-04-02 23:08:49 +00:00
spi_dw.h SPI: Change read/write buffer pointers to void * 2016-03-04 20:13:21 +00:00
spi_dw_quark_se_ss_regs.h spi: dw: arc: add delay between writing DR strobe bit and reading FIFO 2016-03-12 03:18:54 +00:00
spi_dw_regs.h spi: dw: Quark SE Sensor Sub-System support 2016-02-20 15:39:16 +00:00
spi_intel.c drivers: Replace DEV_NOT_CONFIG by -EPERM 2016-03-16 19:30:04 -04:00
spi_intel.h SPI: Change read/write buffer pointers to void * 2016-03-04 20:13:21 +00:00
spi_k64.c spi/k64: remove SoC specific SPI constants from kconfig 2016-03-26 20:36:32 -04:00
spi_k64_priv.h arm: K64 SPI module driver 2016-03-09 15:50:16 +00:00
spi_qmsi.c drivers: Replace DEV_USED by -EBUSY 2016-03-16 19:30:04 -04:00