5 years agoarm: tegra: clock: fix Coverity Null dereference issues
Deepak Nibade [Mon, 21 Jan 2013 11:26:51 +0000]
arm: tegra: clock: fix Coverity Null dereference issues

Coverity id : 22150
Coverity id : 22151
Coverity id : 22171
Coverity id : 22172

Bug 1046331

Change-Id: I0cf22aac7387fa98a4511cb8e10da48adf662e43
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/192822
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra11x: Fix BOND_OUT_L access
Antti P Miettinen [Fri, 18 Jan 2013 13:20:28 +0000]
ARM: tegra11x: Fix BOND_OUT_L access

Fix BOND_OUT_L register access to use the right offset.

Change-Id: I0ccc2adc6aaef7e542436e2c4d65994c59a5a2d3
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/192407
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoARM: tegra: defconfig: select max98090 codec
Ravindra Lokhande [Fri, 18 Jan 2013 14:41:05 +0000]
ARM: tegra: defconfig: select max98090 codec

Change-Id: I82161758693ebd46254f49d141b8cadb59a104ca
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/192417
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

5 years agoARM: tegra14x: Save & restore coresight debug state
Seshendra Gadagottu [Sat, 19 Jan 2013 01:14:41 +0000]
ARM: tegra14x: Save & restore coresight debug state

This preserves debug setup across power gating/ungating sequence.

Change-Id: Ibdecfa3ace740fd7246883090228d3d95501e2f7
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/192575
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agodrivers: misc: nct: fix integer overflow in temperature set/get
Lucas Dai [Tue, 15 Jan 2013 08:40:25 +0000]
drivers: misc: nct: fix integer overflow in temperature set/get

change temperature type size from s8 to s16 to support
wider measurement range of −64C to +191C in extended mode

Bug 1217620

Change-Id: I2163d6a0752de7982cf48b987b871e1596f1ee54
Signed-off-by: Lucas Dai <lucasd@nvidia.com>
Reviewed-on: http://git-master/r/190948
(cherry picked from commit f79ce6a5504472b16a5bd159b420da40b6039881)
Reviewed-on: http://git-master/r/192340
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agochromeos: Enable PLATFORM_ENABLE_IOMMU
Andrew Chew [Fri, 18 Jan 2013 00:11:38 +0000]
chromeos: Enable PLATFORM_ENABLE_IOMMU

Also renormalized other config options with defaults.

Change-Id: I8fbd1280075f6583b3477fea7d63848e31e06385
Signed-off-by: Andrew Chew <achew@nvidia.com>
Reviewed-on: http://git-master/r/192214
Reviewed-by: Christopher Freeman <cfreeman@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Allen Martin <amartin@nvidia.com>

5 years agoaudio: update Eq and Volume Profiles.
Vinod Subbarayalu [Wed, 2 Jan 2013 00:06:50 +0000]
audio: update Eq and Volume Profiles.

Change-Id: I27cd72389b01a4436a29f4ee0679281e1f7f2736
Signed-off-by: Vinod Subbarayalu <vsubbarayalu@nvidia.com>
(cherry picked from commit cfc618ff6e34279d7126f53276123e7cb07362c6)
Reviewed-on: http://git-master/r/191392
Reviewed-by: Scott Peterson <speterson@nvidia.com>

5 years agoarm: tegra: baseband: add EDP support
Neil Patel [Fri, 2 Nov 2012 21:31:29 +0000]
arm: tegra: baseband: add EDP support

Adds support for two different types of EDP clients:
 - edp_modem_boot which will be used when executing the flashless boot sequence
 - edp_modem which will be used when the modem is running the app firmware and
   can be configured through sysfs

Bug 1045672

Change-Id: I1089b3fa3e3725a1cd60d7e475c4fb176e9d77c2
Signed-off-by: Neil Patel <neilp@nvidia.com>
Reviewed-on: http://git-master/r/191016
(cherry picked from commit 2bf573e13e4ceaa13235241e651dd47890f5a9fe)
Reviewed-on: http://git-master/r/160986
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

5 years agoARM: tegra14: Enable RAM repair based on fuse bits
Seshendra Gadagottu [Wed, 16 Jan 2013 21:55:30 +0000]
ARM: tegra14: Enable RAM repair based on fuse bits

Check fuse bits spare_10 and spare_11 decide to do RAM repair or not.

Bug 1211371

Change-Id: Ibb572235749753dd52c5202df956b5e4a5465a81
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/191786
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agoARM: mm: adding a check for slab objects in flush_dcache_page
Vishal Singh [Thu, 4 Aug 2011 06:29:57 +0000]
ARM: mm: adding a check for slab objects in flush_dcache_page

A page struct obtained via virt_to_page from a slab object may be passed to
the flush_dcache_page function. However, slab allocation is a kernel feature
(can only be done in kernel space) and thus slab objects are never mapped into
user space. However, slab allocators may use the mapping field for their own
purposes and as a result mapping may not be NULL although the page is not
mapped. For this purpose there is a BUG_ON inside page_mapping() to check for
slab objects. So, using NULL for this special case and avoiding calling
page_mapping() on slab objects to avoid the BUG_ON.

Bug 845618.
Bug 1154527.

Reviewed-on: http://git-master/r/45000
(cherry picked from commit 10476ddb84f04bc6c37f8d9ecc15849178a59801)

Reviewed-on: http://git-master/r/189451
(cherry picked from commit 77bfc049878e8c69a36f82a46e32816a72e93214)

Change-Id: If728399cdc6b82be55e4b09f20149e03e196a056
Signed-off-by: Vishal Singh <vissingh@nvidia.com>
Reviewed-on: http://git-master/r/190573
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agotegra: efs: m2601: Add EFS driver support for M2601
Ashutosh Patel [Thu, 17 Jan 2013 06:26:18 +0000]
tegra: efs: m2601: Add EFS driver support for M2601

Changes:

- Added EFS driver support for M2601 board

bug 1049391

