Skip to content

Commit 4792151

Browse files
Tomasz Bursztykacfriedt
authored andcommitted
spi: Grab relevant properties from DTS into the operation bitfield
duplex and frame_format where recently added and obviously need to be grabbed from DTS relevantly. Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
1 parent ba6e9cd commit 4792151

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/drivers/spi.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,9 @@ struct spi_config {
297297
#define SPI_CONFIG_DT(node_id, operation_, delay_) \
298298
{ \
299299
.frequency = DT_PROP(node_id, spi_max_frequency), \
300-
.operation = (operation_), \
300+
.operation = (operation_) | \
301+
DT_PROP(node_id, duplex) | \
302+
DT_PROP(node_id, frame_format), \
301303
.slave = DT_REG_ADDR(node_id), \
302304
.cs = COND_CODE_1( \
303305
DT_SPI_DEV_HAS_CS_GPIOS(node_id), \

0 commit comments

Comments
 (0)