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