platform: msm_shared: check if pub_key is NULL before using it.

The pointer pub_key returned from X59_get_pubkey() might be NULL,
which would lead crash here.

CRs-Fixed: 687723
Change-Id: Ib72e441bf3ba746fdf35391b02ad3d05de3f9848
make: Added -fno-strict-overflow to makefile

modified CFLAGS to avoid gcc optimising the signed integer overflow checks.

CRs-Fixed: 691916.
Change-Id: I9c01609eaa486351f79289e4df803b9281c65dff
platform: msm_shared: fix the bug of array overflow

Fix the array '_jtag_cmd_buffer' overflow bug in lk

CRs-Fixed: 687723
Change-Id: Ie8d0fcae0148897796d1343e9ab77febc14ad568
platform: msm_shared: Select device trees based on foundry-id

Add support to select device tree based on foundry-id. Look for
exact match for foundry-id, if not found choose device tree with
foundry-id (0x0).

CRs-Fixed: 657272
Change-Id: I6379036653bc350c5dfaea41697db8a7127ea797
platform: msm_shared: enable support for flipped panels

Add support for panels that are mounted in flipped
orientation. Supported orientations are horizontal
flip, vertical flip and both.

Change-Id: I3e8ebe73a05fac73f3069ff4887d74875f8320ce
lib: heap: Added checks for integer overflow

check the integer overflow while allocating the memory from heap.

CRs-Fixed: 692478
Change-Id: I73e8ffe74efc7aa580af43142bdf733bb2d8610a
platform: msm8994: Add support for display clocks

Add support for display clocks.

Change-Id: I1b60de21c974107a09f8374552dfdd9f51c517f4
aboot: check if cmdline is NULL before using it

Pointer 'final_cmdline' returned from call to function
'update_cmdline' may be NULL.

CRs-Fixed: 687723
Change-Id: Ia0327de74b88bbac9e954b6b34c0abcc970c27df
platform: msm_shared: check if cmdline is NULL before using it

Pointer 'final_cmdline' returned from call to function
'update_cmdline' may be NULL, will be passed to function
and may be dereferenced there by passing argument 2 to
function 'update_device_tree'.

Change-Id: I6cd52dd9b7799f0ecb3fc863497647ad653a5e9d
CRs-Fixed: 687723
app: aboot: Do normal boot when the power off reason is reset

When KPDPWR_AND_RESIN is in poff reason1 and resin by S3,it means
it is a force resin triggered by user. It is required to do normal
boot in this case.

CRs-Fixed: 689864
Change-Id: I7e86a54297a51159ecd2cc1dad9e56592e4b42c1
target: msm8916: Add is_user_force_reset API

Add is_user_force_reset API to check if it is a force
resin triggered by user.

CRs-Fixed: 689864
Change-Id: Iefaee1bb2547198e0028a05f2e7b77b69f1d20b0
project: msm8916: Enable the feature of user force reset

Set USER_FORCE_RESET_SUPPORT as 1 which is needed to enable
the feature of user force reset for msm8916.

CRs-Fixed: 689864
Change-Id: I67637ca76d01bbd255de251292b9fb7c287ad995
dev: gcdb: Add jdi fhd incell video mode panel

Add the header file for the jdi incell full HD panel in video
mode.

Change-Id: I7ec1f92ea87acf2fc2fba2a651ad528821344e9d
target: msm8916: Enable jdi FHD incell panel on 8939 target

Enable detection of jdi FHD incell panel on 8939 target. This panel
can be detected by giving following commands in fastboot mode:

fastboot oem select-display-panel jdi_fhd_video
fastboot reboot-bootloader

Change-Id: Ie02511ac7a5143964bb65f0358edaa7825d7a48c
dev: Add support for QPNP WLED Driver.

Add support for wled module which is part of
PMI8994. Wled enables backlight for the devices.

Change-Id: I149bbc309eb9c795f612206d21f91f9e16a11e21
target: msm8994: Enable PWM and QPNP WLED driver compilation.

Enable PWM and QPNP WLED driver to control display backlight
for MSM8994.

Change-Id: I1e0317e1ad5b692bf6e8b6db54c14ed06bc37f32
app: aboot: allocate memory for cmdline_final instead of dst_buf

dst_buf is a temprory variable, cmdline_final will be returned
from the func. Better for code understanding.

CRs-Fixed: 687723
Change-Id: I4a7edd368322721a03dcab637a79b2f5c0a47edd
project: ferrum: Force loading addresses from LK

Override kernel,tags and ramdisk loading addresses
from LK, ignoring offsets defined in the boot image.

Change-Id: I656e902ee41e5b9b3cceeb93e37dfbf5f208b675
Merge "dev: Add support for QPNP WLED Driver."
Merge "target: msm8994: Enable PWM and QPNP WLED driver compilation."