[PATCH v2 2/4] ARM: stm32: Factor out save_boot_params