File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 87
87
88
88
struct fsl_lpspi_devtype_data {
89
89
u8 prescale_max : 3 ; /* 0 == no limit */
90
+ bool query_hw_for_num_cs : 1 ;
90
91
};
91
92
92
93
struct lpspi_config {
@@ -137,6 +138,7 @@ struct fsl_lpspi_data {
137
138
*/
138
139
static const struct fsl_lpspi_devtype_data imx93_lpspi_devtype_data = {
139
140
.prescale_max = 1 ,
141
+ .query_hw_for_num_cs = true,
140
142
};
141
143
142
144
static const struct fsl_lpspi_devtype_data imx7ulp_lpspi_devtype_data = {
@@ -932,7 +934,7 @@ static int fsl_lpspi_probe(struct platform_device *pdev)
932
934
fsl_lpspi -> rxfifosize = 1 << ((temp >> 8 ) & 0x0f );
933
935
if (of_property_read_u32 ((& pdev -> dev )-> of_node , "num-cs" ,
934
936
& num_cs )) {
935
- if (of_device_is_compatible ( pdev -> dev . of_node , "fsl,imx93-spi" ) )
937
+ if (devtype_data -> query_hw_for_num_cs )
936
938
num_cs = ((temp >> 16 ) & 0xf );
937
939
else
938
940
num_cs = 1 ;
You can’t perform that action at this time.
0 commit comments