msm: dtb: Add logic to pick best match DTB in case of appended DTBs.

MSM can have minor updates in chip version. Due to this
Linux bootup may fail unless device tree files in Linux kernel are updated,
even when no change is required in software between two versions.

To avoid that this change will make sure that bootloader picks correct
DTB in following order:

1. DTB with perfect match with board MSM ID.
2. DTB with same HW and Product ID as board but SOC REV ID less than board
   SOC REV ID

In 2nd case bootloader will pick DTB with SOC REV ID most close to board
SOC REV ID.

Change-Id: I8f40bebcc40fd486055c42aaa9488df7188c786a
1 file changed