Change-Id: I0637727136c88480203f9a6d3b437da7215630c1
Signed-off-by: Ashutosh Patel <ashutoshp@nvidia.com>
Reviewed-on: http://git-master/r/190267
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoarch: arm: configs: t11x: enable CONFIG_SENSORS_MAX44005
Sri Krishna chowdary [Fri, 18 Jan 2013 13:01:54 +0000]
arch: arm: configs: t11x: enable CONFIG_SENSORS_MAX44005

Enable MAX44005 ALS/RGB/TEMP/PROX/IR sensor for ceres

Bug 1190013

Change-Id: I5fcd1aa02ac567c32bd30543ef1ac01fa5d99059
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/188291
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoconfig: tegra[3,11]: enable ethernet over USB OTG
Mursalin Akon [Fri, 11 Jan 2013 22:52:04 +0000]
config: tegra[3,11]: enable ethernet over USB OTG

enable ethernet over USB OTG

Bug 1199856

Change-Id: I2f3e39da868a4bd24597009905c481f4d8565b51
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/190755
(cherry picked from commit d7b47209de847fc0f6cb8e9ea6b98e3c5f7eaee7)
Reviewed-on: http://git-master/r/192103
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@nvidia.com>

5 years agoconfig: tegra11: re-generate config
Mursalin Akon [Thu, 17 Jan 2013 17:24:45 +0000]
config: tegra11: re-generate config

commands used:
make ARCH=arm tegra11_defconfig
make ARCH=arm savedefconfig
cp defconfig arch/arm/configs/tegra11_defconfig

Bug 1199856

Change-Id: I8a62f479f2469dba77e4835e0b9776d24a5ca861
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/192102
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@nvidia.com>

5 years agomedia: tegra: max77665-flash: support multi leds
Charlie Huang [Sat, 10 Nov 2012 03:52:19 +0000]
media: tegra: max77665-flash: support multi leds

enable controlling the leds asynchronously, so each of them can work under
different brightness levels.

plus minor fixes in imx132.c

bug 1175017

Change-Id: Ida4adcca7e3d0011b669ec9298e1bec309195d67
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/162870
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: tegra: powergate: handle function return value
Deepak Nibade [Thu, 17 Jan 2013 08:29:43 +0000]
arm: tegra: powergate: handle function return value

Fix coverity issue
Coverity id : 22217

Bug 1046331

Change-Id: I10af0b3e6050d62da737bdedf82631be3734b479
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/191943
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: tegra: isomgr: handle isomgr register correct
Krishna Reddy [Wed, 16 Jan 2013 20:17:44 +0000]
arm: tegra: isomgr: handle isomgr register correct

handle isomgr register correct when isomgr is disabled.

Change-Id: I08cde5a8a0b7f1427e1bab290da0892976288928
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/191766
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agopower: max77665: fix null pointer dereference
Sivaram Nair [Wed, 16 Jan 2013 11:28:11 +0000]
power: max77665: fix null pointer dereference

This patch fixes a null pointer dereferece that happens because the irq
handler is called before the charger is completely initialized.

Change-Id: I893fe0aba712965e36472146882272bdf115faa5
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
(cherry picked from commit ec63f72884ecc146b4a7ed057806925adbc1224a)
Reviewed-on: http://git-master/r/191685
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoi2c: tegra: remove multiplexed bus option
Laxman Dewangan [Sun, 13 Jan 2013 10:08:52 +0000]
i2c: tegra: remove multiplexed bus option

Remove the support for the pinmultiplexed based i2c bus driver.
Now i2c driver will support single bus per controller instance.
Bus number will be decided based on device id i.e. pdev->id.

Change-Id: If2c88ce0cb95cbcc36314136ed5625e19f724450
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/191172
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoarm: tegra: comms: add phy callbacks for OEM2 modem
Vinayak Pane [Fri, 11 Jan 2013 02:52:50 +0000]
arm: tegra: comms: add phy callbacks for OEM2 modem

Adding USB PHY callback functions for auto-suspend feature
to work on Pluto.

Change-Id: I0f15a64701f29564034072cbdb4f5bf5edb26a81
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/190489
Reviewed-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Lin <stlin@nvidia.com>

5 years agoarm: tegra: comms: add variant of OEM2 modem
Vinayak Pane [Fri, 11 Jan 2013 02:03:45 +0000]
arm: tegra: comms: add variant of OEM2 modem

Adding USB vendor id and product id for current
variant of OEM2 modem.

Change-Id: I0a051262f16b4ad43621c09f3b7c7503d8f26327
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/190465
Reviewed-by: Michael Hsu <mhsu@nvidia.com>
Tested-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Lin <stlin@nvidia.com>

5 years agoarm: tegra: fuse: Fixed T14x fuse errors
Sumit Sharma [Wed, 16 Jan 2013 02:36:28 +0000]
arm: tegra: fuse: Fixed T14x fuse errors

-Removed multiple function declaration from t14x_fuse_offsets.h
-Fixed chip id for T14x

Bug 1183863

Change-Id: I35838680f1d9a6b865abcb50ce4572a149a6a08b
Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>
Reviewed-on: http://git-master/r/191134
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoARM: tegra14: enable PMU user space access
Seshendra Gadagottu [Wed, 16 Jan 2013 20:50:29 +0000]
ARM: tegra14: enable PMU user space access

For T14x, enable user space access to performance monitors

Change-Id: Ib2bd4c17649e1a5792db40d36c6fec45b5fbfae1
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/191777
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agopower: max17042: Fix chip init sequence
Chaitanya Bandi [Fri, 11 Jan 2013 11:33:49 +0000]
power: max17042: Fix chip init sequence

Bug 1213357

Change-Id: Ide3e112342f50720dd420f8d6d3b36bc5be6277e
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/190642
(cherry picked from commit 00e3d2270f214168202580a460adad1b2eafd800)
Reviewed-on: http://git-master/r/191923
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agobacklight: max8831: Fix regulator name for max8831
Chaitanya Bandi [Fri, 11 Jan 2013 09:11:44 +0000]
backlight: max8831: Fix regulator name for max8831

