s4-common: usb-init: unify usb pids and add diag and PTP modes

HTC unified the msm8960 devices' USB ProductIDs in Jellybean 4.1. UMS and
MTP pids have been pulled from arch/arm/mach-msm/include/mach/htc_usb.h
which is identical for all of evita (3.18.502.6), jewel (3.15.651.16),
and ville (3.14.531.17) kernels.

Following mako as an example, PTP is introduced. The PTP pids are
copied from MTP.

Following m7 as an example, diag is introduced. acm transport is set to
tty since our msm8960 kernel does not (currently) have hsic-tty enabled.

bDeviceClass, bDeviceSubClass, and bDeviceProtocol are defined for all
connection types. The device class of rndis has been changed from Wireless
Controller to Miscellaneous Device, as mako defines it.

Change-Id: Ie3a48b0702f050bcf85cd0182cf26ba59a362347
s4-common: cpu performance profiles for recovery

Use separate cpu performance profiles for supported operations in
recovery. This commit also removes setting the usb function at boot
which is unnecessary since init.rc listens for sys.storage.ums_enabled.

Change-Id: I02b0b536786e0baf9c825a368c54779f41f58c93
s4-common: SELinux enforcing

Change-Id: Ieffee695bd314541fbabb37e9dc9854628638ff1
s4-common: Build prima_wlan into kernel.

* Remove module defines as we no longer build prima_wlan as a module
* Increase ramdisk_offset to allow to support larger boot.img

Change-Id: Ic7679cfaf74db449fbb7d023ba6492e683787e27
s4-common: Add CM performance profile definitions

Change-Id: I8aed298e6687db3878e92d711f7cb365cb8eacf2
s4-common: remove unused node permissions

Change-Id: I77100f793e7ffd6d6ed429ed68afd2902ef2ff73
s4-common: Add extended extractor to proprietary file list

Change-Id: I5fa8b5f78ff169584aaf7b2f9d62148b03a916f3
s4-common: Update post-boot script for input boost

Change-Id: I3bf3f8ba44052a7fe11a37f73a9c75aaeeb98352
s4-common: update recovery performance profiles

These devices are dual-core, so remove cpu2 and cpu3.

Change-Id: Ib5c60440a140e5ac2c408b1dc29ff071ef22b804
Revert "s4-common: disable unavailable notification light overlay"

This reverts commit ce3f78be283312783b860eede8d88f6bc29b663d.

Change-Id: I96479fa7bf8082c7a5ec4e71ead212eb2f40a2f6
s4-common: update wifi init

bt-pan: dhcpcd: Allow address claim by ARP, don't set gateway
p2p: dhcpcd: -a performs no function (see if-options.c in dhcpcd source)
wlan0: dhcpcd: set domainname as given by DHCP server, set gateway

wpa/p2p_supplicant: set disable_scan_offload=1

Change-Id: I23f23b310357e13fcbde017de8a016618a6b8514
s4-common: commonize several overlay options

- move to common:
   config_defaultNotificationColor
   config_defaultNotificationLedOn
   config_defaultNotificationLedOff
   config_autoBrightnessLevels
   config_autoBrightnessLcdBacklightValues
   config_autoBrightnessButtonBacklightValues
   config_autoBrightnessKeyboardBacklightValues

- match ordering and comments found in config file which is being overlayed

- config_enableLockScreenTranslucentDecor = true is default now

Change-Id: I0b6504b82a162aef8830ea5231f723a72505986b
s4-common: move WCNSS_qcom_cfg.ini to device tree

This allows configuration changes to go through gerrit.

Change-Id: I16cd68f32fd68aead4177cce54e0fbfb9361e551
s4-common: update WCNSS_qcom_cfg.ini

- Enable 5GHz channel bonding
- Support early beacon termination, allowing radio to be turned off
  after TIM IE to save power
- Specify longer data inactivity timeout when in power save
- Use CLPC/SCPC
- Small cache for scan results

Change-Id: I35f281e14d7f36ed5d922a0f9f831e4ee8cac60d
s4-common: Move cm.dependencies to common

Change-Id: I7d31bbf6d0168dc8705d722f33b5e03add6ce28e
s4-common: Remove post-boot script

* Bring post-boot script items into main init script

Change-Id: I40ed44019c9098fd9b2da5da6e18e0fe91145e16
s4-common: Switch to ondemand governor

Change-Id: Id1cfb855dd2183140e33112d09e68cd0a6dc3b13
s4-common: Create firmware symlinks at build time

Change-Id: I25af751f22ded9d438b304cbe079acef9f0ed930
s4-common: disable secure discard for ext4 wipes

Users are reporting really long wipe times in recovery on ext4
partitions.

Change-Id: I2f326622917266e9f43ea12da85889ca843008ca
Merge remote-tracking branch 'cm/cm-11.0' into kk4.4

Conflicts:
	overlay/frameworks/base/core/res/res/values/config.xml

Change-Id: I9aa0b0a0873a29ce862c229755f4f33dc5a7fc85