File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ static_assert(CQSPI_MAX_CHIPSELECT <= SPI_CS_CNT_MAX);
43
43
#define CQSPI_SLOW_SRAM BIT(4)
44
44
#define CQSPI_NEEDS_APB_AHB_HAZARD_WAR BIT(5)
45
45
#define CQSPI_RD_NO_IRQ BIT(6)
46
+ #define CQSPI_DMA_SET_MASK BIT(7)
46
47
47
48
/* Capabilities */
48
49
#define CQSPI_SUPPORTS_OCTAL BIT(0)
@@ -1881,8 +1882,7 @@ static int cqspi_probe(struct platform_device *pdev)
1881
1882
goto probe_reset_failed ;
1882
1883
}
1883
1884
1884
- if (of_device_is_compatible (pdev -> dev .of_node ,
1885
- "xlnx,versal-ospi-1.0" )) {
1885
+ if (ddata -> quirks & CQSPI_DMA_SET_MASK ) {
1886
1886
ret = dma_set_mask (& pdev -> dev , DMA_BIT_MASK (64 ));
1887
1887
if (ret )
1888
1888
goto probe_reset_failed ;
@@ -2048,7 +2048,8 @@ static const struct cqspi_driver_platdata socfpga_qspi = {
2048
2048
2049
2049
static const struct cqspi_driver_platdata versal_ospi = {
2050
2050
.hwcaps_mask = CQSPI_SUPPORTS_OCTAL ,
2051
- .quirks = CQSPI_DISABLE_DAC_MODE | CQSPI_SUPPORT_EXTERNAL_DMA ,
2051
+ .quirks = CQSPI_DISABLE_DAC_MODE | CQSPI_SUPPORT_EXTERNAL_DMA
2052
+ | CQSPI_DMA_SET_MASK ,
2052
2053
.indirect_read_dma = cqspi_versal_indirect_read_dma ,
2053
2054
.get_dma_status = cqspi_get_versal_dma_status ,
2054
2055
};
You can’t perform that action at this time.
0 commit comments