Change-Id: I637451800cd217a0d71e7e17c064d1b6ed238733
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/190599
(cherry picked from commit 1ff4d4f7911fd9bd644fe05bdeae5b56e6dec942)
Reviewed-on: http://git-master/r/191918
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra: pluto: Use correct name for Max8831 Backlight
Chaitanya Bandi [Fri, 11 Jan 2013 09:08:40 +0000]
ARM: tegra: pluto: Use correct name for Max8831 Backlight

Change-Id: I4520297b259b07b1a16303d8b667aa8aacf2df2b
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/190598
(cherry picked from commit 1bc3d612e162b3ac6cc7647b2e3526bc4f1a9191)
Reviewed-on: http://git-master/r/191916
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoARM: tegra: DSI instance selection
Bitan Biswas [Thu, 10 Jan 2013 07:29:06 +0000]
ARM: tegra: DSI instance selection

Moved the DSI instance and register selection from panel
to board files. This effects Tegra11x boards:
dalmore, pluto, pismo and ceres

Further, panel GPIO selection moved to board files

bug 1178654

Change-Id: I276d63f00cfc5bb95e8000cb725d12bab4464720
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/190224
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

5 years agoarm: tegra: remove dead code in mach/thermal.h
Matt Longnecker [Sat, 22 Dec 2012 01:29:54 +0000]
arm: tegra: remove dead code in mach/thermal.h

Change-Id: I1e12461d454801f3062c83121db49af53a770851
Signed-off-by: Matt Longnecker <mlongnecker@nvidia.com>
Reviewed-on: http://git-master/r/173817
(cherry picked from commit 5df3de710d1f74254af1b4b30b851c0fc40e74cc)
Reviewed-on: http://git-master/r/191738
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agomisc: nct1008: Reset current lo/hi limit values with register values
Lucas Dai [Tue, 8 Jan 2013 10:21:52 +0000]
misc: nct1008: Reset current lo/hi limit values with register values

To sync current lo/hi limit values with register values, reset current
lo/hi limit values with register values when sensor configuration.

Bug 1214568

Change-Id: I8f597f21d0fcfeb31b2b882c56ff7b5946c3cab2
Signed-off-by: Lucas Dai <lucasd@nvidia.com>
Reviewed-on: http://git-master/r/189501
(cherry picked from commit 95983ad35966e7983c4eb22e8a07e195d6b77e2a)
Reviewed-on: http://git-master/r/191559
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agoARM: tegra: defconfig: adding XUSB support.
Ajay Gupta [Wed, 3 Oct 2012 01:52:08 +0000]
ARM: tegra: defconfig: adding XUSB support.

Enabled xhci and tegra xusb as builtin driver.

Change-Id: Iad38f0f9719725408bbe7cb60a5c204181543a5b
Signed-off-by: Bharath Yadav <byadav@nvidia.com>
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/190500
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

5 years agousb: xhci: tegra: adding NVIDIA USB3.0 controller driver
Bharath Yadav [Sat, 6 Oct 2012 01:00:42 +0000]
usb: xhci: tegra: adding NVIDIA USB3.0 controller driver

Added xhci-tegra.c to support NVIDIA's XUSB host controller.

Bug 1055592

Change-Id: Iccbd0b63fc95cb31565bdb2008bd1b79372335aa
Signed-off-by: Bharath Yadav <byadav@nvidia.com>
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Signed-off-by: Henry Lin <henryl@nvidia.com>
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/190498
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

5 years agoARM: tegra11: clock: add utmip-pad clock entry for xusb
Ajay Gupta [Thu, 10 Jan 2013 22:54:13 +0000]
ARM: tegra11: clock: add utmip-pad clock entry for xusb

utmip-pad entry was missing for xusb and so devm_clk_get is
failing. Adding the same for xusb interface.

Change-Id: I257fccf974bc5bededbe0a5c3e96d171ad4f5077
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/190497
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Bharath Yadav <byadav@nvidia.com>
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

5 years agoARM: tegra: xusb: add more resources to xusb
JC Kuo [Fri, 14 Dec 2012 22:33:57 +0000]
ARM: tegra: xusb: add more resources to xusb

Added below required resources for xusb:
- TEGRA_XUSB_PADCTL_BASE
- TEGRA_XUSB_FPCI_BASE
- TEGRA_XUSB_IPFS_BASE

Also added names to other existing resources

Change-Id: I24d4adacbe9bb1bbb6993401636ac4393f35f958
Signed-off-by: Bharath Yadav <byadav@nvidia.com>
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Signed-off-by: Henry Lin <henryl@nvidia.com>
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/190496
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

5 years agoARM: tegra: correct irq name INT_USB3_NOT_SMI
JC Kuo [Wed, 9 Jan 2013 21:02:39 +0000]
ARM: tegra: correct irq name INT_USB3_NOT_SMI

Corrected the wrong irq name INT_USB3_NOT_SMI to correct name
INT_USB3_HOST_SMI

Change-Id: I752b461d9dbc8f889ee305a8c05b5368653de2f4
Signed-off-by: Bharath Yadav <byadav@nvidia.com>
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Signed-off-by: Henry Lin <henryl@nvidia.com>
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/190495
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoARM: tegra: add xusb clock sources in table
Ajay Gupta [Sat, 3 Nov 2012 01:16:13 +0000]
ARM: tegra: add xusb clock sources in table

Added all the needed clock sources to clock table.

Change-Id: I24b17eb35acd6f90cc44418733b27f2901a79f50
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/190494
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

5 years agoARM: tegra: dalmore: updating regulators sources for xusb
Sri Krishna chowdary [Fri, 26 Oct 2012 10:28:12 +0000]
ARM: tegra: dalmore: updating regulators sources for xusb

1. Registering XUSB driver as consumer for regulator
   sources on Dalmore board.

2. Updating pad parameters for XUSB ports.

Bug 1055592

