freebsd-dev/sys/arm
Andriy Gapon 08ff54dc5b aw_spi: improve I/O stability
This driver does not use DMA at the moment, so some care is needed to
prevent TX FIFO underruns and RX FIFO overflows.
Several improvements are done in oder to minimize chances of those.

First, the interrupt handling is moved to a filter to minimize latency.
Second, FIFO trigger thresholds are configured for both FIFOs.
The TX FIFO threshold is set to 3/4-th of its size and the RX FIFO
threshold is set to 1/4-th of its size.
The interrupt conditions are changed from the empty FIFO and full FIFO
for the TX and RX correspondingly to going below and above the thresholds.

While here I renamed AW_SPI_IER_RF_ERQ to AW_SPI_IER_RF_RDY which is
closer to what the documentation uses, RF_RDY_INT_EN in the interrupt
control register and RX_RDY in the interrupt status register.

Reviewed by:	manu
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D33558
2021-12-20 12:40:17 +02:00
..
allwinner aw_spi: improve I/O stability 2021-12-20 12:40:17 +02:00
altera/socfpga arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
annapurna/alpine Remove versatile support 2021-04-12 06:16:31 +00:00
arm Try to fix syntax of "strht" instruction so that clang is happy. 2021-12-19 13:52:36 +01:00
broadcom/bcm2835 vt: export RGB offsets with FBIO_GETRGBOFFS 2021-11-25 16:39:25 -03:00
conf Add a COMPAT_FREEBSD13 kernel option 2021-11-17 03:08:40 +01:00
freescale arm/freescale: remove FBIOSCURSOR 2021-12-09 17:00:43 +00:00
include Add <machine/tls.h> header to hold MD constants and helpers for TLS. 2021-12-09 13:17:13 -08:00
mv arm/mv: Don't rely on firmware MSI mapping in ICU 2021-07-20 23:24:42 +02:00
nvidia arm: fix a typo in nvidia/drm2/tegra_bo.c 2021-10-25 18:42:10 +00:00
qemu arm: Add kern_clocksource.c directly in files.arm 2019-04-16 20:04:22 +00:00
qualcomm ipq4018: add qcom-gcc-ipq4018 and dependencies into the build 2021-11-04 09:02:43 -07:00
rockchip Add support for RK3288 SoC. 2020-12-04 16:24:44 +00:00
ti omap4: Fix a few typos in source code comments 2021-12-04 12:13:27 +01:00
xilinx arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00