[PATCH 16/18] bootm: Create a function to run through the bootz states