[U-Boot] [PATCH v2 4/7] create function to determine boot mode