stm32: Add support for spi6 on stm32f42x chips

Signed-off-by: Russell Cloran <rcloran@gmail.com>
This commit is contained in:
Russell Cloran 2025-04-17 17:47:08 -07:00 committed by KevinOConnor
parent 5001983d34
commit f2b27d17b7

View file

@ -42,6 +42,10 @@ DECL_CONSTANT_STR("BUS_PINS_spi1a", "PB4,PB5,PB3");
DECL_ENUMERATION("spi_bus", "spi2b", 6);
DECL_CONSTANT_STR("BUS_PINS_spi2b", "PI2,PI3,PI1");
#endif
#ifdef SPI6
DECL_ENUMERATION("spi_bus", "spi6_PG12_PG14_PG13", 7);
DECL_CONSTANT_STR("BUS_PINS_spi6_PG12_PG14_PG13", "PG12,PG14,PG13");
#endif
#endif
#if CONFIG_MACH_STM32G0B1
DECL_ENUMERATION("spi_bus", "spi2_PB2_PB11_PB10", 5);
@ -76,6 +80,9 @@ static const struct spi_info spi_bus[] = {
#elif defined(GPIOI)
{ SPI2, GPIO('I', 2), GPIO('I', 3), GPIO('I', 1), GPIO_FUNCTION_ALL(5) },
#endif
#ifdef SPI6
{ SPI6, GPIO('G', 12), GPIO('G', 14), GPIO('G', 13), SPI_FUNCTION_ALL}
#endif
#endif
#if CONFIG_MACH_STM32G0B1
{ SPI2, GPIO('B', 2), GPIO('B', 11), GPIO('B', 10),