input: gpio_keys: Fix disordered wakeup key reports

- If power key is released before gpio_keys_gpio_report_wake() called,
power key press-release events pair will be reported twice and supress
display from coming back up.
- If power key is released before enabling device driver to receive
interrupts, power key release interrupt will be lost due to the previous
pending key press intterupt, and we can only get the released key state.
Change to call gpio_keys_gpio_report_wake() and gpio_keys_report_state()
in gpio_keys_resume_noirq() callback to avoid the disordered reports.

Bug 1372600
Bug 1346985
Bug 1437458

Change-Id: I8e35f6012f2fc600f4dd830e1c191f9f2782e621
Signed-off-by: Allen Yu <alleny@nvidia.com>
Reviewed-on: http://git-master/r/280231
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/357540
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>
security: tf_driver: integrate latest TL release

Tegra4 version: TF_TEGRA4_AC02.08p6.40683
This version fixes LP1 wakeup sequence.
The major problem was introduced by mistake in release 2.0.8p4.
Synchronized SDRAM wakeup sequence in TF with the latest BSP.
The other features are preserved unchanged.

Bug 1363940
Bug 1380505

Change-Id: Ieb3a089f5f5a964186ad11b691acc254b4216f9d
Signed-off-by: Martin Chi <mchi@nvidia.com>
Reviewed-on: http://git-master/r/351176
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
security: tf_driver: integrate latest TL release

Tegra4 version: TF_TEGRA4_AC02.08p7.40714

Bug 1423099

Synchronizes TF's LP1 wakeup with the recent changes of
LP1 sleep sequence in the BSP.

Change-Id: I41576f465a75e43f394a095991f7e079f4032578
Signed-off-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-on: http://git-master/r/348298
(cherry picked from commit e74d2529e015ae6b8bea02cf95880f68228e4364)
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/351097
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Martin Chi <mchi@nvidia.com>
Tested-by: Martin Chi <mchi@nvidia.com>
ARM: Tegra: Utilize burst policy for LP1 wakeup

Running SCLK from CLKS makes LP1 wakeup latencies horrible.
However, we can utilize IRQ bursting to switch automatically
to CLKM upon LP1 wakeup IRQ. This maintains low power for LP1
but improves wakeup latencies significantly.

Bug 1423099

Change-Id: I9231d736c5d330a1c36a38a4e2ad1d0b29a4c158
Signed-off-by: Martin Chi <mchi@nvidia.com>
Reviewed-on: http://git-master/r/344607
Reviewed-on: http://git-master/r/350636
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit