msm: acpuclock-8064: Final PVS Table Data for 8064v2

Update data from preliminary values to final data.

Change-Id: I2ab9caa46d2bfabcd24a1ece7bd69296d8c8cde0
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
msm: acpuclock-8064: Add support for 8064v1.1 FASTER PVS bin

Add updated PVS data.

Change-Id: I54d2e03896af1f0ac00734dc8673eed54fdcd346
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
msm: acpuclock-8064: Add PVS tables for 1.7 GHz parts

Add all seven PVS bins.

Change-Id: Ifa49a8e81f5fe2c478cf5ff7545c25c4f7430d6e
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
Add build/clean kernel script

Change-Id: I50a9bff4031ed6fd2441d9dd6bba6b0a4ebef9f3
Kernel script: Change Toolchain to "arm-eabi-4.6"

Change-Id: Ic95350d9c743ed5d312e0fba11b4483654937d79
kernel scrypt: rename readme file.

msm8x60_readme.txt -> script_readme.txt

Change-Id: I3c14a64c26eeca8b7d0b557ba8bbfc3909dbb39d
kernel scrypt: change toolchain download link

Change-Id: I392e0cdc80a33c6714cf616440ded03add1f47f4
gitignore: ignore files generated by the kernel build script

Change-Id: I9c996d26a5612db388c218ae35be9a842397fc1e
ASoC: WCD9304: Fix Headphone + Lineout concurrent audio playback

During concurrent playback on headphone and lineout, it is observed that
headphone is enabled in class G mode. This causes incorrect routing to
lineout. Fix by making sure headphone does not operate in class G mode
when there is concurrent playback on headphone and lineout.

(cherry picked from commit df93d70ca9026c2db8c64fb779c9485d97eb24b8)

Change-Id: I245e89b7bfe7b3f1e47c2a7c506395c3e0d718f6
CRs-fixed: 421247
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
msm: rpm: Correct MSM8930+PM8038 resource mapping

The mapping for several RPM resources for the MSM8930+PM8038
target is incorrect.  Add and update enum values in order to fix
the mapping.

Without this fix, requests made for the following resources will
appear as 0 when received by the RPM processor: NCP, CXO_BUFFERS,
USB_OTG_SWITCH, HDMI_SWITCH, QDSS_CLK, and VOLTAGE_CORNER.

The incorrect VOLTAGE_CORNER mapping results in the VDD_CX
regulator always staying at a low voltage even when the clock
drivers have requested a high voltage immediately before scaling
up the Krait core frequency.  This could lead to stability issues
during high load use cases.

Change-Id: I9efcf8185f9f3a017760c72baa3b8fdb213c770a
CRs-Fixed: 426912
Signed-off-by: David Collins <collinsd@codeaurora.org>
(cherry picked from commit 64c86fbb30db169d8cebfd12095592c66e9277e2)

Signed-off-by: Dhivya Subramanian <dthiru@codeaurora.org>
msm: board-8930: Remove force mode configurations for PM8917 S3 and S4

Change the active and sleep set force mode configurations for
SMPS 3 and 4 on MSM8930+PM8917 targets to "none".  This ensures
that crashes to not occur due to instability caused by using
"auto" mode.

(cherry picked from commit 1c9d4124676c5c9b5d68e83909bc0763e4880e81)

Change-Id: I7d081f17011954d8b578b43890f35681d87b6859
CRs-Fixed: 432618
Signed-off-by: David Collins <collinsd@codeaurora.org>
msm: display: include msm-specific ion header

All msm_ion clients need to use <linux/msm_ion.h> instead of
<linux/ion.h>

(cherry picked from commit 6c7b2d322826aaf12b7682079cadb8ac9179fbce)

Change-Id: I5ea11254adc7a9f1ae4c9afbcfc20f9c78d789bb
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
msm: board-8064: include msm-specific ion header

All msm_ion clients need to use <linux/msm_ion.h> instead of
<linux/ion.h>

(cherry picked from commit cc827ace8a6d523156ebd3b2a882310a41a0973a)

Change-Id: If8d862c0b93c1c8c045da5aa8083b49e53a3cc7d
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
msm: board-8930: include msm-specific ion header

All msm_ion clients need to use <linux/msm_ion.h> instead of
<linux/ion.h>

(cherry picked from commit d0b5da0404e57339dd15a2e5748403e5d284931f)

Change-Id: Ied606d380d4dbcb92886458d04c4e427f16b159d
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
gpu: ion: include msm-specific ion header

All msm_ion clients need to use <linux/msm_ion.h> instead of
<linux/ion.h>

(cherry picked from commit af2e5c54827a85efc3662df70ff8a4e42f91747c)

Change-Id: I5f02785623eaf622fd4143d5a1f476b3c7f1a801
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
gpu: ion: move msm-specific ioctls to custom_ioctl

To avoid collisions with future ioctls that may be added to ion,
msm-specific ioctls should use the `custom_ioctl' interface provided
by struct ion_device, as originally intended.

(cherry picked from commit d88b8eb288bd2d4c5da827d546c4ce56ff169bfb)

Change-Id: If5b190d703c25b3f287a7d4a4f66500bb83f6618
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
gpu: ion: Add compatibility with future changes

Several changes are pending to be pulled in which are
not compatible with our changes:

* a new field to the allocation ioctl is added
* the ioctl numbers for cache flushing need to be changed.
* the size of the structure passed to ION_IOC_IMPORT
has changed

Add these changes now until full changes can be pulled
in the future.

(cherry picked from commit 0eec15100e6fc46e7ae5b7cd18dfe3a329661a1f)

Change-Id: I571a6096ebbf59c80a5730480da3a5c704e27edc
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
ion: remove ion_validate_buffer_flag

ion_validate_buffer_flag is no longer needed since its only callers
are moving to a new format for buffer flags.

(cherry picked from commit b6e920c1e371d940f2e3824ffaf157132b95284c)

Change-Id: Id7336257fd8339c3097d73f36a58a0e7ce4abbc0
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
gpu: ion: IOCTL return success when error occurs

ION_IOC_IMPORT may return success when an error occurs. Add correct
error handling to ION_IOC_IMPORT.

[mitchelh@codeaurora.org: re-adding patch that fell out]
(cherry picked from commit 865e97f4943d9bf0c11763b694569fb4797c52b0)

Change-Id: I170f8a7dfc6e00e837530d14d6a14dbd40d28726
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
ion: change ion buffer flags

This syncs up our ion buffer flags in ion.h with upstream (using
ION_FLAG_CACHED instead of CACHED and UNCACHED).

[lauraa@codeaurora.org: Remove file not in tree]
(cherry picked from commit d117f2544498e98c62436237d6da88e89f4c7e0b)

Change-Id: I3f60f51d1b0f77ebc6cba49f7950fc62e7c9dd96
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>