fdt: add memory bank decoding functions for board setup