]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
qspi: versal-net: Add condition for tapdelay register
authorAshok Reddy Soma <ashok.reddy.soma@amd.com>
Wed, 16 Nov 2022 15:40:30 +0000 (16:40 +0100)
committerMichal Simek <michal.simek@amd.com>
Tue, 22 Nov 2022 14:02:07 +0000 (15:02 +0100)
Add CONFIG_ARCH_VERSAL_NET to select tapdelay register for versal-net.

Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@amd.com>
Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/2500dd688214e2ec2d54ed3fabbfee0b1ca861a6.1668613229.git.michal.simek@amd.com
drivers/spi/zynqmp_gqspi.c

index 49facc46d3c1974d3076884557cf4955cfb1a3b5..48eff777dfb399801715da52acf1f50bac3f45a7 100644 (file)
 #define TAP_DLY_BYPASS_LQSPI_RX_VALUE  0x1
 #define TAP_DLY_BYPASS_LQSPI_RX_SHIFT  2
 #define GQSPI_DATA_DLY_ADJ_OFST                0x000001F8
-#define IOU_TAPDLY_BYPASS_OFST !IS_ENABLED(CONFIG_ARCH_VERSAL) ? \
+#define IOU_TAPDLY_BYPASS_OFST !(IS_ENABLED(CONFIG_ARCH_VERSAL) || \
+                                IS_ENABLED(CONFIG_ARCH_VERSAL_NET)) ? \
                                0xFF180390 : 0xF103003C
 #define GQSPI_LPBK_DLY_ADJ_LPBK_MASK   0x00000020
 #define GQSPI_FREQ_37_5MHZ             37500000