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