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