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