[v2 13/25] spi: cadence_qspi: Migrate CONFIG_CQSPI_REF_CLK to Kconfig

Tom Rini trini at konsulko.com
Fri Apr 8 16:47:33 CEST 2022


On Thu, Mar 31, 2022 at 03:35:26PM -0400, Tom Rini wrote:

> 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 at amarulasolutions.com>
> Signed-off-by: Tom Rini <trini at konsulko.com>

OK, so there's a problem with using IS_ENABLED(..) which is that we get
a failure to build in the not-enabled case over CONFIG_CQSPI_REF_CLK
being unset.  And then we can't use if (CONFIG_VAL(..)) because we then
run in to needing it to exist for SPL as well.  I'm going to go back to
v1 of this particular patch.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220408/28aae374/attachment.sig>


More information about the U-Boot mailing list