Change-Id: I73c62fa7d9c23a7f7ca93aca63087db10d51cbb1
Signed-off-by: Bharath Yadav <byadav@nvidia.com>
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/190493
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoARM: tegra: pluto: updating regulators sources for xusb
Sri Krishna chowdary [Fri, 26 Oct 2012 13:51:28 +0000]
ARM: tegra: pluto: updating regulators sources for xusb

1. Registering XUSB driver as consumer for regulator
   sources on Pluto board.

2. Updating pad parameters for XUSB ports.

Bug 1055592

Change-Id: Ibba14828cd6b85f71299f886b44a49c1c521f6f9
Signed-off-by: Bharath Yadav <byadav@nvidia.com>
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/190492
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoARM: tegra: fix XUSB ID name to tegra-xhci
Ajay Gupta [Wed, 7 Nov 2012 19:21:27 +0000]
ARM: tegra: fix XUSB ID name to tegra-xhci

XUSB platform device and other clock sources are mapped
with device name as "tegra-xhci".

Change-Id: I34e142e53bc2f6c1e5b0e6ea9ea25bf8e88060bc
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/190491
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Bharath Yadav <byadav@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

5 years agoARM: tegra: Remove virtual syncpt irq definitions
Terje Bergstrom [Fri, 14 Dec 2012 08:53:46 +0000]
ARM: tegra: Remove virtual syncpt irq definitions

nvhost does not use anymore virtual irqs for sync points. Remove
their definition from irqs.h.

Change-Id: I05449ced7e2734a56ddc6ec90d25646232b84b91
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/171352
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoARM: tegra: xusb: export xusb resources
Sri Krishna chowdary [Fri, 26 Oct 2012 10:07:31 +0000]
ARM: tegra: xusb: export xusb resources

Bug 1055592

Change-Id: I26136cedbf155a7c63fd90f037c5bedba417992f
Signed-off-by: Bharath Yadav <byadav@nvidia.com>
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/190490
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

5 years agow1: master: moving to clk prepare APIs
Sivaram Nair [Mon, 17 Dec 2012 16:21:38 +0000]
w1: master: moving to clk prepare APIs

The clk_enable/clk_disable pair of APIs are replaced with
clk_prepare_enable and clk_disable_unprepare.

This is needed for the migration to common clk framework.

Bug 920915

Change-Id: Ia1aa9ecd43a1b26282820be56c65db2690851d04
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/172216
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkata Jagadish <vjagadish@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoARM: tegra11: clock: Prevent t11x WAR execution for t14x
Shashank Garg [Wed, 16 Jan 2013 04:01:56 +0000]
ARM: tegra11: clock: Prevent t11x WAR execution for t14x

Related to change http://git-master/r/143075
Bug 1005168

Change-Id: I2e0c1c55cea0e469661618fdeec1071956b03112
Signed-off-by: Shashank Garg <sgarg@nvidia.com>
Reviewed-on: http://git-master/r/188648
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Tested-by: Mandar Potdar <mpotdar@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Mandar Potdar <mpotdar@nvidia.com>
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>

5 years agoARM: tegra11: dalmore: remove SW_LID functionality
Bharat Nihalani [Fri, 11 Jan 2013 11:42:54 +0000]
ARM: tegra11: dalmore: remove SW_LID functionality

Due to this, there is an un-desired event generated on Dalmore
after waking up from LP0.

bug 1214079

Change-Id: I0378523df56dea9e186e2ceed53dc601789d93fd
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/190644
(cherry picked from commit b41c67e188e686b391bc96283356a955514074c4)
Reviewed-on: http://git-master/r/190659
(cherry picked from commit ea7921f5ac35ee99efe7f73fbc1e8df3cee39407)
Reviewed-on: http://git-master/r/191614
Reviewed-by: Automatic_Commit_Validation_User

5 years agoARM: tegra: hsic: protect disable PMC and set RUN
Yunfan Zhang [Thu, 3 Jan 2013 08:22:47 +0000]
ARM: tegra: hsic: protect disable PMC and set RUN

Disable local irq to prevent context switch between disable PMC and
set RUN bit ops in case of remote wakeup.

Operations of disable PMC control and set RUN bit might be interrupted
and scheduled out which would take a long time until RUN bit set, so
device won't see the SOFs within 3ms and go back into suspend again.

Bug 1164414

Change-Id: Ie51ebbfac8ed51d64e39592b4ee8363d063d82f5
Signed-off-by: Yunfan Zhang <yunfanz@nvidia.com>
Reviewed-on: http://git-master/r/188224
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

5 years agoarm: tegra: isomgr: return correct values when isomgr is disabled
Krishna Reddy [Tue, 15 Jan 2013 19:04:21 +0000]
arm: tegra: isomgr: return correct values when isomgr is disabled

fix spelling mistake either

Change-Id: I03c33197dde783e40a118247c5de896939a33873
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/191404
Reviewed-by: Automatic_Commit_Validation_User

5 years agoarm: tegra: isomgr: add support for t14x
Krishna Reddy [Tue, 15 Jan 2013 18:59:26 +0000]
arm: tegra: isomgr: add support for t14x

Change-Id: I95f81c142e6d513ff365795342920536da9c59fe
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/191402
Reviewed-by: Automatic_Commit_Validation_User

5 years agoarm: tegra: soctherm: Register soctherm device as CPU zone
Diwakar Tundlam [Sun, 16 Dec 2012 20:13:37 +0000]
arm: tegra: soctherm: Register soctherm device as CPU zone

Add registration of soctherm device for CPU zone temperature
monitoring and bind it to the CPU-therm cooling device.

Also register the balanced throttling table for CPU frequency
throttling from the CPU-therm temperature monitoring zone.

Bug 1200075

Change-Id: I8df8c896b87a85a769e15b15f13e4b2c420d7662
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/172056
(cherry picked from commit 13ed2c97a3fb6a54fb4d0f503e15580af3a91976)
Reviewed-on: http://git-master/r/190103
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

5 years agoARM: tegra: soctherm: change precision setting handling
Diwakar Tundlam [Fri, 14 Dec 2012 00:43:29 +0000]
ARM: tegra: soctherm: change precision setting handling

