Merge pull request #1780 from pmanish87/master

Make device tree pre-processing similar to U-boot/Linux