serial: stm32x7: prepare the ground to STM32F4 support