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
Revert "usb: gadget: Handle function control requests before set config"

This reverts commit 257b508ab9f4e6eb5ff6ded71c1a1215acb70c32.
Revert "usb: gadget: allocate device-global string IDs when binding"

This reverts commit 21ed2b1087bf8397c07a57e95a764ab2b25c782f.

Change-Id: I91f4e14402186532804d3a17f41391b6747261f6
Revert "usb: gadget: Add support for more than one configuration in android gadget"

This reverts commit 2a65e7c140d8d97d1fa4e14879c95860b65fabbc.
Revert "usb: gadget: Add support for multiple android gadgets"

This reverts commit 23dc77c36ac1d63e3c452f16592daa3fe0f9253a.
msm: power: restore power drivers to msm-3.4 tip

Change-Id: Ifb13f7fcf4e2ef7e4a8f3cdbfe1969ee1e529026
msm: 8064: Add connector resistance

The adjust vdd max algorithm in the charger driver needs connector
resistance to set the battery voltage appropriately.

Set the connector resistance value from the board file.

Change-Id: If934783e2910c8456090c8926e934138abb75222
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>
power: pm8921-charger: remove old workarounds

PMIC8921 revision 1.0 and 1.1 are no longer supported by software.

Remove the applicable workarounds from the driver.

Change-Id: I8c99fcbbf2f7229728236ae1059f4c9cb8dbb065
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
power: pm8921-bms: use consistent temperature units

There is bug in the code where interpolate_pc is passed temperature in
DegC at one call site vs deciDegCelcius at other.

Use degC consistently.

Change-Id: I3e5e92e39adf904e62d4c5ffcb6d370c0655f7cf
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
power: pm8921-bms: report higher soc even when called within a second

The current code puts a restriction in the charger scaling algorithm
that state of charge (soc) should be called after a second. If it is
called earlier, simply report the previous soc.

There are user space applications that call soc every few milliseconds.
The soc appears stuck for such applications.

Remove that restriction.

Change-Id: I22d2dbdae5c9c859d4baca2bdb7bea71da09b85b
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
mfd: pm8xxx: provide api to read restart reason

The BMS driver needs to know the restart reason of the pmic. Add
an api in the pm8xxx design to provide the restart reason.

Change-Id: I0bbad22c5fed8c32dd7de387194e94c8d4b9ad75
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
power: pm8921-bms: use restart reason for usb detection

When the charger is not initialized it returns -EINVAL when asked
whether usb charger is plugged in. Use the restart reason to check
if we started with a charger insertion.

Change-Id: I2e8fcb4a15af3a66331a921d378bfd5d2dfe4533
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
power: pm8921-bms: update power supply class if soc changes

There is a hearbeat loop that queries the state of charge
(soc) every few seconds. If the soc changes multiple times in
that period, we miss updating the userspace of those changes.

The userspace will notice a big step in soc, which is undesirable.
Update the userspace when the calculated SOC changes.

Change-Id: I2c149e6edd7c194e7f31ece95e2003ffde935806
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
power: pm8921-charger: PMIC version check for workarounds

Since the revision registers across different PMIC chips
may match up some workarounds may be applied to chips
that do not require them and cause issues.

Fix this by adding version checks to these workarounds
to make sure that the workarounds are applied to the correct
PMIC version.

Change-Id: I8af031570466a88656c89ee7764f78c5ec14d247
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
power: pm8921-charger: workaround for active charger path

The active path bits in PBL_ACCESS1 register don't reflect the actual
status until some delay. This delay varies from few millisecond to
three seconds.

The unplug detection loop relies on these bits reflecting the correct
status for proper operation. Due to this bug the unplug worker wont
run when a charger is plugged in.

Update the code such that if it sees nothing set in the active path,
it still reschedules the unplug detection worker.

Change-Id: Ib99cd49623698d0295bc3c3cf880225495d530cb
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
power: pm8921 and ltc4088-charger: add pm_power_set_property

Add pm_power_set_property_usb API to support the power
supply framework APIs which allow changing the type of
a given power supply.

This is required to avoid the use of PMIC specific APIs
in the USB driver and encourage the use of the power
supply framework.

Change-Id: Ifba2bd1248e8bb47a0700dec4d321d32db4f2066
Signed-off-by: David Keitel <dkeitel@codeaurora.org>