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 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>

Conflicts:
	arch/arm/mach-tegra/board-grouper.c
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>
To erase the registers of TPS6591's RTC alarm to avoid the device power-on by RTC alarm.

Change-Id: I8253b060d624c1fc0756d908d0e33186152f8aa6
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/58048
Reviewed-by: Singhome Lee <singhome_lee@asus.com>
Tested-by: Singhome Lee <singhome_lee@asus.com>
When user power off the device with USB/AC cable plugged, it will reboot the device
to the charger mode.

The same way is failed for Nakasi with TI PMIC and device looks like hard-hang when
rebooting to charge mode. So we need the new patch to fix it.

Change-Id: I8dd4a9c1d1f9c12dd82390af99101b67dbe7d572

Conflicts:
	kernel/sys.c
mmc: tegra: Disable card and host clk separately

Disable card clock before disabling internal clock to
ensure that there are no abnormal clock waveforms.

Bug 947058

Change-Id: I85b279d391191a882fd32662a430c8ec794c8a9d
Signed-off-by: paris_yeh <paris_yeh@asus.com>
arm: tegra: grouper: ti-pmu: set ldo1 as 'always on'

In order to avoid unexpected side effect on suspend/resume function,
we do the same setting on maxim PMU keep ldo1 always on.

Change-Id: I69ee4128118f32a30449fec8c1935942243bde4e
Signed-off-by: Haley Teng <hteng@nvidia.com>
mmc: set emmc vcore voltage to 3.0V

per EE's request, set eMMC core voltage to 3.0V.

Change-Id: I710bf98a20a64100169a24d64bc7e0d968d65a83