5 years agomedia: tegra_v4l2: pass platform_data via soc_camera_link
Bryan Wu [Mon, 3 Jun 2013 21:40:25 +0000]
media: tegra_v4l2: pass platform_data via soc_camera_link

soc_camera_link supports passing power on/off control callback to
soc_camera stack. So the power control can be handled by soc_camera
stack instead of our Tegra V4L2 host driver.

Also pass other platform_data fields via soc_camera_link instead of
a hacking nvhost_device_data struct.

Bug 1240806
Bug 1369083

Change-Id: I443a7d28196cc8292805da70d2d5ff1c3cd50a5d
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/246267
(cherry picked from commit 9083d270bf93b583cd5bf5151a52ea250f8541a3)
Reviewed-on: http://git-master/r/279986
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

5 years agomedia: tegra: use BGGR raw ouput format
Bryan Wu [Tue, 23 Apr 2013 22:28:46 +0000]
media: tegra: use BGGR raw ouput format

Bug 1369083

Change-Id: I43acb0d1dd6ca182291895d294a8458bfc99da05
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/279985
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

5 years agomedia: videobuf2: fix buffer management issues
Bryan Wu [Tue, 23 Apr 2013 22:27:40 +0000]
media: videobuf2: fix buffer management issues

Use right buffer flag NVMAP_HANDLE_WRITE_COMBINE to allocate buffer,
which can be shared by VI/CSI and CPU. Don't use NVMAP_HEAP_SYSMEM.
It is validated to old T20 silicon and can't support big buffers. By
default, our nvmap_alloc() will use IOVMM to allocate buffers.

nvmap_pin() gives us IOVA for hardware engines like VI/CSI module
with IOMMU enabled in kernel. nvmap_mmap() gives us VA for CPU
read/write operations. So we need to convert VA address to physical
address of the buffer and map that buffer to user space processor's
memory space "page by page".

Bug 1369083

Change-Id: I4629eebe206c7640adf63551968fd89260dd0082
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/279984
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

5 years agomedia: OV5650: tweak registers and add test mode
Bryan Wu [Tue, 23 Apr 2013 22:26:19 +0000]
media: OV5650: tweak registers and add test mode

 - tweak offset registers
 - add test mode to output color bars
 - use BGGR RAW format

Bug 1369083

Change-Id: I61352c018f8ca099ff3d39158a67052a1e185eec
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/279983
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoARM: tegra3: initialize pll_a during boot
Bibek Basu [Fri, 30 Aug 2013 06:50:05 +0000]
ARM: tegra3: initialize pll_a during boot

Configure pll_a during boot so that
locking to pll_a does not fail

Bug 1330751

Change-Id: I188f0be211379f43770b24c5b382dec2788aefda
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/269469
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jong Kim <jongk@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

5 years agoARM: tegra: beaver: updated DVFS table
Bibek Basu [Tue, 19 Mar 2013 08:43:34 +0000]
ARM: tegra: beaver: updated DVFS table

DVFS entry is fixed for Hynix_2GB_H5TC4G83MFR-PBA
to support all emc frequencies.

Bug 1218885

Change-Id: Id9d578499e495f43db1a072cbcee25a353fa78f5
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/210653
(cherry picked from commit 688bf04ff67e2c1ff22762f4f578b925ff3b9f3c)
Reviewed-on: http://git-master/r/273530
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

5 years agomedia: video: tegra: sh532u: fix out-of-bounds read
Deepak Nibade [Fri, 23 Nov 2012 08:21:59 +0000]
media: video: tegra: sh532u: fix out-of-bounds read

fix Coverity issue
Coverity id : 13692

Bug 1046331
Bug 1049868

Change-Id: Iefa6d076d4622368534710630b89b9a15d166378
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/165864
(cherry picked from commit db33c3f3f2447a52a40f4fd001fec9a2932ee4c8)
Reviewed-on: http://git-master/r/244637
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
Reviewed-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoconfig: tegra3: Turn off R8169 firmware loading
Mursalin Akon [Thu, 11 Apr 2013 18:00:35 +0000]
config: tegra3: Turn off R8169 firmware loading

The firmware is not being in use currently.
So, turn the loading code off.

Bug 1236060
Bug 991551

Change-Id: Id41cf762b59502d0ece470e315ac75d93e3b6b39
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/218613
(cherry picked from commit f15976bdfb32d6c5e20057f6d4d57646c15a5591)
Reviewed-on: http://git-master/r/258354
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoMake firmware loading of R8169 optional
Mursalin Akon [Mon, 5 Aug 2013 21:59:38 +0000]
Make firmware loading of R8169 optional

According to Realtek, the firmware provides
power optimizations. The driver works without
the firmware. Plus, there are scenarios where
the firmware is not available, which makes the
driver wait at request_firmware call (i.e.,
60 sec wait).

Bug 1236060
Bug 991551

Change-Id: Ifcaa4b2dd48c4111ded33cf2bade7dc1f6422821
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/258353
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoperf: Treat attr.config as u64 in perf_swevent_init()
Preetham Chandru R [Wed, 15 May 2013 11:31:46 +0000]
perf: Treat attr.config as u64 in perf_swevent_init()

Trinity discovered that we fail to check all 64 bits of
attr.config passed by user space, resulting to out-of-bounds
access of the perf_swevent_enabled array in
sw_perf_event_destroy().

