spi: cadence_qspi: Migrate CONFIG_CQSPI_REF_CLK to Kconfig
authorTom Rini <trini@konsulko.com>
Wed, 30 Mar 2022 22:07:23 +0000 (18:07 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 8 Apr 2022 14:46:22 +0000 (10:46 -0400)
commit55b3ba4c2ba4c464491604c5da63debae72aa5c6
treed9c1f95b2ba4e6b44b917431a764afcced7fe72b
parent5d14c336b21da34d07e93b5689ccffd52b8cc658
spi: cadence_qspi: Migrate CONFIG_CQSPI_REF_CLK to Kconfig

This is a little tricky since SoCFPGA has code to determine this as
runtime.  Introduce a guard variable for platforms to select if they
have a static value to use.  Then for ARCH_SOCFPGA, call
cm_get_qspi_controller_clk_hz() and otherwise continue the previous
behavior.

Cc: Jagan Teki <jagan@amarulasolutions.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
21 files changed:
arch/arm/mach-socfpga/misc_soc64.c
configs/j7200_evm_a72_defconfig
configs/j7200_evm_r5_defconfig
configs/j721e_evm_a72_defconfig
configs/j721e_evm_r5_defconfig
configs/j721e_hs_evm_a72_defconfig
configs/j721e_hs_evm_r5_defconfig
configs/j721s2_evm_a72_defconfig
configs/j721s2_evm_r5_defconfig
configs/k2g_evm_defconfig
configs/k2g_hs_evm_defconfig
configs/stv0991_defconfig
drivers/spi/Kconfig
drivers/spi/cadence_qspi.c
drivers/spi/cadence_qspi.h
include/configs/j721e_evm.h
include/configs/j721s2_evm.h
include/configs/k2g_evm.h
include/configs/socfpga_common.h
include/configs/socfpga_soc64_common.h
include/configs/stv0991.h