iommu: msm: Add timeouts for some operations

Under normal operations, accesses from the SMMU to DDR should
complete in timely manner. There may be some cases due to misconfiguration
where access to DDR will not error out but simply hang forever. This
will result in certain IOMMU accesses (hardware tablewalk and tlb
syncing) never being marked as complete. Avoid looping forever by
adding a timeout to these operations and noting when the timeout is
hit.

Change-Id: Ic0a4f04b7d0f14fc89b41e1e670d0501331fe8ad
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Signed-off-by: Ajay Dudani <adudani@codeaurora.org>
Sensors: Add Avago APDS9930 driver

Add Avago APDS9930 driver for proximity/Light sensor

Change-Id: Ifd2a6a37356e48cdc68a38c55e555222d7339c99
Signed-off-by: chohee.park <chohee.park@lge.com>
Signed-off-by: Devin Kim <dojip.kim@lge.com>
Sensors: Fix the permission of apds993x nodes

sysfs nodes should not be world writeable

Change-Id: Ieb5f1b28c070feb758da1c1c7ea5a7a7adf564af
Signed-off-by: Devin Kim <dojip.kim@lge.com>
Sensors: Add proximity calibration for APDS9930

Add proximity calibration code. It will be used when calibrating
the proximity

Change-Id: I5dcb353dafb2d891c32b862b28e818eb8876db5c
Signed-off-by: kangsik.shin <kangsik.shin@lge.com>
Signed-off-by: Devin Kim <dojip.kim@lge.com>
tspp: Vote for msm-bus clocks before enabling tspp clocks

Currently tspp driver votes for its core clocks, however, it is
possible that the source of the core-clocks will be off. When the
source is off, the tspp core is not clocked. This patch adds
voting for the msm-bus clock, thus guarantee clocking to
the tspp core.

The voting is done only when driver is asked to enable TSIF data
path to stream data through TSIF interface, at which the core clocks
are enabled as well.

Change-Id: I08cd25c0a23d1d69afa54cefddc0b2cb25b3dd7d
Signed-off-by: Hamad Kadmany <hkadmany@codeaurora.org>
qseecom: Add cache functionality

Flush the buffers to physical memory before invoking
scm_call to ensure data in buffers is not stale.

Change-Id: If756e12e4cceb29f3d0e1a04618a037494f31cf7
Signed-off-by: Mona Hossain <mhossain@codeaurora.org>
Signed-off-by: Hariprasad Dhalinarasimha <hnamgund@codeaurora.org>