Bug 1169070

Change-Id: Ifec53b3ead28df3e8e8778d49588c073d32c90d0
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/172055
(cherry picked from commit 4332e6fd6b9c1bbfc8c9b59f9d028a61f9de5931)
Reviewed-on: http://git-master/r/190099
Reviewed-by: Automatic_Commit_Validation_User

5 years agoarm: dts: tegra114: enable tegra_camera for dalmore
Pritesh Raithatha [Fri, 4 Jan 2013 08:31:46 +0000]
arm: dts: tegra114: enable tegra_camera for dalmore

Bug 1173111

Change-Id: I149e10d2dac12d35a6f3b9bbc3f585c1b76d6af2
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/188613
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prayas Mohanty <pmohanty@nvidia.com>
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: tegra: dalmore: add device tree support for tegra_camera
Pritesh Raithatha [Fri, 4 Jan 2013 08:33:19 +0000]
arm: tegra: dalmore: add device tree support for tegra_camera

Bug 1173111

Change-Id: I9a1d16e6e1e25c2385e18147c7b7beff78e48fe1
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/188614
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoarm: dts: tegra114: enable tegra_camera for pluto
Pritesh Raithatha [Fri, 4 Jan 2013 07:16:12 +0000]
arm: dts: tegra114: enable tegra_camera for pluto

Bug 1173111

Change-Id: I360d2f67f077be913148c44ab3e20fd0aefaead1
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/188611
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prayas Mohanty <pmohanty@nvidia.com>
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agopower: max17042: adjust depletion during charging
Sivaram Nair [Mon, 14 Jan 2013 14:36:21 +0000]
power: max17042: adjust depletion during charging

In order to adjust the system-EDP budget to reflect the constraints that
may be imposed by the available charging current, the battery depletion
client must identify when the charger is being used and at what maximum
current it has been programmed.  Whenever the MAXIM charger is enabled,
and also whenever the MAXIM charger is re-configured during a charging
phase, the Battery Depletion Client should be called to read the
following MAX77665A register describing the input charger current limit,
CHGIN_ILIM. This value should be added to the value of IBATPOSSIBLE.
Calculating IBATPEAKSAFE, the safe peak limit imposed by the batt

Bug 1049930

Change-Id: I0872c340fb4bde0f9192a6ce39c4f2c34d204de6
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/190964
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agopower: max17042: IBAT-PEAKSAFE from TEMPERATURE
Sivaram Nair [Tue, 8 Jan 2013 07:27:57 +0000]
power: max17042: IBAT-PEAKSAFE from TEMPERATURE

The battery depletion client need to calculate IBATPEAKSAFE using the
TEMPERATURE register in the fuel gauge and the SAFE-IBAT-SPEC table,
a small lookup table provided by the battery vendor.

Bug 1049930

Change-Id: Icc6f77087198359a6bcc6a098c72e5c16131d1d9
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/189460
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoarm: tegra: pluto: add device tree support for tegra_camera
Pritesh Raithatha [Fri, 4 Jan 2013 07:18:59 +0000]
arm: tegra: pluto: add device tree support for tegra_camera

Bug 1173111

Change-Id: I1914d93aa8e0692051d9b3941aaed0d9b8ec73b5
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/188612
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoarm: dts: tegra114: add tegra_camera support
Pritesh Raithatha [Fri, 4 Jan 2013 07:11:37 +0000]
arm: dts: tegra114: add tegra_camera support

Bug 1173111

Change-Id: Ib76316b3cd028016d5e04c03d17f2c67460e3d9e
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/188609
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agopower: max77665: pass CHGIN_ILIM to update_status
Sivaram Nair [Mon, 14 Jan 2013 14:11:39 +0000]
power: max77665: pass CHGIN_ILIM to update_status

This is a WAR for problems mentioned in the bug report (see below).
Instead of passing true, the charging limit (a non-zero) value is passed
into the update_status callback function. This will be exploited by the
fuel guage driver in order to calculate the battery depletion values.

Bug 214607

Change-Id: I16bdcd99aafd1e03d0377cb6849352dbaa1e2ad9
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/190963
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Syed Rafiuddin <srafiuddin@nvidia.com>

5 years agopower: max77665: fix compiler warning
Sivaram Nair [Mon, 14 Jan 2013 13:47:21 +0000]
power: max77665: fix compiler warning

Fix the usage of wrong type.

Change-Id: I8d5443e9a8a467330e9c776fc88c1716ae7f70aa
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/190962
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Syed Rafiuddin <srafiuddin@nvidia.com>

5 years agomedia: video: tegra: add device tree support for tegra_camera
Pritesh Raithatha [Fri, 4 Jan 2013 07:13:57 +0000]
media: video: tegra: add device tree support for tegra_camera

Bug 1173111

Change-Id: Ic334f8c388e1245fe6bbdeeb7b56289c74532396
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/188610
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoarm: tegra: pluto: enable charger interrupt
Syed Rafiuddin [Wed, 21 Nov 2012 16:24:48 +0000]
arm: tegra: pluto: enable charger interrupt

passing of charger interrupt number from platform
data to max77665 charger driver.

Change-Id: Ifef1ad65f83eada7b5e28d9c1e665076c14e0262
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/165475
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agopower: max17042: add POWER_SUPPLY_PROP_STATUS
Syed Rafiuddin [Mon, 26 Nov 2012 06:00:17 +0000]
power: max17042: add POWER_SUPPLY_PROP_STATUS

addition of POWER_SUPPLY_PROP_STATUS to update the status
as charging/discharging

Change-Id: Ifcf177eb23ab8921fe52e26699e37541c46189f8
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/165474
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoARM: Tegra: pinmux: Allow changing setting at runtime
Simon,Je [Mon, 14 Jan 2013 07:55:45 +0000]
ARM: Tegra: pinmux: Allow changing setting at runtime

Through debug fs, changing pimux setting can be done.
ex)
 #echo "HDMI_CEC CEC OUTPUT NORMAL TRISTATE" > /d/tegra_pinmux

