arm: tegra: E1239: Add TI aic326x support

1) Add latest TI aic326x codec driver support
2) Dmic support for TAI

Bug 1034241

Change-Id: I8db5223fd203a4e8f93f159a9c654486831f08a1
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/125265
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
arm: tegra: E1239: Fix LP0 audio stop issue

Fix audio stop issue after resuming from lp0.

Bug 1039326

Change-Id: Ieb586b614ffecc9d149213fbfd3cbb3198088725
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/127562
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
ARM: tegra: enterprise: set I2S as slave mode.

Setting default I2S mode as slave. This will help in power
optimization of around 4mW.

Change-Id: Ic2d702c332283bd0f6c4f73615e8097fb3b16ef9
Signed-off-by: Ankit Gupta <ankitgupta@nvidia.com>
Reviewed-on: http://git-master/r/122943
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
arm: tegra: xmm: adding callback for L0 sequence.

adding callback of xmm modem for L3->L0 power sequence.

Bug 1030815

Change-Id: I4997f56819726a55fc8268a1011bc98ff6baf8ca
Signed-off-by: Shawn Joo <sjoo@nvidia.com>
Reviewed-on: http://git-master/r/122960
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
arm: enterprise: add device tree support for enterprise

Enable device tree support for enterprise by adding board
compatible table.

Bug 1001225

Change-Id: I64038ce47771148f7cf2f1d53503d11729ac56b8
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/116608
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
arm: tegra: remove hsic phy params from boards

As HSIC phy params are not customizable, removing
them from board files.

bug 1024260

Change-Id: I6b7702c95810c683ab3d9f79e975657f3f601cd0
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/119300
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
arm: tegra: enterprise:	Use pll_p as clk source for PWR_I2C

Using pll_p as clock source for PWR_I2C and set bus frequency
to 390Khz to make clock divider as 0x82.

Bug 1001924

Change-Id: Ib7936b0da9a754cc6b4858eb40a941eee606ac65
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/114577
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
arm: whistler: add device tree support for whistler

Enable device tree support for whistler by adding board
compatible table.

Bug 1001225

Change-Id: Ic945d70894fe2deb5039106e794b7fa51c5604bb
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/116609
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
ARM: tegra: ventana: get rid of tegra_gpio_enable()

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

Change-Id: I870c361cfcfff949620c0518afb324faeb5879d3
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119609
arm: ventana: add device tree support for ventana

Enable device tree support for ventana by adding board
compatible table.

Bug 1001225

Change-Id: I3f20c1a7966aff1a8a5fbfc1a7ccf2790419be70
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/110203
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
arm : tegra2 : do not power off the phy in suspend

Since there is no PMC available in tegra2
we will not be able to get any remote wakeup events. Hence do not
power of the phy during usb suspend.

Bug 1166740

Change-Id: I882066a283af2e574b111da3472eb3f8f8a9d6eb
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/160593
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
ARM: tegra: ventana: disable usb1 vbus gpio

disable the usb1 vbus gpio in kernel and not depend on bootloader
to disable the vbus initially.
Currently, the kernel enables and disables the vbus when
the otg is configured to host mode, but when the system boots
with no cable connected the kernel relies on the bootloader
to turn the vbus off.
This CL removes that dependency.

Bug 1047048
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/#change,141970
(cherry picked from commit c3461995dd156968d766ec05879fd1097221ceb8)
Change-Id: I96c1f4b97a2cafdfd498b591647200d26298a43b
Reviewed-on: http://git-master/r/142839
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
video: tegra: clear fb2 unspecified by bootloader

Clear framebuffer2 if and only if framebuffer2 is not specified by the
bootloader. If the bootloader framebuffer2 is specified, then copy the
contents to kernel framebuffer2.

bug 1175957

Change-Id: I4ac4432c1dac6a6c634ab3e6ae31628f9c64ddb4
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/170663
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
arch: tegra: Ventana: vdd_ldo4 regulator handling

Cleaning up of the vdd_ldo4 regulator handling and also control
the multiple calls for regulator_get call for vdd_ldo4

Bug 1241274

Change-Id: I0f62d5059212302956bfe7e48d24eb7f45ff2dda
Signed-off-by: Ramalingam C <ramalingamc@nvidia.com>
Reviewed-on: http://git-master/r/207516
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
ARM: tegra: get rid of tegra_gpio_enable() in touch init

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

Change-Id: I3e3e49fb3b970b090f2184c21601f676356212a4
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119608
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: David Jung <djung@nvidia.com>
arm: tegra: p1852: set FPDLink latch clock edge

Make parallel data strobed on rising clock edge
For SKU2 MODS get correct CRC.

Bug 995623

Change-Id: I70f4b87e781821cf4ff8370c17b79f5bea7dc55c
Signed-off-by: Dongfang Shi <dshi@nvidia.com>
Reviewed-on: http://git-master/r/121824
(cherry-pick from 5200d0f10b936e00dbc2a946eed8c2e48b039943)
Reviewed-on: http://git-master/r/122537
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bob Johnston <bjohnston@nvidia.com>
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
ARM: tegra: p1852: get rid of tegra_gpio_enable()

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

Change-Id: Ie3ae3375348cd8cbe94b14bd5ce3a861d73cc30c
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119610
Reviewed-by: Automatic_Commit_Validation_User
ARM: tegra: aruba: get rid of tegra_gpio_disable()

The gpio mode is disabled when freeing gpio and
hence this call is no more required.

Change-Id: I61469ec85713e3599245c59d2311f869ba03335b
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/122115
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
ARM: tegra: harmony: get rid of tegra_gpio_disable()

The gpio mode is disabled when freeing gpio and
hence this call is no more required.

Change-Id: I21f0f098a4ed741984c474996ba13d7390617646
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/122116
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
arm: tegra: kai: update memory timings

bug 947148

Change-Id: Icc9711e44375dee9346cbe2cb8af090286a244a2
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/126834
(cherry picked from commit 90ec2d7e47927723f8c088c178bb560828fac622)
Reviewed-on: http://git-master/r/129571
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>