[PATCH v2 19/21] bootm: Create a function to run through the bootz states