IO-Scheduler: Introduce SIO scheduler
defconfig: set sio as default io-scheduler
power: pm8921-charger: fix the order of forcing 19.2Mhz and exit LPM

Switching out of LPM before forcing 19.2Mhz can cause the PMIC to
lockup causing the PMIC to not trigger usb insertion interrupts while
asleep.

The charger is switched to LPM while the apps is suspended. LPM means
that when a charger is plugged in the charger runs from 19.2Mhz or 32Khz
based on sleep bar. When a charger is absent it runs of 32Khz regardless
of sleep bar.

An issue was observed where USB insertion was not detected and the
device continued to be in suspend state. Upon a subsequent wakeup
from pwr key or any other interrupt, it will detect usb insertion.

Switching the order of exiting LPM and forcin 19.2Mhz in the resume path
fixes the lockups. The root cause was that the charger was locked up
already in a previous resume and so did not respond to the usb insertions.

Change-Id: I365b505858e59d647ff49f8bb3c06fbfef2f7328
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
power: pm8921-charger: usb ovp trim for pm8921

This change adds the usb trim table for two
variants of PM8921. The correct PMIC is chosen
based on PM8921_USB_TRIM_SEL_BIT.

Change-Id: If0b832a2d571dff37fe5f7ea7e4b928aa60f9d03
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
power: pm8921-charger: vote D0 when running kickstart

There is a small window when the PMIC could lock up while
running the kickstart routine. If PMIC sleeps right while
kickstart is run, it causes a short sleep which is known
to cause PMIC locksup.

To prevent these, specifically vote for D0 clock while
running kickstart which guarantees that the PMIC will not
sleep.

Change-Id: I9ea27ef73098d0ec5e8391352ee005d8a78daa9a
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
power: pm8921-charger: Add delay after turning on D0 (TCXO) clock

On APQ8064, TCXO cannot be turned off before its warm-up period (4ms).
This is not required on the platform which have a CXO. Add a warm-up
delay after turning on D0 (which turns on the TCXO).

Change-Id: I252372c35a9fdfaf4a9fade1594936b05c1b5745
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>