arm: tegra: grouper: Update board revision to misc module.

add enum members to define PCBA board for ER2/ER3/PR1/PR2 according
to HW schematics of PCBID[5:3].

Change-Id: I49b1653981f8989e49de468a0dc930ed819b3ce9
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/48271
Reviewed-by: Yeh Paris <paris_yeh@asus.com>
Tested-by: Yeh Paris <paris_yeh@asus.com>
Reviewed-by: Sam hblee <Sam_hblee@asus.com>
Signed-off-by: paris_yeh <paris_yeh@asus.com>
[Display] A new panel setting for 60 fps

Ref:
NVBUG#979462
[ASUS/Nakasi/T30S/JB] Tuning arguments of Panel setting

Change-Id: I9a936a3fab0dd4c0606e6acc82b3df79f40dabe6
arm: tegra: grouper: Remove unnecessary DVFS table for kai.

Change-Id: If7a4b94bb45269861359604f0bb8ea6f44664f0d
Signed-off-by: paris_yeh <paris_yeh@asus.com>

Conflicts:
	arch/arm/mach-tegra/board-grouper-memory.c
arch/arm/mach-tegra/board-grouper-panel.c: fix uninitialized variable

Signed-off-by: Iliyan Malchev <malchev@google.com>
ARM: tegra: grouper: clean up board id definitions

Change-Id: I9f23f3534d6031d64ff3b92cb4e6a1f454c3eb86
Signed-off-by: Dima Zavin <dima@android.com>
[grouper] DIDIM brightness adjustments

Change-Id: I83428f8c6a7d0111d7f183e3d1179de1bbad34e4
asoc: codecs: spdif: Add grouper support

Enable grouper support for bias level setting and addition of
dummy widgets as required by new ALSA driver.

Change-Id: I7263c1b95e7f9d6227dd1366f46cf08e860c652f
Signed-off-by: Daniel Solomon <daniels@nvidia.com>

Conflicts:
	sound/soc/codecs/spdif_transciever.c
asoc: tegra: pcm: Add grouper support

Enabled grouper support for bias level setting.

Change-Id: I99dec5d74984c2471145492c17a5c30d721d27af
Signed-off-by: Daniel Solomon <daniels@nvidia.com>

Conflicts:
	sound/soc/tegra/tegra_pcm.c
arm: tegra: grouper: memory: update DVFS table (ver: 0704_15R7)

According to Tegra3 Errata v6 #26 (Rare memory controller deadlock
condition)

Bug 1013627 Rare memory controller deadlock condition (regarding to EACK)
Bug 955082

Change-Id: I696a275b3921e485da195bf4d5f772c2d0050beb
Signed-off-by: Haley Teng <hteng@nvidia.com>

Conflicts:
	arch/arm/mach-tegra/board-grouper-memory.c
Revert "arm: tegra: grouper: memory: update DVFS table (ver: 0704_15R7)"

This reverts commit 2802421301210968e6674c2899a3196814ea631f.
arm: tegra: grouper: enable hotplug and power_down_on_bus_suspend on otg port

Change-Id: I7e70fe90379679710e6ce6e98c5ead7127b66e0d

Conflicts:
	arch/arm/mach-tegra/board-grouper.c
arm: grouper: pinmux: Configure pins for PCBID and PROJECTID

Additional pins are preserved for hardware identifiers to
differentiate projects, board revision, gps, audio codec, and
WIFI/BT modules.

In addition to output buffer disabled, we enabled internal
pull-down resistor of additional new pins to avoid floating on
nakasi devices before reading.

	---------------------------------
	|  Name	    |   MPIO Name | New |
	---------------------------------
	| PCB_ID0   |   KB_ROW4   |  Y  |
	| PCB_ID1   |   KB_ROW5   |  Y  |
	| PCB_ID2   |   KB_COL4   |  Y	|
	| PCB_ID3   |   KB_COL7   |  N	|
	| PCB_ID4   |   KB_ROW2   |  N  |
	| PCB_ID5   |   KB_COL5   |  N  |
	| PCB_ID6   |   GMI_CS0_N |  Y  |
	| PCB_ID7   |   GMI_CS1_N |  Y  |
	| PCB_ID8   |	GMI_WAIT  |  Y  |
	| PCB_ID9   |   GMI_WP_N  |  Y  |
	---------------------------------
	| PRJ_ID0   |   GMI_CS4_N |  Y  |
	| PRJ_ID1   |   GMI_CS6_N |  Y  |
	| PRJ_ID2   |   GMI_CS2_N |  Y  |
	| PRJ_ID3   |	GMI_CS3_N |  Y  |
	---------------------------------