Introduced in commit b0a873ebb ("perf: Register PMU
implementations").

Bug 1289245

Signed-off-by: Tommi Rantala <tt.rantala@gmail.com>
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
(cherry picked from commit 8176cced706b5e5d15887584150764894e94e02f)
Change-Id: Idde0330d7430f2ba1645f4dfed063c5df9bbb44a
Reviewed-on: http://git-master/r/228851
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

6 years agoarm: tegra: cardhu: modify cardhu board files
Darbha Sriharsha [Wed, 3 Apr 2013 04:31:59 +0000]
arm: tegra: cardhu: modify cardhu board files

This change is intended to add a few modifications to
cardhu board file (which is also used for beaver)
to get rid of NACK errors occuring due to the absence
of certain hardware components on beaver

Bug 1217572

Change-Id: I1df7b7f777014610e4d64695d89324808ea4f266
Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-on: http://git-master/r/215983
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Ramalingam C <ramalingamc@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoarch: tegra: Ventana: vdd_ldo4 regulator handling
Ramalingam C [Mon, 18 Mar 2013 06:43:00 +0000]
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>

6 years agoarm: tegra: cardhu: additions to cardhu board file
Darbha Sriharsha [Thu, 24 Jan 2013 07:34:32 +0000]
arm: tegra: cardhu: additions to cardhu board file

This change is intended to add modifications to
cardhu board file (which is also used for beaver)
to get rid of NACK errors occuring due to the absence
of certain hardware components on beaver

Bug 1217572

Change-Id: I36dfcda1b133c983ce25d56729505bce8b99fdf1
Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-on: http://git-master/r/193667
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

6 years agoARM: Config: Tegra3:Disabled CONFIG_INPUT_MOUSEDEV
Naveen Kumar S [Thu, 7 Mar 2013 07:11:22 +0000]
ARM: Config: Tegra3:Disabled CONFIG_INPUT_MOUSEDEV

Disabled CONFIG_INPUT_MOUSEDEV to avoid kernel registering PS/2 mouse
devices, which are mostly not in use now.

Bug 1162832

Change-Id: I0b44af668fa94ffc589e646a842259afa837731e
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/187807
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

6 years agoARM: Config: Tegra2: Disabled CONFIG_INPUT_MOUSEDEV
Naveen Kumar S [Mon, 31 Dec 2012 14:51:33 +0000]
ARM: Config: Tegra2: Disabled CONFIG_INPUT_MOUSEDEV

Disabled CONFIG_INPUT_MOUSEDEV to avoid kernel registering PS/2 mouse
devices, which are mostly not in use now.

Bug 1162832

Change-Id: If47e654063934d3b60d033a0d2523b8caf97825b
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/187808
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

6 years agoARM: tegra: cardhu: enable OV5650 sensor
Bryan Wu [Tue, 12 Feb 2013 18:53:29 +0000]
ARM: tegra: cardhu: enable OV5650 sensor

Enable OV5650 sensor in Cardhu board file with the help of Tegra
V4L2 SoC camera interface.

Change-Id: I6ff8456941267c05986760f46f658962a940d07e
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/200226
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

6 years agomedia: tegra: add supporting for RAW8/RAW10 input and output
Bryan Wu [Tue, 12 Feb 2013 18:49:23 +0000]
media: tegra: add supporting for RAW8/RAW10 input and output

CSI host controller of Tegra can support Bayer Raw8 and Raw 10 data
input, it also output data as extended 16-bit data format in memory
directly.

Raw data output should be handled by the second output channel.

This patch add supporting for Raw data input/output and the second
output channel.

All were tested on Cardhu board.

Change-Id: Ifd1d8c94671a1d4571dcf176774e2d3cffafc399
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/200225
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

6 years agomedia: soc_camera: tegra: fix one building warning
Bryan Wu [Thu, 17 Jan 2013 01:29:03 +0000]
media: soc_camera: tegra: fix one building warning

Change-Id: Ie685ad11a0847be5b51c752ec593aec857e2f0e2
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/200224
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

6 years agomedia: soc_camera: add OV5650 SoC camera I2C device driver
Bryan Wu [Thu, 17 Jan 2013 01:27:29 +0000]
media: soc_camera: add OV5650 SoC camera I2C device driver

OV5650 is a RAW sensor outputing Bayer RAW 8 or RAW 10 data.
This driver uses SoC camera interface and supports several
different resolution.

Change-Id: I8075b63b42f7949a264bdef446f5ed8bdc0a9eee
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/200223
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

6 years agotegra: When using V4L2, don't use vi client.
Andrew Chew [Wed, 1 Aug 2012 19:57:12 +0000]
tegra: When using V4L2, don't use vi client.

The VI client within drivers/video/tegra is mutually exclusive with the
Tegra V4L2 framework, since they both want to own the camera hardware.

Change-Id: Idebd0f619f5fc7eb6323b2e08c29c9692c8887a0
Signed-off-by: Andrew Chew <achew@nvidia.com>
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/200221
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

6 years agotegra: Make tegra_vi01_device accessible
Andrew Chew [Wed, 1 Aug 2012 23:39:32 +0000]
tegra: Make tegra_vi01_device accessible

Make it accessible outside of drivers/video/tegra. V4L2 driver needs
to set some platform_data.

Add suport for T20.

Change-Id: I98353c2874ea28cfa0a7a5dd8a1dc4c586af4dd7
Signed-off-by: Andrew Chew <achew@nvidia.com>
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/200220
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

6 years agoARM: tegra: cardhu: Add battery regulator tegra-l4t-r16r3-rc tegra-l4t-r16-er-2013-02-13 tegra-l4t-r16r3-rc
Laxman Dewangan [Tue, 22 Jan 2013 13:45:35 +0000]
ARM: tegra: cardhu: Add battery regulator

Add battery regulator which is always-on. The rail which is
powered from battery can be added on this rail as consumer.

bug 1218527

Change-Id: I2394e1894649cd4fa736646981374681f603c832
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/#change,193052
(cherry picked from commit 4b9cabe87060bf5f252206aba5b62ea1ccb2ff83)
Reviewed-on: http://git-master/r/193777
Tested-by: Preetham Chandru <pchandru@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

6 years agoconfig: tegra3: enable /dev mount with ACL
Mursalin Akon [Fri, 1 Feb 2013 00:33:41 +0000]
config: tegra3: enable /dev mount with ACL

enable /dev mount with ACL

Bug 1225372
Bug 1219372

Change-Id: I3b80012e97c3a5ec8358285f81c5111a30ed19f8
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/196206
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

6 years agostaging: iio: light: isl29028: appropriately set interrupt flag
Preetham Chandru R [Thu, 31 Jan 2013 05:36:58 +0000]
staging: iio: light: isl29028: appropriately set interrupt flag

set is_int_enable to true only if we register for a irq.

Bug 1211260

Change-Id: I603efe721796db70d504da7999e5d7939d45d13a
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/193047
(cherry picked from commit 8b89b2b64c67d80fcfc29cd4f6a92d4527e70df9)
Reviewed-on: http://git-master/r/195844
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

6 years agoarm: tegra: cardhu: no gyro in beaver
Bibek Basu [Wed, 16 Jan 2013 04:59:56 +0000]
arm: tegra: cardhu: no gyro in beaver

Add support for PM315

Bug 1217569

Change-Id: I230fcec04eb5a96441e2c19b304d608d86eaf996
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/191555
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

6 years agoarm: Tegra: Beaver: PWRON key registration
Ramalingam C [Wed, 16 Jan 2013 06:32:31 +0000]
arm: Tegra: Beaver: PWRON key registration

Registration of PWRON key through PMU interrupt

Bug 1218247

Change-Id: I4d5d4a404fff28f2e34b1fd4af5712796eb8806c
Signed-off-by: Ramalingam C <ramalingamc@nvidia.com>
Reviewed-on: http://git-master/r/191574
Reviewed-by: Preetham Chandru <pchandru@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peer Chen <pchen@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

6 years agousb: gadget: tegra:change condition for vbus check
Rakesh Bodla [Wed, 17 Oct 2012 06:06:21 +0000]
usb: gadget: tegra:change condition for vbus check

Changing the condition for vbus check. VBUS will be
present when OTG cable is connected, hence vbus
status will be reflected wrong. Correct status
is tracked through vbus_active variable.

Bug 1158853
Bug 1214802

Change-Id: Ic904beb5919ddafef5becf39ddac1767cdda79cd
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/145148
(cherry picked from commit 00777683b05af76f15daa0152fb014183a32fa28)
Reviewed-on: http://git-master/r/190673
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Preetham Chandru <pchandru@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

6 years agomedia: v4l2: tegra: fixing memory access oops in tegra camera driver
Bryan Wu [Wed, 9 Jan 2013 18:29:55 +0000]
media: v4l2: tegra: fixing memory access oops in tegra camera driver

Function pointer int (*queue_setup)() of struct vb2_ops in
include/media/videobuf2-core.h is not compatible with our function
call tegra_camera_videobuf_setup(). So building will generate warning
and it will cause alloc_ctxs[] with wrong value, then introduce
memory access oops later.

Bug 1215617

Change-Id: I5d49ccd611a9435a5ee3b21e344bc0b5464ba747
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/190036
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Andrew Chew <achew@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

6 years agovideo: tegra: dc: minimum window size is 1x1
Jon Mayo [Fri, 21 Dec 2012 01:32:05 +0000]
video: tegra: dc: minimum window size is 1x1

Use 1x1 as the minimum window size.

Bug 1193195

Change-Id: I42e13fec82bbc2dc37bde6416088f3ae49b304b7
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/173302
(cherry picked from commit 3f160560b48fdf501547b9fc1f7c5bf8bd5e32af)
Reviewed-on: http://git-master/r/190810
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Tested-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

6 years agodriver: bcm4329: initialize SSID variable properly
Mursalin Akon [Fri, 11 Jan 2013 17:41:14 +0000]
driver: bcm4329: initialize SSID variable properly

initialize SSID variable properly to ensure
no memory overrun.

Bug 1204024

Change-Id: I2485c13edcf6a0feeae3cd4b2e9e98910a771dd2
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/190684
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

6 years agomedia: videobuf2-dma-nvmap: fixing nvmap_alloc failure
Bryan Wu [Wed, 9 Jan 2013 19:18:43 +0000]
media: videobuf2-dma-nvmap: fixing nvmap_alloc failure

Videobuf2-dma-nvmap driver using by Tegra v4l2 camera driver needs to
allocation memory from system memory with nvmap_alloc(). If we don't
enable config option CONFIG_NVMAP_ALLOW_SYSMEM, nvmap_alloc() will
fail and application stops working.

Bug 1215629

Change-Id: I40af697d8aee1a4981a9684953107dd070cc9bea
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/190037
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Andrew Chew <achew@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

6 years agodriver: bcmdhd: do not allow hang thread after cleanup
Mursalin Akon [Wed, 9 Jan 2013 00:32:05 +0000]
driver: bcmdhd: do not allow hang thread after cleanup

do not allow scheduling hang thread after cleanup
is done.

Bug 1210849
Bug 1205910
Bug 1163014

Change-Id: Idc5f9fd6a3d210843f1168e57ceef107599d5789
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/189721
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Allen Martin <amartin@nvidia.com>

6 years agousb: otg: tegra: Do not free platform data twice
Preetham Chandru R [Mon, 31 Dec 2012 14:17:13 +0000]
usb: otg: tegra: Do not free platform data twice

when platform device is unregistered, the call to platform_device_release()
will kfree the platform data. Hence do not free the platform data again.

Bug 1209618

Change-Id: Ied67f550223ec199da4bc8e38a12e7ee94c2d98a
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/187806
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

6 years agoarm: tegra: sata: Fix LP0 resume problem
Yen Lin [Thu, 3 Jan 2013 23:01:56 +0000]
arm: tegra: sata: Fix LP0 resume problem

- Fix a bug in ahci-tegra.c when checking if SATA is on when resuming
- Add codes to support PM315 which uses LDO1 regulator for SATA rails

bug 1206518

Change-Id: Iaa910b1948fbcf5e45491977fd8ed0b313d2e0ae
Signed-off-by: Yen Lin <yelin@nvidia.com>
Reviewed-on: http://git-master/r/188441
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Allen Martin <amartin@nvidia.com>
Reviewed-by: Peng Wu <pengw@nvidia.com>
Tested-by: Peng Wu <pengw@nvidia.com>
Reviewed-by: Eric Brower <ebrower@nvidia.com>

6 years agoarm: tegra: fb: Fix merge error
Shashank Sharma [Fri, 21 Dec 2012 07:20:35 +0000]
arm: tegra: fb: Fix merge error

Fix manual rebase error

Change-Id: I3b2165488b11bddda271cecdc979341c130def9b
Signed-off-by: Shashank Sharma <shashanks@nvidia.com>
Reviewed-on: http://git-master/r/173554
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

6 years agoarm: tegra: fb: Set new mode to all vc's
Shashank Sharma [Wed, 5 Dec 2012 08:41:25 +0000]
arm: tegra: fb: Set new mode to all vc's

Send change all vc's notification from HDMI hot-plug reader to
fbcon, so that the new selected mode can be applied on all the
vc's from vc1 to vc6. This sometimes causes corruption on HDMI
hot plugin, when fbcon is mapped to HDMI

Bug 1166008
Signed-off-by: Shashank Sharma <shashanks@nvidia.com>
Change-Id: Id173de3014597f79c8c8b31bbbee7c9c560547b6
Reviewed-on: http://git-master/r/168683
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

6 years agoarm: tegra: dc: corrct order to enable/disable dc irq
Jong Kim [Fri, 21 Dec 2012 01:16:57 +0000]
arm: tegra: dc: corrct order to enable/disable dc irq

When porting change from mainline to balance dc irq, the change
of enable/disable order was not ported, thus dc irq is disabled
if dc is enabled during probe.

This is part of http://git-master/r/146107.
Original change is big for many bugs, only port one here.

bug 1173177
bug 1173038
bug 1008313

Change-Id: Idd703daca9f980e905b185eeeae19dc6309d76e5
Signed-off-by: Dongfang Shi <dshi@nvidia.com>
Reviewed-on: http://git-master/r/162868
(cherry picked from commit 6ddd8b02f7a17d2269290d06159c20860ffb92e9)
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/173249
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agoarm: tegra: fb: Update line_length using display width
Jong Kim [Thu, 13 Dec 2012 00:26:53 +0000]
arm: tegra: fb: Update line_length using display width

Unconditionally update line_length using disply width to avoid discrepancy
between line_length and actual display width.

bug 1186388

Change-Id: I8ef2f9cf76a61764c2121f3c2c013b72b830ce2e
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/170664
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

6 years agonet: wireless: bcmdhd: Do not use P2P
Mursalin Akon [Fri, 14 Dec 2012 23:03:10 +0000]
net: wireless: bcmdhd: Do not use P2P

Do not use P2P, as it does not fit well with
network manager.

Bug 1199933

Change-Id: I355515574baabeace7c48932c52007c1fe0c3d5f
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/171551
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

6 years agoARM: tegra3: pm315/beaver: enable Realtek ALC5640 audio codec support
Bryan Wu [Thu, 6 Dec 2012 00:43:55 +0000]
ARM: tegra3: pm315/beaver: enable Realtek ALC5640 audio codec support

 - select RT5640 ASoC support in Cardhu machine Kconfig
 - enable RT5640 ASoC driver in tegra3_defconfig
 - select RT5639 ASoC codec when selecting RT5640, othwise kernel
   linking will fail

Bug 1190823

Change-Id: I1046c30667d4ca8276080f1b3174eccd0b25328c
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/168884
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

6 years agovideo: tegra: clear fb2 unspecified by bootloader
Jong Kim [Thu, 13 Dec 2012 00:20:22 +0000]
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>

6 years agoarm: tegra: display: handle fbmem2 cmdline parameter
Jong Kim [Thu, 13 Dec 2012 00:07:54 +0000]
arm: tegra: display: handle fbmem2 cmdline parameter

Parse and handle fbmem2 cmdline parameter.

bug 1175957

Change-Id: I0933825371bf13782e9f4364a4dba078929ae836
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/170662
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

6 years agoarm: tegra: display: provide framebuffer clear function
Jong Kim [Thu, 13 Dec 2012 00:01:39 +0000]
arm: tegra: display: provide framebuffer clear function

Add tegra_clear_framebuffer function.

bug 1175957

Change-Id: I12c249e011ecd839bbe9c5371b8be6e8a4b27bba
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/170661
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

6 years agomedia: ov5640: Add Omnivision OV5640 support
Andrew Chew [Wed, 8 Aug 2012 20:35:33 +0000]
media: ov5640: Add Omnivision OV5640 support

Based on ov5642 driver. There seem to be some register differences,
so forking the driver to make those changes.

Change-Id: Idb4a79757cbbcd15d5456ce82a708f433faaff7a
Signed-off-by: Andrew Chew <achew@nvidia.com>
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/169836
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

6 years agomedia: tegra: enable a clock for VIP in APB MISC register
Bryan Wu [Wed, 14 Nov 2012 20:07:24 +0000]
media: tegra: enable a clock for VIP in APB MISC register

Change-Id: Ic4d91f4ed70fc3daf52768118f6ea537d529a5a8
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/169835
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

6 years agotegra: Add nvmap_mark_global()
Andrew Chew [Fri, 24 Aug 2012 23:25:03 +0000]
tegra: Add nvmap_mark_global()

Add this function, to be able to set the global field of an
nvmap_handle while preserving the nvmap API's encapsulation
mechanisms.

Change-Id: I62de773a65119722f059b114e2d0e906c7e04e83
Signed-off-by: Andrew Chew <achew@nvidia.com>
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/169834
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

6 years agotegra: Add function to release resources
Andrew Chew [Wed, 1 Aug 2012 23:52:42 +0000]
tegra: Add function to release resources

Add a companion function to nvhost_client_device_get_resources()
called nvhost_client_device_put_resources() that does the opposite
thing. This is useful for any nvhost clients that need to be loaded
as modules, since the driver removal path will be exercised in that
case.

Change-Id: Ib5cec6fce7b05c780b135b03fcd88e068f772244
Signed-off-by: Andrew Chew <achew@nvidia.com>
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/169833
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

6 years agomedia: tegra: Tegra videobuf2
Andrew Chew [Mon, 20 Aug 2012 20:02:04 +0000]
media: tegra: Tegra videobuf2

This is based off of videobuf2-dma-contig, except we use Tegra's
nvmap for the buffer allocations.

Signed-off-by: Andrew Chew <achew@nvidia.com>
Change-Id: I15e689c33ee7b4fc0aade794c78701c82483df3f
Reviewed-on: http://git-master/r/145345
(cherry picked from commit 70a4f20fbdd6c2c719400d6c59ef58d845657031)

Signed-off-by: Bryan Wu <pengw@nvidia.com>
Change-Id: Ia0632d7fcb28415e33fbb22c48f29117d7436f1d
Reviewed-on: http://git-master/r/170824
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Andrew Chew <achew@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

6 years agomedia: tegra: Tegra V4L2 camera
Andrew Chew [Tue, 29 Mar 2011 01:38:39 +0000]
media: tegra: Tegra V4L2 camera

This is the Tegra V4L2 camera host driver, for Tegra2/Tegra3's VI/CSI
controller.

Signed-off-by: Andrew Chew <achew@nvidia.com>
Change-Id: If2d9eefe53c2119c1a6ae518216e1a3c3ed216ef
Reviewed-on: http://git-master/r/145346
(cherry picked from commit 5a9bfd588b755f354ae21471a3a2a3e559ca6fae)

Signed-off-by: Bryan Wu <pengw@nvidia.com>
Change-Id: I4db33b17efdb401938603cb2153d73bf3421ba61
Reviewed-on: http://git-master/r/170823
Reviewed-by: Andrew Chew <achew@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

6 years agomedia: tegra: Add docs for Tegra V4L2 camera
Andrew Chew [Mon, 6 Aug 2012 21:43:09 +0000]
media: tegra: Add docs for Tegra V4L2 camera

This readme describes theory of operations of the Tegra camera host
driver.

Signed-off-by: Andrew Chew <achew@nvidia.com>
Change-Id: I9e6f761cd60f5b8a537174290df21fb85f016dca
Reviewed-on: http://git-master/r/145347
(cherry picked from commit 7dd02775470d2b243f96b7d1f4e8b9c4e3b3ada6)

Signed-off-by: Bryan Wu <pengw@nvidia.com>
Change-Id: I10fd56ea6e3e83db6e09b75126a2048552ef052c
Reviewed-on: http://git-master/r/170822
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Andrew Chew <achew@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agotegra_camera: fix building error when disable CONFIG_TEGRA_CAMERA
Bryan Wu [Fri, 30 Nov 2012 00:01:28 +0000]
tegra_camera: fix building error when disable CONFIG_TEGRA_CAMERA

  LD      vmlinux.o
drivers/built-in.o: In function `is_tegra_camera_on':
/home/roc/Work/bug_vip/source_vibrante/kernel/include/media/
tegra_camera.h:59: multiple definition of `is_tegra_camera_on'
arch/arm/mach-tegra/built-in.o:/home/roc/Work/bug_vip/source_vibrante
/kernel/include/media/tegra_camera.h:59: first defined here
make: *** [vmlinux.o] Error 1

Commit '678708d WAR: gr3d: limit 3d clock when camera is on'
introduced a function is_tegra_camera_on(), which is dummy when
CONFIG_TEGRA_CAMERA is disabled. But it will be multiple defined
when includ this header file in multiple C files.

So marking it as static will kill this error.

Change-Id: I9dbcf1231f744c23e761d70da0bfc874fb286e4a
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/167510
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

6 years agomedia: video: tegra: nvavp: Fix nvmap handle issue
Gajanan Bhat [Wed, 12 Dec 2012 20:06:04 +0000]
media: video: tegra: nvavp: Fix nvmap handle issue

In open call we were assigning the driver's nvmap handle to
the nvavp's client context which would get released in release
call to driver. This will cause driver's nvmap handle to be
invalid if a parallel client context is running and driver does
any nvmap operation.

Bug 1013063
Bug 1192772

Change-Id: Id02520ae8ec511bb8c50bc4d3908ea3e75e1ea6b
Reviewed-on: http://git-master/r/170585
Signed-off-by: Gajanan Bhat <gbhat@nvidia.com>
Reviewed-on: http://git-master/r/171097
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

6 years agousb: tegra: conditionally set wake enable
Preetham Chandru R [Thu, 29 Nov 2012 11:38:50 +0000]
usb: tegra: conditionally set wake enable

Set wake enable only if remote wakeup is supported
by the platform

Bug 1039143

Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Change-Id: I805dd773cdbb5639f59b2f5ba4bcb2e14be74d5b
Reviewed-on: http://git-master/r/147462
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

6 years agoARM: tegra: p852: Fix misbracketed cond clause
Andrew Chew [Wed, 31 Oct 2012 23:59:30 +0000]
ARM: tegra: p852: Fix misbracketed cond clause

This misbracketing can potentially result in an invalid pointer dereference.

Signed-off-by: Andrew Chew <achew@nvidia.com>
Change-Id: Iaed185dd2141f1aa332747eeba10d22b850caa37
Reviewed-on: http://git-master/r/168475
Reviewed-by: Peng Wu <pengw@nvidia.com>
Tested-by: Peng Wu <pengw@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

6 years agoconfig: tegra3: BT and HID options
Mursalin Akon [Thu, 29 Nov 2012 23:07:46 +0000]
config: tegra3: BT and HID options

- enable couple of HID devices
- modify couple of BT options

Bug 1178960

Change-Id: Id9377edff2189d8a63f624d5d4e388e54658482f
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/167541
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agobluetooth: hid: make Android code conditional
Mursalin Akon [Thu, 29 Nov 2012 22:33:57 +0000]
bluetooth: hid: make Android code conditional

Commit 7c786ce33a1b4194cb95aa1e68bc38d552eda932
introduced couple of fields, which are not used
in standard bluez user space stack. However,
Android bluez use them. This CL, conditionally
builds the part of the code introduced in the
above commit.

Bug 1178960

Change-Id: I7254fe83c7fb4bbfd14e00dda3ec3a14afc1b234
Signed-off-by: Mursalin Akon <makon@nvidia.com>
(cherry picked from commit e3375fd96fa5e0d7cfcda848d797cd512c12b7a6)
Reviewed-on: http://git-master/r/167540
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

6 years agoconfig: tegra3: enable RFKILL_GPIO
Mursalin Akon [Tue, 27 Nov 2012 00:10:52 +0000]
config: tegra3: enable RFKILL_GPIO

required for bluetooth

Bug 1033671

Change-Id: Ibc45eaf344ef7a5eea88e7df5747f8dcdcbf202d
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/166347
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

6 years agoarm: tegra: config: enable SATA for L4T
Bibek Basu [Fri, 12 Oct 2012 05:01:45 +0000]
arm: tegra: config: enable SATA for L4T

Enable CONFIG_SATA_AHCI_TEGRA

Bug 1171138

Change-Id: Id0cf3679a0fb0b85e20cd83c94135bf2aab2dd71
Original-author: Mike Thompson <mikthompson@nvidia.com>
Signed-off-by: Mike Thompson <mikthompson@nvidia.com>
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/143985
Tested-by: Simone Willett <swillett@nvidia.com>
(cherry picked from commit 6830e27f86e0f3a2f1e3bad51ee2bf6855dc99b7)
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/166838
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

6 years agoarm: tegra: ahci/sata: check sata against board id
Bibek Basu [Thu, 11 Oct 2012 10:04:04 +0000]
arm: tegra: ahci/sata: check sata against board id

If the board has sata support, then only add platform device
Also move slumber code to Idle powergate section to
avoid build failure.

Bug 1171138

Change-Id: I6128f451f348a7fad41fc52579b18939c8a2efcd
Original-author: Mike Thompson <mikthompson@nvidia.com>
Signed-off-by: Mike Thompson <mikthompson@nvidia.com>
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/143984
Tested-by: Simone Willett <swillett@nvidia.com>
(cherry picked from commit 6e6a0ec500a3113272a593e4466f04d940bc637f)
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/166837
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

6 years agoarm: tegra: cardhu: add support for PM315
Bibek Basu [Thu, 11 Oct 2012 06:33:18 +0000]
arm: tegra: cardhu: add support for PM315

Add support for PM315

Bug 1171138

Change-Id: I2e5461c656c41d4172aca60525655cb780eaa17e
Original-author: Mike Thompson <mikthompson@nvidia.com>
Signed-off-by: Mike Thompson <mikthompson@nvidia.com>
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/143506
(cherry picked from commit 4e66142b6990ca586e085aa88ae0bd6b819da0c4)
Reviewed-on: http://git-master/r/166814
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

6 years agoarm: tegra: fb: Update fix line_length tegra-l4t-r16r2-rc
Shashank Sharma [Thu, 25 Oct 2012 09:41:39 +0000]
arm: tegra: fb: Update fix line_length

Update framebuffer's fix line_length parameter when changing
video mode dynamically.The new line_length should be according
to new x resolution. On addition, check the return value from
dc driver while setting a mode.

Bug 1163682
Bug 1056767
Bug 1056782
Signed-off-by: Shashank Sharma <shashanks@nvidia.com>
Change-Id: Ib0ab48474f0af3235556a7f7f0d8354af3b50994
Reviewed-on: http://git-master/r/147511
(cherry picked from commit 5856c4afde9459ba6afaf2cdcb07361d9fbf8c79)
Reviewed-on: http://git-master/r/160788
Tested-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoarm : tegra2 : do not power off the phy in suspend
Preetham Chandru R [Thu, 1 Nov 2012 13:48:40 +0000]
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

6 years agoARM: tegra: rename fuse driver
Preetham Chandru R [Wed, 10 Oct 2012 10:07:28 +0000]
ARM: tegra: rename fuse driver

The fuse driver registers parameters and thus
create a /sys/module/fuse directory which collides
with the fuse filesystem driver.

Rename fuse.c to tegra-fuse.c to fix this.

Bug 1058350

Change-Id: I5201bc43fcb44df8181085322bc40d1f6e99bf93
Signed-off-by: Marc Dietrich <marvin24@gmx.de>
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/143206
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Stephen Warren <swarren@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

6 years agoARM: tegra: ventana: disable usb1 vbus gpio
Preetham Chandru R [Fri, 5 Oct 2012 12:55:50 +0000]
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>

6 years agoasoc: tegra: WAR: Check AVP id before setting DMA
Shashank Sharma [Fri, 28 Sep 2012 10:59:24 +0000]
asoc: tegra: WAR: Check AVP id before setting DMA

WAR to check souncard data's avp_id before trying to set
DMA address. An invalid avp_id can cause invlaid rtd, causing
panic in control ioctl calls.

Bug 1046249
Bug 1044761
Bug 1049940
Bug 1050152

Change-Id: Ib536220fdb92f8256c777d6fa14b66e47bc6b7be
Signed-off-by: Shashank Sharma <shashanks@nvidia.com>
Reviewed-on: http://git-master/r/134426
(cherry picked from commit 007fd7b1ae101c5be2a3d35ad11e7190862c04ca)
Reviewed-on: http://git-master/r/142493
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

6 years agoenabling P2P for bcmdhd driver
Mursalin Akon [Tue, 11 Sep 2012 21:50:03 +0000]
enabling P2P for bcmdhd driver

Bug 1029792

Change-Id: I8ee7190ccd50863f6f0f1aa216035afbae57ebcf
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/141631
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoconfig: use CFG80211 for bcmdhd
Mursalin Akon [Fri, 7 Sep 2012 18:30:32 +0000]
config: use CFG80211 for bcmdhd

CFG80211 is needed for WFD. So, use CFG80211,
instead of, WEXT in bcmdhd driver.

Bug 1029792
Bug 1029733

Change-Id: I81d99a821429f3be8400355faa5bee14904c0944
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/141630
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agobcmdhd: use the wiphy from private data structure (i.e., wl_priv)
Mursalin Akon [Fri, 7 Sep 2012 17:57:02 +0000]
bcmdhd: use the wiphy from private data structure (i.e., wl_priv)

problem:
The macro wiphy_from_scan retrieves wiphy from
wl_priv->escan_info.wiphy which is in turn set by
a 'scan' initiated from kernel space (like
scheduled scan) or from user space (like iwlist command).
Without a scan, a 'connect' crashes in function
wl_inform_single_bss, with NULL pointer access,
as the variable wiphy (in turn, wl->escan_info.wiphy)
is not initialized properly.

solution:
wireless_device data structures maintained for both
STA and P2P mode point to the same wiphy (see,
wl_cfgp2p_register_ndev in wl_cfgp2p.c). So,
irrespective of whatever wireless_device is in
use, a scan will always set wl_priv->escan_info.wiphy
to the same wiphy. There is no point in getting
wiphy using wl_priv->escan_info.wiphy, rather use
the wiphy referred by all wireless_device structures.

Bug 1029792
Bug 1029733

Change-Id: I6d744950d3a053642ffa998b3c3f3ba60c0cb687
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/141629
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agobcmdhd: do not turn off mmc at probe
Mursalin Akon [Fri, 31 Aug 2012 17:46:22 +0000]
bcmdhd: do not turn off mmc at probe

Do not turn off mmc at probe if watchdog thread is
in use.

Bug 1029792
Bug 1029733

Change-Id: Ia2e303daa27688c96e7fa5941e01cf821166c498
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/141628
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agonet: wireless: bcmdhd: cleanup Kconfig/Make
Mursalin Akon [Thu, 16 Aug 2012 17:01:28 +0000]
net: wireless: bcmdhd: cleanup Kconfig/Make

cleanup bcmdhd driver Kconfig and Makefile

Bug 1029792
Bug 1029733

Change-Id: Ic947644d2159a52fab7aea1621e12e51d8ee6332
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/141627
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoarm: tegra: fb: Apply new mode even if its current
Shashank Sharma [Wed, 8 Aug 2012 09:25:21 +0000]
arm: tegra: fb: Apply new mode even if its current

Set activation of a mode forcefully via setting FB_ACTIVATE_FORCE
flag. Required for stereo modes also.

Bug 1005399
Change-Id: I37872cc2a04abc8774a5f9f9df7d9e90f2c977f6
Signed-off-by: Shashank Sharma <shashanks@nvidia.com>
Reviewed-on: http://git-master/r/122087
(cherry picked from commit 80a7b7b2d10a97427e12884d469a518cc2b5f765)
Reviewed-on: http://git-master/r/140033
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

6 years agoarm: tegra: cardhu: Reserve 16MB on RAM for HDMI
Shashank Sharma [Tue, 7 Aug 2012 06:45:06 +0000]
arm: tegra: cardhu: Reserve 16MB on RAM for HDMI

Reserve 16MB for HDMI maximum possible resolution (1920x1080) at
32 bpp and double buffering.

Change-Id: Id719a875b805723758485f970ab9e2f1a28ed19b
Signed-off-by: Shashank Sharma <shashanks@nvidia.com>
Reviewed-on: http://git-master/r/121562
(cherry picked from commit d376bc491a460353124adc0f2be8612add0d8e76)
Reviewed-on: http://git-master/r/140032
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

6 years agovideo: tegra: fb: Configure dc from fb
Shashank Sharma [Fri, 3 Aug 2012 15:20:41 +0000]
video: tegra: fb: Configure dc from fb

This patch contains following changes:
1. Modify tegra_fb_update_monspecs to select best mode to apply
   on framebuffer, in HDMI hotplug.
2. Add a console_lock to prevent corruption while fbcon running
   in multiple threads.
3. Add a tegra_dc_disable/enable in tegra_fb_set_par to reflect
   the programmed new mode applied on DC.

Bug: 1005399
Change-Id: I133b38b00f25f767afc05549550fecde8d092fb2
Signed-off-by: Shashank Sharma <shashanks@nvidia.com>
Reviewed-on: http://git-master/r/120932
(cherry picked from commit ec7552ef36c0d0979cb31db6d2d4bd54e7f1c9fb)
Reviewed-on: http://git-master/r/140031
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

6 years agoARM: tegra: fix-up tegra_gpio enable/diablse defs
Matt Pedro [Mon, 1 Oct 2012 15:44:42 +0000]
ARM: tegra: fix-up tegra_gpio enable/diablse defs

Clean-up the definition of the tegra_gpio enable/disable so that
it compares to the l4t r16 rel.

Change-Id: Ia8584ada1e2a728d2784d6d57c72ed4b0ee01cf1
Signed-off-by: Matt Pedro <mapedro@nvidia.com>
Reviewed-on: http://git-master/r/140648
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: tegra: fix-up definition by adding 'static'
Matt Pedro [Mon, 1 Oct 2012 01:27:12 +0000]
ARM: tegra: fix-up definition by adding 'static'

Fix up the definition of the tegra_gpio enable/disable.

Change-Id: Id71242690efa3e5994a4b70089826f2b87997ece
Signed-off-by: Matt Pedro <mapedro@nvidia.com>
Reviewed-on: http://git-master/r/140036
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: tegra: Fix missing functions in gpio header
Matt Pedro [Sun, 30 Sep 2012 22:49:22 +0000]
ARM: tegra: Fix missing functions in gpio header

Fix the missing tegra_gpio enable/disable function defitintions.

Change-Id: I82ed085bd67486d5e9c383a8c26243e2c1edf670
Signed-off-by: Matt Pedro <mapedro@nvidia.com>
Reviewed-on: http://git-master/r/140026
Reviewed-by: Automatic_Commit_Validation_User

6 years agocpufreq: interactive: Unify Governor Lock Strategy
Matt Wagner [Mon, 17 Sep 2012 23:06:15 +0000]
cpufreq: interactive: Unify Governor Lock Strategy

Change our locking strategy to be the same as the conservative
and ondemand governor for GOV_START and GOV_STOP to allow
for correct handling of multiple CPUs

Bug 1049258

Change-Id: I15ab620e2f9d47b00ec8186c224eb719b9735aa7
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/133360
Reviewed-by: Satya Popuri <spopuri@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agoarm: tegra: raise cpu floor when display is on
Wen Yi [Wed, 22 Aug 2012 00:04:48 +0000]
arm: tegra: raise cpu floor when display is on

When device is idle and display is on, the minimal
cpu frequency can drop to 51mhz. Since it takes several
tens of millisecond to ramp up cpu freq, the delay
impact negatively the performance of low latency CPU bound
tasks.

Given the power savings of several milliwatts running cpu
at 51mhz comparing to 102mhz or 204 mhz at idle, the idle
cpu freq is hence raised to 102mhz for smart panel device
and 204mhz for dump panel devices.

Bug 1036216

Change-Id: Ifb0ed88d4c5fcf5b637d09c587322cec72b8a08d
Signed-off-by: Wen Yi <wyi@nvidia.com>
(cherry picked from commit c8465feffcd0cf2401bbd6c6f535955dd68bda55)
Reviewed-on: http://git-master/r/132479
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ujjaval Patel <upatel@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoarm: tegra: usb_phy: set vbus_reg to NULL
Petlozu Pravareshwar [Wed, 12 Sep 2012 09:42:36 +0000]
arm: tegra: usb_phy: set vbus_reg to NULL

Setting vbus_reg to NULL if regulator get
fails.

Bug 1047065

Change-Id: I574f58d46f226d70034a4f363103fd9763482292
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/131759
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agousb: gadget: tegra: check vbus before run bit set
Rohith Seelaboyina [Wed, 12 Sep 2012 08:52:15 +0000]
usb: gadget: tegra: check vbus before run bit set

Adding the check for vbus before setting the
run bit.

Bug 1046443

Change-Id: If71748f0fe9c942061ca871034ad4298a58efc23
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/131733
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoRevert "ARM: tegra: cardhu: set I2S as slave mode"
Sumit Bhattacharya [Tue, 11 Sep 2012 15:32:58 +0000]
Revert "ARM: tegra: cardhu: set I2S as slave mode"

This reverts commit 616ade39df296b2c60d8ce74c719bc560f78f598.

Bug 1046372

Change-Id: I1e8554f773e6af459f50658b683eafb2b0160f64
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/131458
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agocpufreq: interactive: Add Uevent Signal on Gov Start
Matt Wagner [Thu, 6 Sep 2012 18:46:13 +0000]
cpufreq: interactive: Add Uevent Signal on Gov Start

Sends kobject_uevent signal back to userspace to signal that
the cpufreq governor has been set to interactive

Bug 1039141

Change-Id: I699e9d5834a1874b36c675764c080112ccba0f9f
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/131224
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agovideo: tegra: host: add idle time estimate in 3dfs
Ilan Aelion [Tue, 28 Aug 2012 17:05:36 +0000]
video: tegra: host: add idle time estimate in 3dfs

When a throughput hint is available, still keep track of the idle time
percentage and use both in gpu scaling. Also modifying fallback
scaling code to use same idle estimate used when a throughput hint is
available. Dropping different time frames for scaling up and down.

Bug 1034948
Bug 965517

Change-Id: Ib3945642768e36a6c0c50f4195c89e3bb67f8442
Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-on: http://git-master/r/129410
(cherry picked from commit 1e9974097286a78f34367683a3921c9b5bf77d4d)
Reviewed-on: http://git-master/r/131155
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoWAR: gr3d: limit 3d clock when camera is on
Jihoon Bang [Tue, 19 Jun 2012 23:12:00 +0000]
WAR: gr3d: limit 3d clock when camera is on

As WAR, limit 3d clock frequency and emc clock frequency
when camera is on and chip is AP37. 3d clock is set to
361MHz and 437MHz is requested for emc clock with this
change. This change allows 3d to request 1.1V in Core
instead of 1.3V in AP37.

Bug 1001262
Bug 1019309

Change-Id: I9f46f93d8da0fcf5afe05839177bf0d6e43a5840
Signed-off-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-on: http://git-master/r/130945
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agotegra: dc: Fix div by zero in frame time computation.
Raghavendra VK [Mon, 27 Aug 2012 18:00:12 +0000]
tegra: dc: Fix div by zero in frame time computation.

- Set frame duration to 0 in NULL modeset.

bug 1039104

Reviewed-on: http://git-master/r/127603
(cherry picked from commit 604cda21d79ed168e9863f0122eb0c23fa1a901b)

Change-Id: I0be1b96529e40a374e4507ecd3da990677d4cbd4
Signed-off-by: Raghavendra VK <rvk@nvidia.com>
Reviewed-on: http://git-master/r/130943
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: mutex: use generic atomic_dec-based implementation for ARMv6+
Will Deacon [Mon, 13 Aug 2012 17:38:48 +0000]
ARM: mutex: use generic atomic_dec-based implementation for ARMv6+

Commit a76d7bd96d65 ("ARM: 7467/1: mutex: use generic xchg-based
implementation for ARMv6+") removed the barrier-less, ARM-specific
mutex implementation in favour of the generic xchg-based code.

Since then, a bug was uncovered in the xchg code when running on SMP
platforms, due to interactions between the locking paths and the
MUTEX_SPIN_ON_OWNER code. This was fixed in 0bce9c46bf3b ("mutex: place
lock in contended state after fastpath_lock failure"), however, the
atomic_dec-based mutex algorithm is now marginally more efficient for
ARM (~0.5% improvement in hackbench scores on dual A15).

This patch moves ARMv6+ platforms to the atomic_dec-based mutex code.

Change-Id: I8f64e98ccb61cc1cb9cb68ee15e55d8a792792f5
Cc: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Reviewed-on: http://git-master/r/130941
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: 7467/1: mutex: use generic xchg-based implementation for ARMv6+
Will Deacon [Fri, 24 Aug 2012 12:36:47 +0000]
ARM: 7467/1: mutex: use generic xchg-based implementation for ARMv6+

The open-coded mutex implementation for ARMv6+ cores suffers from a
severe lack of barriers, so in the uncontended case we don't actually
protect any accesses performed during the critical section.

Furthermore, the code is largely a duplication of the ARMv6+ atomic_dec
code but optimised to remove a branch instruction, as the mutex fastpath
was previously inlined. Now that this is executed out-of-line, we can
reuse the atomic access code for the locking (in fact, we use the xchg
code as this produces shorter critical sections).

This patch uses the generic xchg based implementation for mutexes on
ARMv6+, which introduces barriers to the lock/unlock operations and also
has the benefit of removing a fair amount of inline assembly code.

Change-Id: I58e3ca4d2740a834d30b54fc35742fa2df7792ad
Cc: <stable@vger.kernel.org> : 0bce9c46: mutex: Place lock in contended...
Cc: <stable@vger.kernel.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Nicolas Pitre <nico@linaro.org>
Reported-by: Shan Kang <kangshan0910@gmail.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Reviewed-on: http://git-master/r/130940
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoMerge remote branch 'origin/rel-16r5' into rel-16r5-null-merge
Rohan Somvanshi [Mon, 10 Sep 2012 13:27:33 +0000]
Merge remote branch 'origin/rel-16r5' into rel-16r5-null-merge

6 years agortc: max77663: fix alarm reading bug
Daniel Fu [Wed, 5 Sep 2012 03:45:04 +0000]
rtc: max77663: fix alarm reading bug

When reading alarm of RTC-max77663, it didn't set alrm->enabled correctly,
if irq is masked, means disable alarm, alrm->enabled should be set to 0,
else it should be 1.

Change-Id: Id0b1ffd9a816643712f33624d7d52cbe7b66b3c3
Signed-off-by: Daniel Fu <danifu@nvidia.com>
Reviewed-on: http://git-master/r/129593
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra: xmm: add post_resume phy callback
Vinayak Pane [Fri, 24 Aug 2012 02:48:12 +0000]
arm: tegra: xmm: add post_resume phy callback

phy post_resume is called when usb port+hub is resumed,
check if modem has finished resume by then. Notify modem
about post resume by setting bb_wake to low.

Modify check for CP initiated wakeup to read current
modem state (ap_wake).

Bug 1034420

Change-Id: Ie9a3aa581bd7660183464e3fc2554ceb055b69b2
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/129533
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agosecurity: tf_driver: integrate latest TL release
Hyung Taek Ryoo [Fri, 31 Aug 2012 18:24:49 +0000]
security: tf_driver: integrate latest TL release

Tegra 3 version: TF_TEGRA3_AB01.16.37161

Improvements in maintenance operations of L2 Cache Controlller.

Change-Id: Iddbd61b21b6d83548d5a8c636e26b07b3b4f1385
Signed-off-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-on: http://git-master/r/128948
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: James Zhao <jamesz@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Wen Yi <wyi@nvidia.com>

6 years agoarm: tegra: secureos: disable L2 as part of sleep CPU SMC
Chris Johnson [Sat, 25 Aug 2012 00:27:58 +0000]
arm: tegra: secureos: disable L2 as part of sleep CPU SMC

This is an alternate way to have the L2 disabled available with
later TL secureos versions.

In this version, the sleep CPU SMC which is the last one issued
before entering LP2 on CPU0, will also disable the L2 without a
flush of the secureos workspace.

Change-Id: I61c3caade6cb6f922b9d9f9ca0739bc6ae4e78cd
Signed-off-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-on: http://git-master/r/128951
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: James Zhao <jamesz@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: tegra: enterprise: enable wl18xx wireless module support
Rakesh Goyal [Tue, 28 Aug 2012 16:46:08 +0000]
ARM: tegra: enterprise: enable wl18xx wireless module support

Bug 990784
Change-Id: I173df3f7244e7d0b40ae5aad98c72885ff42fdab
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-on: http://git-master/r/129103
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra: tai: fix gpio number for nfc and bluetooth
Rakesh Goyal [Sat, 25 Aug 2012 18:34:33 +0000]
ARM: tegra: tai: fix gpio number for nfc and bluetooth

NFC use GPIO4 for download firmware
BT_RST is required to make bluetooth on/off

Bug 1002637

Change-Id: Ic49a3fe606de618dfafdf0bc35b6a6fc1ac12cdd
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-on: http://git-master/r/128612
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoarm: tegra: kai: update memory timings
Kerwin Wan [Wed, 4 Jul 2012 08:20:24 +0000]
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>

6 years agodrivers:video:tegra: Fix CDMA timeout recovery
Arto Merilainen [Mon, 3 Sep 2012 12:48:49 +0000]
drivers:video:tegra: Fix CDMA timeout recovery

This patch fixes wait base handling in CDMA timeouts.

Bug 1025617

Change-Id: Ia93e55631c1159da161d5c4f257d3beebf0d3149
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/129278
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-by: Kirill Artamonov <kartamonov@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agoarm: tegra: phy: enable wakeup event for usb phy
Rakesh Bodla [Tue, 4 Sep 2012 06:13:44 +0000]
arm: tegra: phy: enable wakeup event for usb phy

If usb device already connected, should disable WKCN
in USB2D_PORTSC1, and enable WKDS in USB2D_PORTSC1,
during utmi phy power off. All the wakeup resource
should be cleared after the event happened.

Bug 1020021
Bug 1028429

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

6 years agovideo: tegra: dc: fix boot issue with HDMI
Deepak Nibade [Thu, 16 Aug 2012 11:58:51 +0000]
video: tegra: dc: fix boot issue with HDMI

Set default mode for probe and resume to enable initialization of dc.1
Skipping this initialization results in hard system hang.

bug 1030415

Reviewed-on: http://git-master/r/124001
(cherry picked from commit 50fa5e50b74a0534d7524fb6d7dcaa65b2e6e74c)

Change-Id: Id9ad95e114a27c1667f0286443534a23b7fa64d4
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/128533
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: tegra: dc: move set default videomode out of _tegra_dc_enable.
Marvin Zhang [Fri, 3 Aug 2012 00:03:21 +0000]
video: tegra: dc: move set default videomode out of _tegra_dc_enable.

Set default videomode happens during probe and resume. _tegra_dc_enable
is also called during hotplug, setting default videomode there causes
hdcp test failure.

Bug 991805

Reviewed-on: http://git-master/r/121052
(cherry picked from commit 7d4e0461a88b8cf638963e69829274824fecc38b)

Change-Id: I98be07e883699ba9fa6e222bb1d8ea68d199dfc6
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/128532
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agortc: max77663: Set Alarm wday to its reset value
Daniel Fu [Thu, 23 Aug 2012 11:40:08 +0000]
rtc: max77663: Set Alarm wday to its reset value

The wday is configured only when disabled alarm.
When enable alarm, set it to its default reset value 0x01,
and not enable it, to prevent an error happened when re-read the
alarm value into the virtualized generic layer at boot up in
reading alarm setting of RTC.

Bug 1034871

Change-Id: I8bfa997653edaaa286cf768c1827b5ab986f52cc
Signed-off-by: Daniel Fu <danifu@nvidia.com>
Reviewed-on: http://git-master/r/129398
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>