[U-Boot] [PATCH v3] autostart: unify duplicated logic into the bootm code