u-boot/drivers/spi
Andre Przywara 8649995c76 spi: sunxi: Add support for F1C100s SPI controller
The SPI controllers in the Allwinner F1Cx00 series of SoCs are
compatible to the H3 IP. The only difference in the integration is
the missing mod clock in the F1C100, instead the SPI clock is directly
derived from the AHB clock.
We *should* be able to model this through the DT, but the addition of
get_rate() requires quite some refactoring, so it's not really worth in
this simple case: We programmed both the PLL_PERIPH to 600 MHz and the
PLL/AHB divider to 3 in the SPL, so we know the SPI base clock is 200
MHz. Since we used a hard coded fixed clock rate of 24 MHz for all the
other SoCs so far, we can as well do the same for the F1C100.

Define the SPI input clock and maximum frequency differently when
compiling for the F1C100 SoC.
Also adjust the power-of-2 divider programming, because that uses a
"minus one" encoding, compared to the other SoCs.

This allows to enable SPI flash support for the F1C100 boards.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
2022-07-18 11:34:22 +01:00
..
Kconfig spi: add support for MediaTek MT7621 SoC 2022-07-13 23:03:37 +02:00
Makefile arm64: versal: Add versal specific cadence ospi driver 2022-06-29 15:58:48 +02:00
altera_spi.c
apple_spi.c spi: apple: Add driver for Apple SPI controller 2022-02-10 16:44:23 -05:00
atcspi200_spi.c
ath79_spi.c
atmel-quadspi.c spi: atmel-quadspi: Fix the buswidth adjustment between spi-mem and controller 2022-04-26 09:54:41 +03:00
atmel_spi.c
atmel_spi.h
bcm63xx_hsspi.c spi: bcm63xx: Don't check clk_free 2022-03-30 13:02:55 -04:00
bcm63xx_spi.c spi: bcm63xx: Don't check clk_free 2022-03-30 13:02:55 -04:00
bcmstb_spi.c
ca_sflash.c
cadence_ospi_versal.c spi: cadence_qspi: Enable apb linear mode for apb read & write operations 2022-06-29 16:00:31 +02:00
cadence_qspi.c spi: cadence-qspi: Fix programming ospi flash speed 2022-06-29 16:00:31 +02:00
cadence_qspi.h spi: cadence_qspi: Enable apb linear mode for apb read & write operations 2022-06-29 16:00:31 +02:00
cadence_qspi_apb.c spi: cadence_qspi: Enable apb linear mode for apb read & write operations 2022-06-29 16:00:31 +02:00
cf_spi.c
davinci_spi.c
designware_spi.c spi: dw: Don't check clk_free 2022-03-30 13:02:55 -04:00
exynos_spi.c
fsl_dspi.c
fsl_espi.c
fsl_qspi.c
gxp_spi.c spi: gxp_spi: Add GXP SPI controller driver 2022-06-22 21:30:05 -04:00
ich.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
ich.h
iproc_qspi.c driver: spi: add bcm iproc qspi support 2022-02-24 13:42:50 +05:30
kirkwood_spi.c
meson_spifc.c
mpc8xx_spi.c
mpc8xxx_spi.c
mscc_bb_spi.c
mt7620_spi.c
mt7621_spi.c
mtk_snfi_spi.c
mtk_snor.c
mvebu_a3700_spi.c
mxc_spi.c spi: mxc_spi: remove redundant code in spi_xchg_single() 2022-02-05 13:38:39 +01:00
mxs_spi.c
npcm_fiu_spi.c spi: npcm-fiu: add NPCM7xx FIU controller driver 2022-05-03 17:49:48 +05:30
nxp_fspi.c spi: nxp_fspi: Fix clock imbalance 2022-06-15 11:34:38 +02:00
octeon_spi.c pci: Add mask parameter to dm_pci_map_bar() 2022-05-03 18:33:29 -04:00
omap3_spi.c
pic32_spi.c
pl022_spi.c stm32mp1: fix reference for STMicroelectronics 2022-06-17 14:12:27 +02:00
renesas_rpc_spi.c
rk_spi.c
rk_spi.h
rockchip_sfc.c spi: rockchip_sfc: Add missing include for dm/device_compat.h 2022-04-18 11:25:12 +08:00
sandbox_spi.c
sh_qspi.c
soft_spi.c
spi-emul-uclass.c
spi-mem-nodm.c
spi-mem.c
spi-mxic.c
spi-qup.c
spi-sifive.c
spi-sunxi.c spi: sunxi: Add support for F1C100s SPI controller 2022-07-18 11:34:22 +01:00
spi-synquacer.c spi: synquacer: simplify tx completion checking 2022-06-10 13:37:32 -04:00
spi-uclass.c spi: spi-uclass: Add new spi_get_bus_and_cs() implementation 2022-05-23 09:33:10 -04:00
spi.c
stm32_qspi.c spi: stm32_qspi: Remove SR_BUSY bit check before sending command 2022-05-19 18:54:18 +02:00
stm32_spi.c
tegra20_sflash.c
tegra20_slink.c
tegra114_spi.c
tegra210_qspi.c
tegra_spi.h
ti_qspi.c Fix wrong QSPI clock calculation for AM4372 2022-01-16 08:31:03 -05:00
uniphier_spi.c
xilinx_spi.c
zynq_qspi.c spi: zynq_qspi: Add SPI memory operations to zynq qspi 2022-02-04 13:20:32 +01:00
zynq_spi.c
zynqmp_gqspi.c