Bug 1213934

Change-Id: Ie1f7146ee5e5e7a9194cf140c6e4d75c2c5143b2
Signed-off-by: Simon,Je <sje@nvidia.com>
Reviewed-on: http://git-master/r/190934
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agousb: gadget: tegra: Fix current limit for CDP port
Rakesh Bodla [Tue, 8 Jan 2013 08:59:22 +0000]
usb: gadget: tegra: Fix current limit for CDP port

Do not overwrite the current limit with the value from
gadget layer for CDP port. Update the CDP current limit
to 1.5mA (as per BC1.2). Also, modifying few names
of variables/functions for readability.

Bug 1024302

Reviewed-on: http://git-master/r/189095
(cherry picked from commit b0f8fead09f2e0a70849d0cdaa00a08cdf0ec0fc)

Change-Id: I2d8c90fb03e41cf68089cd39c5a9b76523b5ec80
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/190661
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoarm: mm: cpa: Fix redundant L2 flushes on t11x
Krishna Reddy [Tue, 18 Dec 2012 01:39:15 +0000]
arm: mm: cpa: Fix redundant L2 flushes on t11x

Bug 1198897

Change-Id: I2099a4ee8660fc8333cb9a6c54b9329a7e66d4e8
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/172090
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Yan <byan@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoARM: tegra14: emc: Fork from tegra11_emc
Hoang Pham [Fri, 11 Jan 2013 00:19:19 +0000]
ARM: tegra14: emc: Fork from tegra11_emc

Change-Id: I4f7258eb5962d9943af6ce3789284843caf6071f
Signed-off-by: Hoang Pham <hopham@nvidia.com>
Reviewed-on: http://git-master/r/190427
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoARM: tegra: fuse: Remove duplicate codes
Hoang Pham [Thu, 10 Jan 2013 01:21:43 +0000]
ARM: tegra: fuse: Remove duplicate codes

Change-Id: I9d6a2c3357fb0031720e0aa2f1349d048c546bdc
Signed-off-by: Hoang Pham <hopham@nvidia.com>
Reviewed-on: http://git-master/r/190134
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agoarm: tegra: la: refactor la code.
Krishna Reddy [Fri, 11 Jan 2013 01:07:47 +0000]
arm: tegra: la: refactor la code.

refactor it to detect soc at run and work.

Change-Id: I0677367384df8bf3378b3e09c26aaa9b70f2cb2f
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/190449
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

5 years agoarm: tegra: T14x: Fix powergate build failure
Seshendra Gadagottu [Mon, 14 Jan 2013 19:53:09 +0000]
arm: tegra: T14x: Fix powergate build failure

Fix T14x build failure introduced by
http://git-master/r/#change,145591

Change-Id: I45648a0a8d237fd4ff57bf3d764fb668965f435d
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/190989
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agomisc: nct1008: Apply hysteresis to trip_temp
Jinyoung Park [Tue, 25 Dec 2012 22:53:58 +0000]
misc: nct1008: Apply hysteresis to trip_temp

Apply hysteresis to trip_temp in nct1008_update and() and
nct1008_ext_get_trip_temp() to be more accurate.

Bug 1200202

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/174182
(cherry picked from commit 9b1cf8282c2b8db66ac13b7e4aa560bff383b90a)

Change-Id: I672d05de9d3a8ae7c88d7714e943437170d82cdb
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/190959
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agoARM: tegra: thermal: Use exact cpu freq when thermal throttling
Jinyoung Park [Mon, 19 Nov 2012 17:52:55 +0000]
ARM: tegra: thermal: Use exact cpu freq when thermal throttling

To use exact cpu freq in throttle table when thermal throttling, it will
not clip thermal throttling freq to cpu freq table.
This is enabled only for Tegra 11x family SOC.

Bug 1174096
Bug 1200111

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/189511
(cherry picked from commit 404c48112c697c529c7fdd79eb707d80fe9e9dd2)

Change-Id: Iaf5b6870b3b8695a5201e6e6f44c3f5cd1e5a99c
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/190957
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoARM: tegra: thermal: Refactor struct balanced_throttle
Jinyoung Park [Thu, 10 Jan 2013 11:28:26 +0000]
ARM: tegra: thermal: Refactor struct balanced_throttle

Change struct throttle_table type in struct balanced_throttle
from array to pointer.

Bug 1174096
Bug 1200111

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/190304
(cherry picked from commit 0dc4c344411d62ae7d70fc7c9e61a38690eefffe)

Change-Id: I81d936c8ddede7bbb72ee0fda6706e642d9752c8
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/190955
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agoARM: tegra11: dvfs: Update CL-DVFS forced request policy
Alex Frid [Tue, 8 Jan 2013 01:40:39 +0000]
ARM: tegra11: dvfs: Update CL-DVFS forced request policy

Updated CL-DVFS closed loop configuration settings, so that forced
request value satisfies the following conditions:

(a) forced request is above output minimum limit
(b) forced request is not equal output safe value
(c) forced request is one step below dvfs table predicted voltage,
unless it violates either (a), or (b); in the latter case forced
request is increased so that both (a) and (b) are true
(d) output maximum limit is above forced request

These conditions assure that CL-DVFS always have regulation zone
above/below forced request, and dropped safe voltage transaction
(possible on switch from disabled state to open loop mode) would
not prevent forced request going out when closed loop mode is
entered.

Change-Id: I669f0d29767d351eaa40c5b67f7eb1ba3e60f9b0
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/189446
(cherry picked from commit fed81587ae4e39154e910f82738134d1a66a005f)
Reviewed-on: http://git-master/r/190843
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra11: dvfs: Re-factor CL-DVFS closed loop exit
Alex Frid [Sun, 6 Jan 2013 08:18:34 +0000]
ARM: tegra11: dvfs: Re-factor CL-DVFS closed loop exit

Moved last (before exiting closed loop mode) request update to open
loop configuration procedure, called by both unlock and disable
operations.

