common: Move device-tree setup functions to fdt_support.h