Modify for AOSP

-- Remove CONFIG_AOSP, because we are ONLY building AOSP --

RIL: Fix RIL on AOSP roms using CONFIG_AOSP

This allows us to build stock kernels using the same branch as AOSP.

Signed-off-by: dr87 <nb00870@gmail.com>

LEDS: Fix LEDS on AOSP roms using CONFIG_AOSP

This allows us to build stock kernels using the same branch as AOSP.

Signed-off-by: dr87 <nb00870@gmail.com>

Bluetooth: Compile Bluedroid as its own source file using CONFIG_AOSP

Normally bluesleep will compile. When CONFIG_AOSP is enabled, build bluedroid  instead, allowing bluetooth to function on AOSP.

Signed-off-by: dr87 <nb00870@gmail.com>

Conflicts:
	drivers/tty/serial/serial_core.c
tspdrv: Add LG's timed_output based interface

Change-Id: I43383ad9e0ba4e0ba13837c0741885162cf40b63

 This is the 2nd commit message:

tspdrv: Make the timed state atomic

This should fix race conditions with fast bursts of short tones

Change-Id: I2c369da0a80dedebf7346613437d2b69d6a92c3c

 This is the 3rd commit message:

tspdrv: Add a sysfs control for timed vibrator strength

Change-Id: I66dec312e52a3c8834a93f6b8970c94a0d6af923

Conflicts:
	drivers/misc/tspdrv/ImmVibeSPI.c
G2: Zero out the kcal limits in all board sources

This fixes RGB control

Signed-off-by: dr87 <nb00870@gmail.com>
Enable BT LOCK

Change-Id: Idc413722cdb1ee94f46b3e334d2a08e9c8640a06
BU52031NVX: Add lid events to support the smartcover

Change-Id: I0589af2948f0fcc6ef2a5390023762dd5d5391d4
rfkill: Don't run btlock

It conflicts with userspace's invocations from bluedroid

Conflicts:
	arch/arm/mach-msm/lge/board-8974-g2-rfkill.c

Change-Id: Idb6023a383d1e3b43bb9bd5952378dd35b7e6d19
bluesleep: Don't wait for uart tx queue to flush before entering standby

There's no need to delay sleep for this. msm_hs_serial will do it on
its own, and this reduces the time to enter lpm

Change-Id: Ia13d44148130aaf133ea888807b5ba114936ce78

Commit by rmcc @ cyanogenmod
G2: Fix vibration bug in AOSP on new kernel

This should fix the vibrator from randomly activating

Signed-off-by: dr87 <nb00870@gmail.com>
Add bullshit device tree stubs.

LG's 4.2 aboot searches for

/soc/qcom,mdss_dsi_lgit_video
/soc/qcom,mdss_dsi_jdi_video
/soc/qcom,mdss_dsi_jdi_cmd
/soc/qcom,mdss_dsi_lgit_cmd

before booting the kernel; and it will explicitly fail to boot if they aren't
present, as defined somewhere in their aboot source. This will appease the
4.2 bootloader and allow us to boot a kernel built on 4.4 sources.

The 4.4 aboot will also append:
"mdss_mdp.panel=1:dsi:0:qcom,mdss_dsi_g2_lgd_cmd" to kernel's command line, so
adding the above to the BOARD_KERNEL_CMDLINE in the device folder is necessary
to get the panel to work. (Thanks to xda user garyd9 for pulling /proc/cmdline)

A big thank you to Dan Rosenberg (djrbliss) for loki (the exploit that allows
for custom boot images)
msm: mdss: implement overlay prepare ioctl

Overlay prepare will allow a full frame with multiple overlays to be
configured at once and perform frame level checks before being pushed to
display. This function guarantees that if the call is successful, the
frame can be displayed successfully on the screen when display commit is
called.

Change-Id: I276b6fe3e0a872a2e93170f3cea1002d3ce0dac9
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
Signed-off-by: Anusha Koduru <kanusha@codeaurora.org>

Conflicts:
	include/linux/msm_mdp.h
msm: display: Add pipe type selection in overlay request

Allow user to specify the type when requesting an overlay pipe.
If field is set the pipe type indication in the flags will be
ignored.
Change-Id: Iee51d24b96c7a2a987dc70a439342e6548dfc8fa
Signed-off-by: Vineet Bajaj <vbajaj@codeaurora.org>
msm: mdss: add retire fence support

Retire fence timeline should follow the actual panel vsync more closely.
For video mode the retire fence can be signaled along with the release
timeline with +1 offset, since this is signaled at vsync.
In case of command mode the panel vsync can be different from buffer
release timeline. To handle the command mode panel vsyncs better, create
a new timeline for the retire fence signaling.

Change-Id: If8a1eb717d733ca215275a8be4f0054091dbc147
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
Signed-off-by: houst0nn <houstonn@gmail.com>

Conflicts:
	drivers/video/msm/mdss/mdss_fb.c
Revert HAX: Match videodev headers to AOSP userspace