GPU 3D OC down to 300MHz from 320MHz
GPU 2D OC up to (27MHz, 128MHz, 178MHz, 228MHz) from (27MHz, 96MHz, 160MHz, 200MHz)
Sweep2Wake (default = no backlight)
USB forced fast charge

Thanx to Chad Froebel for posting his mod for the Galaxy Nexus !
(http://rootzwiki.com/topic/19720-kernel-patch-devs-only-force-ac-fast-charging/)
Default two_phase_frq set from 1134000 to 1026000
USB fast charge (add files to index)
Config for kernel v1.1 added
GPU 2D OC back to (27MHz, 96MHz, 160MHz, 200MHz)

Rollback of 2d GPU commit :

https://github.com/yank555-lu/msm8660-htc-ics/commit/cab5bb672ed02eb45ff5146b2cbf838dc0ad6b67
Sweek2wake mode now switchable through "/sys/kernel/sweep2wake/s2w_switch" while running Android system without rebooting.

Possible values are (unchanged) :

0 - sweep2wake disabled
1 - sweep2wake enabled with backlight
2 - sweep2wake enabled without backlight

Original configuration method via cmdline is still taken into account at boot.

NB: Default value now is 2, and anything above 2 will behave like 1.
Sweek2wake mode now switchable through "/sys/kernel/sweep2wake/s2w_switch" while running Android system without rebooting.

Possible values are (unchanged) :

0 - sweep2wake disabled
1 - sweep2wake enabled with backlight
2 - sweep2wake enabled without backlight

Original configuration method via cmdline is still taken into account at boot.

NB: Default value now is 2, and anything above 2 will behave like 1.
Fixed : Original configuration method via cmdline is still taken into account at boot.

Sweek2wake mode now switchable through "/sys/kernel/sweep2wake/s2w_switch" while running Android system without rebooting.

Possible values are (unchanged) :

0 - sweep2wake disabled
1 - sweep2wake enabled with backlight
2 - sweep2wake enabled without backlight

Original configuration method via cmdline is still taken into account at boot.

NB: Default value now is 2, and anything above 2 will behave like 1.
esthetics...
Config for kernel v1.2 added
Relocated s2w_switch within sysfs to /sys/android_touch/sweep2wake as suggested by show-p.

showp1984 :

It would be better to use android_touch_kobj for this, since it is only a subscript of the touchdriver.
(/sys/android_touch/sweep2wake)
USB forced fast charge v2

Soft force mode has been added (= mode 2).

In this mode fast charge will only kick in if no USB device is detected (as should be the case for wall/car chargers). Please note that in this case fast charge will NOT work on a USB 2.0 and 3.0 port on a computer !

Use sysfs interface to change behaviour :

 * /sys/kernel/fast_charge/force_fast_charge (rw)
 *
 *   0 - disabled (default)
 *   1 - substitute AC to USB charging always
 *   2 - substitute AC to USB charging only if no USB peripheral is detected

For informational purposes I've also added a read-only sysfs file that indicates the current USB state :

 * /sys/kernel/fast_charge/USB_peripheral_detected (ro)
 *
 * 0 - No USB device currently attached
 * 1 - USB device currently attached

Consider this beta, it needs testing !
USB forced fast charge v2

Soft force mode (2) is validated.

Use sysfs interface to change behaviour :

 * /sys/kernel/fast_charge/force_fast_charge (rw)
 *
 *   0 - disabled (default)
 *   1 - substitute AC to USB charging always
 *   2 - substitute AC to USB charging only if no USB peripheral is detected

For informational purposes I've also added a read-only sysfs file that indicates the current USB state :

 * /sys/kernel/fast_charge/USB_peripheral_detected (ro)
 *
 * 0 - No USB device currently attached
 * 1 - USB device currently attached

For informational purposes I've also added a read-only sysfs file that indicates the USB port type : (new)

 * /sys/kernel/fast_charge/USB_porttype_detected (ro)
 *
 * The port type will be returned in clear text.
USB forced fast charge v2

Corrected wrong detection of USB cable unplugged to reset "USB_porttype_detected", just informational, so nothing important, but it was wrong nonetheless and needed correcting.

Use sysfs interface to change behaviour :

 * /sys/kernel/fast_charge/force_fast_charge (rw)
 *
 *   0 - disabled (default)
 *   1 - substitute AC to USB charging always
 *   2 - substitute AC to USB charging only if no USB peripheral is detected

For informational purposes I've also added a read-only sysfs file that indicates the current USB state :

 * /sys/kernel/fast_charge/USB_peripheral_detected (ro)
 *
 * 0 - No USB device currently attached
 * 1 - USB device currently attached

For informational purposes I've also added a read-only sysfs file that indicates the USB port type :

 * /sys/kernel/fast_charge/USB_porttype_detected (ro)
 *
 * The port type will be returned in clear text.
Merge pull request #9 from yank555-lu/mainline

Mainline