Touch: Update touch firmware and notify power source

(i) Update firmware to B018.
(ii)Notify USB and AC power source to touch.

Change-Id: I2fa75448ac0ab547e1e4110a7563c967101ced3a
add cyanogenmod_grouper_defconfig

cped from tegra3_android_defconfig
grouper: add cifs module

Change-Id: Iac84f9a29accedd4da57c78036507925b658f5b4
USB: gadget: f_audio_source: Fix error handling and increase packet size

Fixes watchdog reset on USB disconnect
Larger packet size fixes performance in fullspeed mode

Signed-off-by: Mike Lockwood <lockwood@google.com>
USB: gadget: f_audio_source: Fix use after free in audio_unbind

When USB was disconnected, we were freeing our audio_dev struct in audio_unbind
before the audio system had cleaned up, resulting in a hang in audio_pcm_close.
We now statically allocate the audio_dev struct to avoid this problem.

Change-Id: I58ad21eaa20dcf4aa74ee614ef3b6ed2c91d52a1
Signed-off-by: Mike Lockwood <lockwood@google.com>
Add TI's PMIC power tree.

During board initialize, use PMU ID pin to select correctly power tree.

Change-Id: Iff35737cdf2cc389aef704c44c1aa1964871521f
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/56775
Reviewed-by: Sam hblee <Sam_hblee@asus.com>
Tested-by: Sam hblee <Sam_hblee@asus.com>
upgarde PMU driver to 16r4.

Change-Id: I16a76629d23c4b0c1eead371309e300566d14ab6
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/56809
Tested-by: Singhome Lee <singhome_lee@asus.com>
Reviewed-by: Singhome Lee <singhome_lee@asus.com>
mfd: tps6591x: Implement proper power off sequence.

Implementing proper power off sequence.

bug 955418

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit c5211e853cbb31feecfdf9a748846467dacec608)

Change-Id: Id3efaebefbcbb1dee85bb47b56b20b9b6358f421
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/56914
Reviewed-by: Singhome Lee <singhome_lee@asus.com>
Tested-by: Singhome Lee <singhome_lee@asus.com>
mfd: tps6591x: Avoid possible race condition

Add a delay to reflect regulator changes in HW

bug 955418

Change-Id: Id9b846b2a4d158b81c067c1e948712bc8a103e11
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/56915
Reviewed-by: Singhome Lee <singhome_lee@asus.com>
Tested-by: Singhome Lee <singhome_lee@asus.com>
For power tree of TI PMU, sync the board-grouper-power-ti.c to board-cardhu-power.c

Change-Id: Idc18855561830c5b64d9585efe782c2c829eac53
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/56919
Reviewed-by: Singhome Lee <singhome_lee@asus.com>
Tested-by: Singhome Lee <singhome_lee@asus.com>
To avoid warm reboot fail.

The shutdown function of TPS6591 will disable eMMC core power (LDO1),
it will cause warm booting fail.

Change-Id: I2b3ed26f6b5dcf32ec24f1245b342e827e2579ba
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/57195
Reviewed-by: Singhome Lee <singhome_lee@asus.com>
Tested-by: Singhome Lee <singhome_lee@asus.com>
Use the misc function to query PMIC ID.

Change-Id: Ia13e6ca5369b056b3987579f72af3ad0bbdf1750
remove "vdd" from fixed_reg_en_3v3_sys_supply.

Our Nakasi + TI circuit already give NCT a power supply which is alwasy enabled. We don't need
"vdd" from  fixed_reg_en_3v3_sys_supply.

Change-Id: I02b9bf6ee8ee1e2c28bc0a331bc8a9785c943b0e
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/57520
Reviewed-by: Singhome Lee <singhome_lee@asus.com>
Tested-by: Singhome Lee <singhome_lee@asus.com>
arm: grouper: pinmux: Configure a new pingroup GMI_CS2_N for PCBID

A new pingroup, GMI_CS2_N, is preserved for hardware identifier to
differentiate PMIC modules

        ---------------------------
        |  Name     |   MPIO Name |
        ---------------------------
        | PCB_ID3   |   KB_COL7   |
        | PCB_ID4   |   KB_ROW2   |
        | PCB_ID5   |   KB_COL5   |
        | PCB_ID8   |   GMI_CS2_N |
        ---------------------------

Change-Id: I5a9960e6f42328efcd4eec0f2d7cbe00cb155da5
Signed-off-by: paris_yeh <paris_yeh@asus.com>
grouper: misc: Add PCB_ID8 and redefine board revision for nakasi

Added PMIC's identification to PCB_ID8 for telling TI or Maxim PMU.

Fixed board revision to declaration for nakasi ER3/PR1/PR2 stage.

Change-Id: I1b94fcd475027fce24b90bf8800934fba868b701
Signed-off-by: paris_yeh <paris_yeh@asus.com>
arm: usb_phy: decide the vbus irq by pmu hw pin.

Change-Id: Ia81d4ff9986daf8110cfb2848f9e6fdef1920c30
Camera: add TI PMIC support

Change-Id: I8ec0454758641e7472c4e12477d397f6b78f0ce0
Mask tps6591x's GPIO4 falling-edge detection interrupt in shutdown sequence.

The purpose is to avoid device powering on while removing cable.

Change-Id: If660de39a62e4885715be4d06e049570ef026a39
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/57567
Reviewed-by: Singhome Lee <singhome_lee@asus.com>
Tested-by: Singhome Lee <singhome_lee@asus.com>
grouper: misc: Fixed bug to PMIC's identification API

Right shfit three bits to reflect pin status

Change-Id: I2e69c2a2b73cdab25d18091ee877ec9478a496f1
Signed-off-by: paris_yeh <paris_yeh@asus.com>
Set as-instr to use printf intsead of echo

as-instr was hardcoded to use /bin/echo with the -e option.
Non-GNU systems like MacOSX would fail and cause compiler errors.

Since BSD echo does not have the -e option (escape backslashes)
prinf was used instead would should be more friendly cross-platform

Specifically with the new OSX toolchain it caused the following
error:
  Error: selected processor does not support ARM mode `smc #0'

This was caused by $(call as-instr,.arch_extension sec,+sec) failing
since it was using echo -e.

See: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/echo.html

  "It is not possible to use echo portably across all POSIX systems
   unless both -n (as the first argument) and escape sequences are
   omitted.

  The printf utility can be used portably to emulate any of the
  traditional behaviors of the echo utility as follows (assuming
  that IFS has its standard value or is unset)

  New applications are encouraged to use printf instead of echo."

Change-Id: I558ec343e9bb8d449e1af710d329b4dc76743a05