defconfig: Enable SELinux and its dependencies

To have more control over the access rights for different
user space needs, SELinux imposes mandatory access controls
on Linux. Which allows an administrator of a system to
define how applications and users can access different
resources such as files, devices, networks and inter-process
communication.

Change-Id: Ib01664c8a5b64a7f4aac6378e4ddaf27d80ac1e2
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
crypto: msm: multiple qcrypto support

This patch provides support for multiple qcrypto devices
with the qcrypto driver.

Change-Id: I36b0a802dcf92a438353f5961fab0bfddc53268a
Acked-by: Chemin Hsieh <cheminh@qti.qualcomm.com>
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
ARM: dts: msm: remove PMIC SW Mode support for msm8974Pro

Remove references to PMIC SW Mode properties in msm8974pro.dtsi
because it is not required for msm8974pro to disable CX auto mode
during thermal condition.

Change-Id: Ia6c37a7de34258915bf46f515beed88599e2c768
Signed-off-by: Jennifer Liu <chihning@codeaurora.org>
ASoC: wcd9306: Add ability to enable regulator by the codec

Add support in codec driver to enable the regulator
that controls the 5V supply to the speaker.

Change-Id: Ifbbf6b2af1cd2534abacbfe5d22c6aed98e38be0
Signed-off-by: Damir Didjusto <damird@codeaurora.org>
msm: clock-samarium: Add clock support for ocmem

Add clock support for ocmem to allow ocmem
driver to work on simulator.

Signed-off-by: Neeti Desai <neetid@codeaurora.org>
Change-Id: I843c718f4afd9f9547dc4f4c259d969c6476f50c
msm: vidc: Add support for marker pass through in input buffer

- App would mark a buffer with a flag in input buffer and
  this needs to be propogated by firmware in the output buffer
- Add support to handle this feature

Change-Id: Iea810096c405ce4cdaa63ae6768eb7f5f58ecef3
Signed-off-by: Jayasena Sangaraboina <jsanga@codeaurora.org>
ARM: dts: msm: Add SMB349 device for APQ8084

SMB349 is a single path switching mode charger.  It uses BLSP3
I2C interface and uses PMIC 8084 gpio 14 to interrupt the MSM.
Add its device definition in the tree.

Change-Id: I3d38616191bf06d8d9468490c1d3aee3c10171e6
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
wcnss: Notify low vbatt level to WCNSS FW

Listen to low vbatt notification from ADC; and send this notification to
WCNSS firmware. Firmware needs to switch to low power mode, when it's a
low batt situation.

CRs-Fixed: 543439
Change-Id: Id78cbde6ca2a5d37ff52ec4feeb7ec04e38b6adb
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
ARM: dts: msm: Add cdp and mtp dts files for krypton

Add cdp and mtp device tree base files and update
msm-id and msm-board id.

Change-Id: I7a5529d4de712239b919382aa6d7c81d1669ac9a
Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
msm: smd_tty: fix section mismatch

A few methods specified with the __init flag can potentially be called
by methods that don't specify the __init flag. This poses a problem,
since the methods specified by the __init flag are freed after
initialization time.

Remove the __init flag from the methods that can be called after
initialization time.

Change-Id: I0e5d11b937922759b8962955efcc8f68ca849dbc
Signed-off-by: Brent Hronik <bhronik@codeaurora.org>
msm: clock-samarium: Add proper list of obj files for clocks

Target should compile individually when not sharing configs.  Add
proper obj files to compilation list for clock driver.

Change-Id: I8d5540ce7ae5a35b0e0d8c6684b95f6c25dbb4d6
Signed-off-by: Junjie Wu <junjiew@codeaurora.org>
msm: clock-8084: Add additional clock lookups for IOMMU

Several of the IOMMUs (JPEG/VFE/VPU) require additional clock votes
to work correctly. Add the appropriate entries for lookup.

Change-Id: I8d828f12d86f1aa36779868b61dc77eef22df8e5
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
msm:mdss: Add support for show blank sysfs entry

Currently there is no support for show blank sysfs entry
in mdss. Hence, added this entry to check if panel is
power on or off.

Change-Id: Ifa50bf373590556f88b8f8196353dffefe2d2559
Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
scsi: ufs: Active Power Mode - configuring bActiveICCLevel

The maximum power consumption in active is determined by
bActiveICCLevel. The configuration is done by reading
max current supported by the regulators connected to VCC, VCCQ
and VCCQ2 rails on the boards, and reading the current consumption
levels from the device for each rails (vcc/vccq/vccq2)
using power descriptor.
We configure the bActiveICCLevel attribute, with the max value that
correspond to the minimum-of(VCC-current-level,VCCQ-current-level,
VCCQ2-current-level).

Change-Id: I5ec09dc9b5039dcf816ca58bc1b63e3759c334ef
Signed-off-by: Raviv Shvili <rshvili@codeaurora.org>
Signed-off-by: Yaniv Gardi <ygardi@codeaurora.org>
usb: gadget: hsic: Disable usb_hsic_xcvr_clk when entering low power mode

HSIC core driver is missing disabling and upreparing the usb_hsic_xcvr_clk
clock when it enters into low-power mode. Added a call to clock disable and
upreparing API on low-power mode entry and clock enable and preparing API
on low-power mode exit for this clock. This allows saving extra power and
TCXO shutdown.

Change-Id: I2c822e15b13b76f340e936f62044058c53874328
Signed-off-by: Danny Segal <dsegal@codeaurora.org>
msm: kgsl: Fix the KGSL driver to compile when CONFIG_DEBUG_FS=n

Fix compilation errors when CONFIG_DEBUG_FS is disabled. Add an
initialization flag to the process struct rather than rely on a
pointer to the debugfs node which will always be NULL if debugfs
is not available.

CRs-fixed: 542231
Change-Id: Ic0dedbadf0241fd476e56d6e116a811697b38190
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
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>
msm: mdss: Delay overlay start until first update

Delay hardware initialization in the case of
hdmi until after after continuous splash
screen is completed. This delays iommu attach
and prevents corresponding page faults
caused by continuous splash screen use
of physical address.

Change-Id: Ia1f81544c7f32be1ac9e7513bb277ee88b612bed
Signed-off-by: Casey Piper <cpiper@codeaurora.org>
msm: clock-samarium: Add clock support for GPU.

Add clocks used by GPU in the msm_clocks_samarium lookup table.

Change-Id: Iad9ab870e383fd2330ee01a055b2c39ea79623c3
Signed-off-by: Lokesh Batra <lbatra@codeaurora.org>
ASoC: msm: qdsp6v2: Update the topology if there is no ACDB

The topology for ASM and ADM is passed down from ACDB to adsp.
If there is no ACDB, then the topology ID is zero. In the current
implementation, whenever the topolpgy ID is zero, then the default
topology is used for asm and adm. The problem arises for msm8x10
because it support only null/none topolgy. It causes audio playback
failure in factory test mode when ACDB loader is disabled by factory
test application. Update the topology to null/none from default to
cover all the platforms.

CRs-fixed: 538213
Change-Id: I8cc694d731284294fb2f8341b370e0dfeb2a7d9b
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>