dtoc: Move the main logic into the dtb_platdata file