Commit ca975fa657aed84c94682ebe75a0cb70841c23eb
Committed by
Larisa Grigore
1 parent
8f4fd7694b
Exists in
smarc_8mq_lf_v2020.04
and in
4 other branches
dspi: Correct macro for CTAR PCSSCK
Correct DSPI_CTAR_PCSSCK_7CLK define Issue: ALB-1755 Signed-off-by: Iustin Dumitrescu <iustin.dumitrescu@nxp.com> Signed-off-by: Larisa Grigore <larisa.grigore@nxp.com>
Showing 1 changed file with 7 additions and 0 deletions Side-by-side Diff
include/fsl_dspi.h
... | ... | @@ -6,6 +6,9 @@ |
6 | 6 | * TsiChung Liew (Tsi-Chung.Liew@freescale.com) |
7 | 7 | * Chao Fu (B44548@freesacle.com) |
8 | 8 | * Haikun Wang (B53464@freescale.com) |
9 | + * | |
10 | + * (C) Copyright 2017 NXP | |
11 | + * | |
9 | 12 | */ |
10 | 13 | |
11 | 14 | #ifndef _FSL_DSPI_H_ |
12 | 15 | |
... | ... | @@ -71,7 +74,11 @@ |
71 | 74 | #define DSPI_CTAR_CPHA 0x02000000 |
72 | 75 | #define DSPI_CTAR_LSBFE 0x01000000 |
73 | 76 | #define DSPI_CTAR_PCSSCK(x) (((x) & 0x03) << 22) |
77 | +#ifdef CONFIG_ARCH_S32V234 | |
78 | +#define DSPI_CTAR_PCSSCK_7CLK 0x00C00000 | |
79 | +#else | |
74 | 80 | #define DSPI_CTAR_PCSSCK_7CLK 0x00A00000 |
81 | +#endif | |
75 | 82 | #define DSPI_CTAR_PCSSCK_5CLK 0x00800000 |
76 | 83 | #define DSPI_CTAR_PCSSCK_3CLK 0x00400000 |
77 | 84 | #define DSPI_CTAR_PCSSCK_1CLK 0x00000000 |