From e7005b3e80d396f45a3ba88448818eee5d592f27 Mon Sep 17 00:00:00 2001 From: Vladimir Oltean Date: Mon, 4 May 2020 11:24:26 +0300 Subject: fsl_dspi: Introduce DT bindings for CS-SCK and SCK-CS delays Communication with some SPI slaves just won't cut it if these delays (before the beginning, and after the end of a transfer) are not added to the Chip Select signal. These are a straight copy from Linux: Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt drivers/spi/spi-fsl-dspi.c Signed-off-by: Vladimir Oltean [Rebased] Signed-off-by: Priyanka Jain --- include/fsl_dspi.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/fsl_dspi.h') diff --git a/include/fsl_dspi.h b/include/fsl_dspi.h index 114f63bce3..4fec83549e 100644 --- a/include/fsl_dspi.h +++ b/include/fsl_dspi.h @@ -94,6 +94,7 @@ struct dspi { #define DSPI_CTAR_ASC(x) (((x) & 0x0F) << 8) #define DSPI_CTAR_DT(x) (((x) & 0x0F) << 4) #define DSPI_CTAR_BR(x) ((x) & 0x0F) +#define DSPI_CTAR_SCALE_BITS 0xf /* Status */ #define DSPI_SR_TCF 0x80000000 -- cgit