platform: msm_shared: Add device tree selection for pmic info

Add support to select device tree base on pmic info(pmic model and
pmic major&minor). So change the parse logic to match updated table
of device tree image format.

LK logic starts with comparing best match in the following order,
it contains exact match and best match:

Exact match for LK:
1. Platform id --> contains msm id & foundry ID
	a. MSM ID
	b. Foundry ID. look for exact match, if not found choose
	device tree with foundry-id(0x0)
2. Platform subtype --> Subtype for the board
3. Platform type , hw_id --> CDP/MTP board type
4. HLOS subtype --> Such as DDR type (as of now we have only one)
5. Pmic model
Exact match items are in same priority since it cannot be accepted if
one of them cannot match

Best match for LK:
1. Soc version
2. Board major+minor
3. Pmic0 major+minor
4. Pmic1 major+minor
5. Pmic2 major+minor
6. Pmic3 major+minor
The priority order of best match is 1 > 2 > 3 > 4 > 5 > 6, so soc version
take the highest priority, pmic3 major+minor takes the least priority.

Change-Id: If1c34867844cbc29a1471c9d275fbf996387fbf1
4 files changed