Skip to content

Commit c4ecd78

Browse files
cfriedtnashif
authored andcommitted
Revert "drivers: spi: stm32 can support TI mode for the SPI frame format"
This reverts commit d563313. Signed-off-by: Christopher Friedt <[email protected]>
1 parent 137594c commit c4ecd78

File tree

2 files changed

+1
-24
lines changed

2 files changed

+1
-24
lines changed

drivers/spi/spi_ll_stm32.c

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -559,11 +559,7 @@ static int spi_stm32_configure(const struct device *dev,
559559

560560
#if !defined(CONFIG_SOC_SERIES_STM32F1X) \
561561
&& (!defined(CONFIG_SOC_SERIES_STM32L1X) || defined(SPI_CR2_FRF))
562-
if (cfg->ti_mode) {
563-
LL_SPI_SetStandard(spi, LL_SPI_PROTOCOL_TI);
564-
} else {
565-
LL_SPI_SetStandard(spi, LL_SPI_PROTOCOL_MOTOROLA);
566-
}
562+
LL_SPI_SetStandard(spi, LL_SPI_PROTOCOL_MOTOROLA);
567563
#endif
568564

569565
/* At this point, it's mandatory to set this on the context! */
@@ -928,14 +924,6 @@ static void spi_stm32_irq_config_func_##id(const struct device *dev) \
928924
#define SPI_DMA_STATUS_SEM(id)
929925
#endif
930926

931-
#if !defined(CONFIG_SOC_SERIES_STM32F1X) \
932-
&& (!defined(CONFIG_SOC_SERIES_STM32L1X) || defined(SPI_CR2_FRF))
933-
#define STM32_SPI_TI_MODE_CONFIG(id) \
934-
.ti_mode = DT_INST_PROP(id, frame_format),
935-
#else
936-
#define STM32_SPI_TI_MODE_CONFIG(id)
937-
#endif
938-
939927
#if DT_HAS_COMPAT_STATUS_OKAY(st_stm32_spi_subghz)
940928
#define STM32_SPI_USE_SUBGHZSPI_NSS_CONFIG(id) \
941929
.use_subghzspi_nss = DT_INST_PROP_OR( \
@@ -960,7 +948,6 @@ static const struct spi_stm32_config spi_stm32_cfg_##id = { \
960948
.pinctrl_list_size = ARRAY_SIZE(spi_pins_##id), \
961949
STM32_SPI_IRQ_HANDLER_FUNC(id) \
962950
STM32_SPI_USE_SUBGHZSPI_NSS_CONFIG(id) \
963-
STM32_SPI_TI_MODE_CONFIG(id) \
964951
}; \
965952
\
966953
static struct spi_stm32_data spi_stm32_dev_data_##id = { \

drivers/spi/spi_ll_stm32.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,6 @@ struct spi_stm32_config {
1919
#ifdef CONFIG_SPI_STM32_INTERRUPT
2020
irq_config_func_t irq_config;
2121
#endif
22-
23-
#if !defined(CONFIG_SOC_SERIES_STM32F1X) \
24-
&& (!defined(CONFIG_SOC_SERIES_STM32L1X) || defined(SPI_CR2_FRF))
25-
/*
26-
* if supported by the instance, this bit will configure the frame-format
27-
* of the SPI to be compliant with the TI protocol.
28-
*/
29-
bool ti_mode;
30-
#endif
31-
3222
#if DT_HAS_COMPAT_STATUS_OKAY(st_stm32_spi_subghz)
3323
bool use_subghzspi_nss;
3424
#endif

0 commit comments

Comments
 (0)