]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spi: zynqmp_gqspi: Add support for Versal NET
authorMichal Simek <michal.simek@amd.com>
Mon, 19 Sep 2022 12:21:04 +0000 (14:21 +0200)
committerMichal Simek <michal.simek@amd.com>
Mon, 26 Sep 2022 12:23:29 +0000 (14:23 +0200)
Add support for Versal NET platform.

Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/f374e9a81f2d85de1240029f3ba5f6423cfa0680.1663589964.git.michal.simek@amd.com
drivers/spi/zynqmp_gqspi.c

index 4e718c545c6459d64d79f6f09f82e295cdf6a77e..d3cc8554b8fbb19c9ad15d82b684f730b491646b 100644 (file)
@@ -308,7 +308,8 @@ void zynqmp_qspi_set_tapdelay(struct udevice *bus, u32 baudrateval)
        debug("%s, req_hz:%d, clk_rate:%d, baudrateval:%d\n",
              __func__, reqhz, clk_rate, baudrateval);
 
-       if (!IS_ENABLED(CONFIG_ARCH_VERSAL)) {
+       if (!(IS_ENABLED(CONFIG_ARCH_VERSAL) ||
+             IS_ENABLED(CONFIG_ARCH_VERSAL_NET))) {
                if (reqhz <= GQSPI_FREQ_40MHZ) {
                        tapdlybypass = TAP_DLY_BYPASS_LQSPI_RX_VALUE <<
                                        TAP_DLY_BYPASS_LQSPI_RX_SHIFT;