arm/stm32g0: Expose SPI2 capability on STM32G0B1.

STM32G0B1 devices provide SPI2, but their chip configuration does not
select STM32_HAVE_SPI2. Since STM32_SPI2 depends on that capability,
an explicit CONFIG_STM32_SPI2=y request is dropped by Kconfig.

Select the capability for STM32G0B1 so boards can enable the existing
SPI2 driver. SPI2 remains disabled unless requested. Other chip
families and the driver implementation are unchanged.

The STM32G0B1 datasheet DS13560, section 3.23, documents SPI2:
https://www.st.com/resource/en/datasheet/stm32g0b1re.pdf

Verified before/after configuration on STM32G0B1RE and STM32G0B1CE,
with STM32G071RB as an unchanged control. The same one-line fix is
included in the Golgi STM32G0B1CE firmware build 7248, whose build and
hardware acceptance were recorded on September 25, 2026.

Assisted-by: Codex:GPT-6
Signed-off-by: jsanchez-2g <jsanchez@2g-eng.com>
This commit is contained in:
jsanchez-2g 2026-09-30 10:01:15 -05:00 • committed by Xiang Xiao
parent 67eb7b1c33
commit ea4beccfc7

View file

@ -369,6 +369,7 @@ config STM32_STM32G0B1
default n
select STM32_STM32G0
select STM32_STM32G0BX
select STM32_HAVE_SPI2
select STM32_HAVE_DAC1
select STM32_HAVE_COMP1
select STM32_HAVE_COMP2