opnsense-src/sys/arm
Andriy Gapon 2de6637133 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.

(cherry picked from commit 08ff54dc5b)
2022-01-03 10:47:59 +02:00
..
allwinner aw_spi: improve I/O stability 2022-01-03 10:47:59 +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 the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
arm busdma: Remove outdated comments about Giant. 2021-12-23 20:05:17 -05:00
broadcom/bcm2835 bcm2835_sdhci: don't use DMA for kernel dumps 2021-09-28 11:21:38 -03:00
cloudabi32 Get rid of sa->narg. It serves no purpose; use sa->callp->sy_narg instead. 2020-09-27 18:47:06 +00:00
conf arm64: Spell BeagleBone correctly in config file. 2021-11-18 21:52:21 -07:00
freescale fb: Remove unused cursors ioctls 2021-12-21 10:21:16 +01:00
include Implement GET_STACK_USAGE on remaining archs 2021-12-07 14:13:47 -04:00
linux regen syscall files after 0bd5d81f1e 2021-05-19 20:32:47 -04:00
mv marvell: ap806_clock: add missing frequency modes 2021-02-02 13:28:35 +01:00
nvidia arm: fix a typo in nvidia/drm2/tegra_bo.c 2021-11-09 08:46:01 -05:00
qemu arm: Add kern_clocksource.c directly in files.arm 2019-04-16 20:04:22 +00: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-07 19:52:00 +01:00
versatile Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
xilinx arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00