Separated disable operation paths from closed and open loop states.
The former should not happen in production code - added WARN(). The
latter can be simplified, since voltage control output has already
been disabled in open loop mode.

Change-Id: Ib20fce20baf6eee139cc02a8613b09da97b907f5
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/188989
(cherry picked from commit fb446a5c979d77c901bea22a1dbe35f697138b93)
Reviewed-on: http://git-master/r/190842
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra11: dvfs: Re-factor CL-DVFS limits controls
Alex Frid [Sat, 5 Jan 2013 07:16:05 +0000]
ARM: tegra11: dvfs: Re-factor CL-DVFS limits controls

- Made sure both thermal and tuning low limits leave room for closed
loop regulation: there are at least 2 LUT steps above each of these
limits.

- Moved safe voltage to cold temperature low limit, so that open loop
operations guaranteed to be safe at any temperature

- Re-set rate request after closed loop limits are updated for all
cases of changing limits (when new rate is requested, or temperature
is updated, or debugfs low tuning threshold is changed).

Change-Id: I6e2ec62291d9474dc96b78d19a711bb1543bc802
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/188988
(cherry picked from commit 3ff892720cbe69cb8b0b7bbf21584eee4758e6c8)
Reviewed-on: http://git-master/r/190841
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoaudio:Add support for tfa calibration
Vinod Subbarayalu [Sun, 30 Dec 2012 21:59:07 +0000]
audio:Add support for tfa calibration

Change-Id: I4f535b35be3eff8269911c8e0b28ee47d8f3eeab
Signed-off-by: Vinod Subbarayalu <vsubbarayalu@nvidia.com>
(cherry picked from commit 3a9f76554589d808ad6d823d5c355dd53ce73eec)
Reviewed-on: http://git-master/r/190780
Reviewed-by: Scott Peterson <speterson@nvidia.com>

5 years agoregulator: max77660: Fix buck step_uV
Tom Cherry [Sat, 12 Jan 2013 00:09:30 +0000]
regulator: max77660: Fix buck step_uV

Change-Id: I729d50bdb19fa5294ffb3f2cfb65d661ec4cfcec
Signed-off-by: Tom Cherry <tcherry@nvidia.com>
Reviewed-on: http://git-master/r/190769
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

5 years agoARM: tegra: emc: Add t148 emc table struct
Alex Waterman [Thu, 10 Jan 2013 19:20:10 +0000]
ARM: tegra: emc: Add t148 emc table struct

Change-Id: I2134cf7a34595f40385173cd44d5f13788347ee1
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/190370
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoasoc: codecs: rt5640: Implement i2c shutdown
Rahul Mittal [Thu, 3 Jan 2013 08:09:14 +0000]
asoc: codecs: rt5640: Implement i2c shutdown

i2c shutdown implementation for rt5640
No i2c transaction should happen after shutdown

Bug 1202582

Change-Id: I1f4981d1a33a22b84f652926eed5478432c8a637
Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/188216
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

5 years agonet: usb: raw_ip: max_intfs to be non-writable
JC Kuo [Tue, 13 Nov 2012 06:36:03 +0000]
net: usb: raw_ip: max_intfs to be non-writable

max_intfs is a varible which determines loop counts in driver
functions at runtime. Userspace could modify its default value at
module load time but it shouldn't be changed at runtime.

Bug 1175543

Change-Id: Id8e8055711288f900e5cffb704a2cf823dd97a34
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Reviewed-on: http://git-master/r/187794
(cherry picked from commit a4f05627fe5734d2b4fe3adf01d3a2ea89a6ec69)
Reviewed-on: http://git-master/r/188199
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: Move asim poweroff to common code
Jeff Smith [Fri, 3 Aug 2012 23:48:08 +0000]
ARM: tegra: Move asim poweroff to common code

Change-Id: Ibc838928774b6ada0fdaa5b5ac3246c2fcae88f6
Signed-off-by: Jeff Smith <jsmith@nvidia.com>
Reviewed-on: http://git-master/r/161438
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoARM: config: Enable device tree support in curacao
Bo Yan [Fri, 11 Jan 2013 20:37:21 +0000]
ARM: config: Enable device tree support in curacao

Change-Id: I3ae7f4b9ac7437b9084739c9ddb5276073410888
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/190735
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>

5 years agoARM: dts: curacao: Fix stale file name for curacao
Bo Yan [Fri, 11 Jan 2013 20:17:06 +0000]
ARM: dts: curacao: Fix stale file name for curacao

DTS files have been renamed a few times for t114 based platforms,
but curacao is left out. This change fixes curacao dts.

Change-Id: I68b1cf9dfdbbc4564a64cb8a84aa27390a00eb89
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/190724
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>

5 years agoarm: tegra: Remove re-initalization of sd_brightness
Mitch Luban [Tue, 8 Jan 2013 21:06:21 +0000]
arm: tegra: Remove re-initalization of sd_brightness

For all dalmore panels, sd_brightness was being initialized to
255 in the notify function. As a result, PRISM wasn't doing anything
on the dalmore platform since we started doing automatic panel
detection. This fixes that error.

Bug 1212968

Reviewed-on: http://git-master/r/189633
(cherry picked from commit 525c27bf9a21d19bdaa44a508195337542d56535)

Change-Id: I29873bfab10e2771df519600d232b200c051db50
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/190076
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoarm: tegra: fix sd_settings initialization
Mitch Luban [Fri, 4 Jan 2013 00:13:44 +0000]
arm: tegra: fix sd_settings initialization

Since we started doing automatic panel detection, we were
not doing sd_settings initialization correctly. This change
fixes that issue.

Bug 1212968

Reviewed-on: http://git-master/r/188451
(cherry picked from commit f6d92baac3dc7a58cea5618794eb95091080ac2a)

Change-Id: I294c91759d3ff77fc4bc5a381c3c98fd92c91149
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/189253
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agoarm: tegra: add config option for tegra errata 977223.
Krishna Reddy [Mon, 10 Dec 2012 19:03:17 +0000]
arm: tegra: add config option for tegra errata 977223.