FIXME: Reset these new pins after reading for power saving.

Change-Id: I5fbd73d625616f620438b1aaa1316d539410feab
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/53256
Reviewed-by: Sam hblee <Sam_hblee@asus.com>
Signed-off-by: paris_yeh <paris_yeh@asus.com>

Conflicts:
	arch/arm/mach-tegra/board-grouper-pinmux.c
	arch/arm/mach-tegra/pinmux-t3-tables.c
arm: grouper: misc: Extended pcbid pins and added projectid pins

Added additional new pins of pcbid and projectid for hw identifiers.

Export a sysfs located under
/sys/devices/platform/grouper_misc/grouper_projectid and a function
named grouper_get_project_id() to differentiate projects at run time.
Besides, provide a set of grouper_query_*() for telling bt/wifi module,
audio codec, and gps module according to PCBID[9:0] bit-definition

Concatenate PROJECTID[13:10] with PCBID[9:0] in new hexdecimal
format under /sys/devices/platform/grouper_misc/grouper_pcbid.

Hook up grouper_misc_reset() for power saving while running on nakasi.
This is used to reset extended pins(unused) with input buffer disabled
and no-pull, and clean up corresponding gpio's registration.

Change-Id: I069a8d8f59f4ec3b5b16c1a4c0e241b8cf0e46b1
Signed-off-by: paris_yeh <paris_yeh@asus.com>
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/53591
Reviewed-by: Sam hblee <Sam_hblee@asus.com>
arm: grouper: misc: Adjust init. sequence and reset extended pins

For telling project identification in board-files relevant init,
(eg, grouper_pinmux_init()), make kernel misc module well-prepared
in the begining. In addition, after reading pcbid value, reset all
extended pins and clean up corresponding gpio's resources while
running on nakasi.

Change-Id: I1839ad87dfcf86be6890a9cb3941a7f3004890fb
Signed-off-by: paris_yeh <paris_yeh@asus.com>

Conflicts:
	arch/arm/mach-tegra/board-grouper.c
arm: mach-tegra: grouper: Fix up init a bit
ARM: tegra: grouper: set 'min_emc_clk_rate' as 102MHz for DC0

Change-Id: I983e54ddc0408d84b6e3331de90b811c75de1bfa
Signed-off-by: Haley Teng <hteng@nvidia.com>
grouper: keys: Report valid key status when pressing and releasing

Remove redundant key reporting in every resume during PM tranistion

Change-Id: I3e32dc6d00e1e3c9676ab6a75a0345f43661ff60
Signed-off-by: paris_yeh <paris_yeh@asus.com>
grouper: pinmux: Set no-pull to existing PCBID and PROJECTID pins

Change-Id: Ia52600842e54a6837a19c3a9de785c20350ae397
Signed-off-by: paris_yeh <paris_yeh@asus.com>
grouper: misc: Redefine PCB_ID8 and add board revision for tilapia

For backward compability of shipped products, change PCB_ID8 from
GMI_WAIT to GMI_CS2_N and re-assign GMI_WAIT to PROJECT_ID2. Added
PMIC's identification to PCB_ID8 for telling TI or Maxim PMU.

Added board revision to declaration for tilapia and skip resetting
to existing PCBID pins. Separate board revision of ER into two stages.
Although PCBA is the same for ER1 and ER2, RF releavnt stuff are
changed to ER2.

Change-Id: I8054581595efe2b0ef26640dec2d3c4461e5f73c
Signed-off-by: paris_yeh <paris_yeh@asus.com>
For power tree of TI PMU, sync the board-grouper-power-ti.c to board-cardhu-power.c

Change-Id: Ib0696d7e5e0c7431ed16c0c79828bc196541791c
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>

Conflicts:
	arch/arm/mach-tegra/board-grouper-power-ti.c