Enable the errata for t11x and update latency allowance
code with WAR for errata.
Bug 977223

Change-Id: I1a825f0fe3252a2c9f4e69a591970c4373f72fa6
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/169773
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoARM: tegra: Rename cooling device type
Jinyoung Park [Tue, 18 Dec 2012 07:19:51 +0000]
ARM: tegra: Rename cooling device type

Rename cooling device type to the generic name for balanced throttle.

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/172181
(cherry picked from commit a50c4412e2a4ef4e4e1b0f470a56bf46df570847)

Change-Id: Ia204dc97edc9925f7489337e43c7119b46512ed8
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/190691
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

5 years agoARM: tegra: remove bus recovery API from platform data
Laxman Dewangan [Fri, 11 Jan 2013 08:50:42 +0000]
ARM: tegra: remove bus recovery API from platform data

The i2c tegra driver uses the bus clear logic implemented in i2c
algorithms. Hence it is not require to pass the implementation
through platform data.

Change-Id: Iee62235735069d2c9007c8b68c6a5c859065cd70
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/190591
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoaudio:Update NXP configurations.
Vinod Subbarayalu [Sun, 30 Dec 2012 01:29:44 +0000]
audio:Update NXP configurations.

Change-Id: I089ac10a1bc0e922379a0046d17adcf3d04c880f
Signed-off-by: Vinod Subbarayalu <vsubbarayalu@nvidia.com>
(cherry picked from commit e49e54e0f65fcbdd2f3c640eb1dc81f62886a36a)
Reviewed-on: http://git-master/r/190367
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>

5 years agobacklight: Add GCOV_PROFILE
Konsta Holtta [Mon, 7 Jan 2013 13:29:30 +0000]
backlight: Add GCOV_PROFILE

Include backlight in GCOV profiling when enabled by defconfig.

Change-Id: I651421fe1d3fa97d509bc5bc32f0eec06ce295d6
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/190005
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agousb/serial: Add GCOV_PROFILE
Konsta Holtta [Mon, 7 Jan 2013 13:27:33 +0000]
usb/serial: Add GCOV_PROFILE

Include usb/serial in GCOV profiling when enabled by defconfig.

Change-Id: I479901b243c4efb245ee7ac7fae47dceb53ec2c7
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/190004
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agortc: Add GCOV_PROFILE
Konsta Holtta [Mon, 7 Jan 2013 13:24:48 +0000]
rtc: Add GCOV_PROFILE

Include rtc in GCOV profiling when enabled by defconfig.

Change-Id: Ib26900705eb68894fe5efc11c01ccc8fc3f34559
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/190002
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agonet: Add GCOV_PROFILE
Konsta Holtta [Mon, 7 Jan 2013 13:23:58 +0000]
net: Add GCOV_PROFILE

Include net in GCOV profiling when enabled by defconfig.

Change-Id: I851fefcf2d22259dfce412d047ca6208ded4bfee
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/190001
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agomisc: Add GCOV_PROFILE
Konsta Holtta [Mon, 7 Jan 2013 13:22:34 +0000]
misc: Add GCOV_PROFILE

Include misc in GCOV profiling when enabled by defconfig.

Change-Id: I0430a068d971ad97a85c7edb85f874316ba3581e
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/190000
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agomfd: Add GCOV_PROFILE
Konsta Holtta [Mon, 7 Jan 2013 13:21:30 +0000]
mfd: Add GCOV_PROFILE

Include mfd in GCOV profiling when enabled by defconfig.

Change-Id: I99c7a853e2c41af10ba1873fa22ec3e0662b23e2
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/189999
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agovideo: Add GCOV_PROFILE
Konsta Holtta [Mon, 7 Jan 2013 13:18:46 +0000]
video: Add GCOV_PROFILE

Include video in GCOV profiling when enabled by defconfig.

Change-Id: I39de8bfd5c69119f48e47cc164b85dad436e232b
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/189998
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoleds: Add GCOV_PROFILE
Konsta Holtta [Mon, 7 Jan 2013 13:14:45 +0000]
leds: Add GCOV_PROFILE

Include leds in GCOV profiling when enabled by defconfig.

Change-Id: I14550d5660364d133d7318b218645e99ee36f1e4
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/189997
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoinput: Add GCOV_PROFILE
Konsta Holtta [Mon, 7 Jan 2013 13:12:05 +0000]
input: Add GCOV_PROFILE

Include input in GCOV profiling when enabled by defconfig.

Change-Id: Iadef7e03735260b65dcc13036c257d4bd052aa7a
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/189996
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agohwmon: Add GCOV_PROFILE
Konsta Holtta [Mon, 7 Jan 2013 13:06:33 +0000]
hwmon: Add GCOV_PROFILE

Include hwmon in GCOV profiling when enabled by defconfig.

Change-Id: I0b01bdb87b6d8acac552a09070c7a151319b0bcf
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/189995
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agogpu: ion: Add GCOV_PROFILE
Konsta Holtta [Mon, 7 Jan 2013 13:05:00 +0000]
gpu: ion: Add GCOV_PROFILE

Include gpu/ion in GCOV profiling when enabled by defconfig.

Change-Id: Ic8edc5c16b36cf20eb637da01ffaac7dd4021cf5
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/189994
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoregmap: Add GCOV_PROFILE
Konsta Holtta [Mon, 7 Jan 2013 12:57:32 +0000]
regmap: Add GCOV_PROFILE

Include regmap in GCOV profiling when enabled by defconfig.

Change-Id: If59b951aff100712ddf850cd71f281ae636551c0
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/189993
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agomedia: video: tegra: enable/disable pll_d2 in balance
Kerwin Wan [Sat, 5 Jan 2013 09:01:03 +0000]
media: video: tegra: enable/disable pll_d2 in balance

Bug 1214620

Change-Id: I84902ae2259de420ae2106350fd9df23c2cbbd6d
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/188929
Reviewed-by: Prayas Mohanty <pmohanty@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>