6 years agomedia: video: tegra: sh532u focuser driver
Erik Lilliebjerg [Fri, 16 Dec 2011 02:36:43 +0000]
media: video: tegra: sh532u focuser driver

Fix focus position HW abstraction algorithm.
The new algorithm uses a best-fit loop that allows for extra
focus positions at each end of the focus range.

Bug 909087

Change-Id: Ib25913e6ad5a6644a550f76cba94800bd664143e
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/70466
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Raa4dd638cbcecd35ac5069a17ea346be240404cd

6 years agovideo: tegra: ar0832: fix regulator mismatch
Jihoon Bang [Fri, 9 Dec 2011 01:50:34 +0000]
video: tegra: ar0832: fix regulator mismatch

Fix regulator enable/disable mismatch. AR0832_IOCTL_GET_SENSOR_ID
doesn't turn on power when it's called second time. This condition
wasn't handled properly in ar0832_power_off.

Remove redundant sleep() to speed up camera launch and switch.
Remove redundant variable.

Bug 913437

Change-Id: Ic5464a0fb4b8f3d8421a95fbfb6a399830887012
Signed-off-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-on: http://git-master/r/69116
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Qi Wang <qiw@nvidia.com>

Rebase-Id: R19f1cd2c7421f52db4387f937761b9957dd9317a

6 years agoarm: tegra: smmu: Add config option to force Tegra3 A01 IOVA range
Hiro Sugawara [Tue, 13 Dec 2011 17:12:26 +0000]
arm: tegra: smmu: Add config option to force Tegra3 A01 IOVA range

For debugging and working around SMMU/AVP IOVA range issues.
Default is "n" for production IOVA range.
Also removed chip revision knowledge from AVP loader.

Change-Id: I69984feaebe93a1d05d018ecf8a6e79d18bb0087
Reviewed-on: http://git-master/r/69515
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: Rad8503aad8a57232c78607fa41bb12d70496f884

6 years agomedia: video: tegra: update ov2710 AE settings
Abhinav Sinha [Wed, 14 Dec 2011 00:16:37 +0000]
media: video: tegra: update ov2710 AE settings

disable sensor AE/AWB and update coarse integration time
and gain settings on a mode change.

Bug 914413

Change-Id: I9121896521f47bc71f0aad9e88a1226dc8388774
Signed-off-by: Abhinav Sinha <absinha@nvidia.com>
Reviewed-on: http://git-master/r/69864
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R8f22022b6a5cae5db04faa12241bc94e86d58a6b

6 years agonvavp: vid ucode firmware file fallback
Isaac Richards [Wed, 7 Dec 2011 20:44:19 +0000]
nvavp: vid ucode firmware file fallback

If loading the normal video ucode file fails, try an alternative.

Bug 912656

Change-Id: I5de9af222e46dcec21f821e78ea115800cbf4805
Signed-off-by: Isaac Richards <irichards@nvidia.com>
Reviewed-on: http://git-master/r/68755
Reviewed-by: Gajanan Bhat <gbhat@nvidia.com>
Reviewed-by: Mohan Nimaje <mnimaje@nvidia.com>
Reviewed-by: Mandar Potdar <mpotdar@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R3328cb749ee5fca25aaa7bfdd8bea00de6e2d900

6 years agomedia: video: ov5650: optimize i2c write table seq
Charlie Huang [Mon, 5 Dec 2011 23:51:51 +0000]
media: video: ov5650: optimize i2c write table seq

Combines i2c cmds that have sequential addresses into one bulk i2c write
cmd. This will save the overheads of slave addr + offset and the latency
time.

bug 816814

Change-Id: I7b3808e8af17dd805452672e4386033d8383fb91
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/68326
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Rebase-Id: Rc6a23084068690196ce6c7386fc886dea6e97312

6 years agomedia: video: tegra: sh532u focuser driver
Erik Lilliebjerg [Tue, 6 Dec 2011 14:30:42 +0000]
media: video: tegra: sh532u focuser driver

Adding default calibration data for the cases where no focuser
EPROM data exists.

Bug 909087

Change-Id: I303e8dd3883f93c1ebca1dd00c6726b0afc099d2
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/68466
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

Rebase-Id: R6ffdb8956dddb191fbb003c3247efdc47e70d056

6 years agomedia: video: tegra: fix soc380 video jitter issue
Frank Chen [Thu, 1 Dec 2011 23:25:49 +0000]
media: video: tegra: fix soc380 video jitter issue

Update camera setting from 14fps to 30fps.

Bug 889703
Bug 903750

Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/67762
(cherry picked from commit e196be654bd6465b8f35433669d374b35a5cc176)

Change-Id: I40e2432afe8ec8f14197690737e84101414bf5b8
Reviewed-on: http://git-master/r/68453
Reviewed-by: Shivabassu Boragalli <sboragalli@nvidia.com>
Tested-by: Shivabassu Boragalli <sboragalli@nvidia.com>
Reviewed-by: Amit Arora <amita@nvidia.com>
Tested-by: Amit Arora <amita@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: Rc88cd647b12f5936309d20980a8d5c4bdfcce1f0

6 years agovideo: tegra: ov9726: add mode 1280x800
Charlie Huang [Sat, 3 Dec 2011 02:11:34 +0000]
video: tegra: ov9726: add mode 1280x800

Add new mode to the list of modes. This resolution is the full field of
view for this sensor, and the largest size the sensor supports.

bug 906417

Change-Id: I7b3570be136ee2aad68a0872dcd672b1fd6811bf
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/68061
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

Rebase-Id: Rb2f1c664fd3567ffda36dc962236a0a1953976fe

6 years agomedia: video: tegra: TPS61050 torch driver
Erik Lilliebjerg [Thu, 1 Dec 2011 12:25:20 +0000]
media: video: tegra: TPS61050 torch driver

- Added multi-instance support with sync capability
- Added GLOS power scheme
- Standardized the IOCTL API

Bug 860351
Bug 850614
Bug 852480
Bug 872156
Bug 824459

Change-Id: I858edfb4437ca1f7121790a5580b8825a8d925ae
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/66164
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

Rebase-Id: R212cfba38ca50453b1c04c829d7497918c489d6a

6 years agomedia: video: tegra: ov5650: update blc setting
Jordan Chin [Thu, 1 Dec 2011 01:50:08 +0000]
media: video: tegra: ov5650: update blc setting

Previously BLC is trigger by gain, so in the darker condition,
when gain reaches maximum no change, the BLC won't be triggered
properly. In some scenes it may require re-triggering the BLC,
if no BLC recalibration, the black level of the other channels
(B/R channel) may not be right. The new setting changes BLC from
gain change trigger mode to always on mode. So, the BLC will be
working on every frame no matter gain change or not, and the black
level will be correct in any scene.

Bug 897953, 723996

Change-Id: Iebe863ad0dc73f1706c082283261cea9534da3ab
Signed-off-by: Jordan Chin <jchin@nvidia.com>
Reviewed-on: http://git-master/r/65048
Reviewed-by: Gary Fitzer <gfitzer@nvidia.com>
Reviewed-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R14c972c3ef19746aa7cd3a01b8721f48460d396b

6 years agomedia: video: tegra: nvavp: Fix resource cleanup
Gajanan Bhat [Tue, 22 Nov 2011 06:53:03 +0000]
media: video: tegra: nvavp: Fix resource cleanup

Fix bug in releasing right memory resource during
ucode unloading and avp os unloading.

Bug 893719

Change-Id: Ibe1d70dff3286e863f9a0f9a4319571c62588737
Signed-off-by: Gajanan Bhat <gbhat@nvidia.com>
Reviewed-on: http://git-master/r/66024
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Tested-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

Rebase-Id: Re745198f4d0d88e9c591aafde16cb4e95125f31b

6 years agomedia: video: tegra: sh532u focuser driver
Erik Lilliebjerg [Thu, 1 Dec 2011 09:42:14 +0000]
media: video: tegra: sh532u focuser driver

The gpio_set_value calls are replaced with gpio_set_value_cansleep
to remove the WARN_ON dumps.

Bug 909165

Change-Id: Ie21db3864e2f4ac371bed1bd9a30d841e195b94a
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/67639
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

Rebase-Id: R21482b7352712734b6a7e41760cba31e8395a68f

6 years agovideo: tegra: avp: set emc to max if avp clock is max
Mayuresh Kulkarni [Mon, 19 Sep 2011 11:53:58 +0000]
video: tegra: avp: set emc to max if avp clock is max

this change ensures that emc clock is set to maximum when
avp clock goes maximum. it over-rides the emc clock
send by platform data when avp clock is maximum. it restores
the platform specific emc clock (if any) when the next
non-maximum avp clock request comes. if no emc platform
specific clock is specified, it restores the maximum emc clock

for bug 876402

Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/53193
(cherry picked from commit 5c01c2e99b44ed52cda27695b2a70a2beb5b7d45)

Change-Id: I5ce36e832728e06506e1a5b5ad25c773efa69492
Reviewed-on: http://git-master/r/67419
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Vandana Salve <vsalve@nvidia.com>
Tested-by: Vandana Salve <vsalve@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R9498ab29fbd24e4bc68b11afd66ec2ee5b9daf08

6 years agomedia: tegra: avp: Fix avp_suspend_done issue
Kaz Fukuoka [Fri, 1 Apr 2011 00:25:55 +0000]
media: tegra: avp: Fix avp_suspend_done issue

- Fix "avp_enter_lp0: AVP failed to suspend" error on suspend.
- The bug was started when 1KB was reserved in IRAM.

bug 805255
bug 786290

Reviewed-on: http://git-master/r/25010
(cherry picked from commit 1dce7b26fb212003304ed29250c97033492196cc)

Change-Id: Idb695bc0be678e00746df2209709e7f77494d958
Reviewed-on: http://git-master/r/67671
Reviewed-by: Amit Kamath <akamath@nvidia.com>
Tested-by: Amit Kamath <akamath@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>

Rebase-Id: R5514b80bb4fe53d6f8dac6b1d854461401ba455b

6 years agomedia: video: tegra: nvavp: Add AVP idle timeout
Gajanan Bhat [Fri, 18 Nov 2011 06:51:39 +0000]
media: video: tegra: nvavp: Add AVP idle timeout

Add support for disabling VDE/BSEV clocks when AVP goes
idle for timeout specified in channel control setting.
Also, enable VDE clock gating between command processing.

Bug 893719

Change-Id: I78d71cf2a6fe6152b11e4acd67f28bf486eeaec0
Signed-off-by: Gajanan Bhat <gbhat@nvidia.com>
Reviewed-on: http://git-master/r/65445
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Tested-by: Jihoon Bang <jbang@nvidia.com>
Tested-by: Gerrit_Virtual_Submit
Reviewed-by: Mandar Potdar <mpotdar@nvidia.com>
Tested-by: Mandar Potdar <mpotdar@nvidia.com>
Reviewed-by: Olivier Lapicque <olapicque@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R00caf2f0d7142019fb07efedeb0399812f237961

6 years agomedia: video: tegra: remove proprietary comments
Jordan Chin [Sat, 12 Nov 2011 02:43:38 +0000]
media: video: tegra: remove proprietary comments

Removed comments with document references and register information.

Bug 864805

Change-Id: Ibc24fb3ff94339b71364b10c9ece20452efd4a3e
Reviewed-on: http://git-master/r/62482
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R82c1732a2a2d08081d9d4d82301a3863d208514c

6 years agomedia: video: tegra: sh532u driver
Erik Lilliebjerg [Tue, 22 Nov 2011 10:53:54 +0000]
media: video: tegra: sh532u driver

- Added multi-instance support with sync capability
- Added GLOS power scheme
- Standardized the IOCTL API

Bug 865305

Change-Id: I37bcf306477d30589f3985d9370c59450842d340
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/66116
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Gerrit_Virtual_Submit

Rebase-Id: Rb4fb40adf45cfd5359ebc4da6efc0ff2b0beeb9e

6 years agomedia: common camera header
Erik Lilliebjerg [Wed, 23 Nov 2011 10:12:24 +0000]
media: common camera header

This is the common header for the camera devices:
imager, focuser, and torch.

Bug 852480

Change-Id: I0a7d7486ca71e97f1ff7f923795146b3e151eb12
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/66419
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Gerrit_Virtual_Submit

Rebase-Id: R812b8f9b958706565a512380abe4e1be3a567c6b

6 years agomedia: video: tegra: SSL3250A torch driver
Erik Lilliebjerg [Tue, 22 Nov 2011 07:39:43 +0000]
media: video: tegra: SSL3250A torch driver

- Added multi-instance support with sync capability
- Added GLOS power scheme
- Standardized the IOCTL API

Bug 882012
Bug 866726
Bug 896181
Bug 894789
Bug 861828
Bug 852480
Bug 872156

Change-Id: Ic315a9ed404854e13568c5b5afae60415a19b093
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/66052
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R516fb9110c4fc654ba0d3e1289a3d0eb938a805d

6 years agomedia: video: tegra: Fix compiler warning
Scott Williams [Wed, 23 Nov 2011 20:47:00 +0000]
media: video: tegra: Fix compiler warning

Change-Id: Id25d4d05c5dae89d8ee67e9be40ae166566e3783
Reviewed-on: http://git-master/r/66507
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Tested-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Gerrit_Virtual_Submit

Rebase-Id: R3d4e898d094dfa475e5b9c641b010c3f3346bdae

6 years agomedia: video: tegra: ar0832: Many fixes for focuser
Naren Bhat [Thu, 10 Nov 2011 23:21:04 +0000]
media: video: tegra: ar0832: Many fixes for focuser

For Enterprise focuser. Fix focuser range, steptime,
re-initialization of focuser registers after resolution
mode switch, back up and restore of the focuser position
during mode switch.

bug 881045

Reviewed-on: http://git-master/r/63698
(cherry picked from commit 2d83f0bbc13b8a0c760fc86223b15d32f731d36c)

Change-Id: I84916884930f21b085ea17899c051b0d61248e07
Reviewed-on: http://git-master/r/64594
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Rebase-Id: R7ccb1393d5e31a11030f892e9cb663d03581c561

6 years agomedia: video: tegra: fix powergate bug in Tegra2
Jihoon Bang [Wed, 2 Nov 2011 22:24:50 +0000]
media: video: tegra: fix powergate bug in Tegra2

Tegra2 doesn't have VE powergate. VE powergate should be turned
off in probe function for Tegra2.

Bug 855758
Bug 878057

Reviewed-on: http://git-master/r/61944
Reviewed-on: http://git-master/r/62192
(cherry picked from commit 33a29b2d9e35e4a5fc73492b784b917f55e8e94b)

Change-Id: Id79e5be5676bea54171d923c2f3202124bb6c7d6
Reviewed-on: http://git-master/r/62721
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Rebase-Id: R8ea4a98afd18c0edd882bc6022a49a4b1bdf0a3e

6 years agomedia: video: tegra: ar0832: add debugfs interface
Jihoon Bang [Thu, 10 Nov 2011 21:22:03 +0000]
media: video: tegra: ar0832: add debugfs interface

Add debugfs interface to make sensor output test pattern

Bug 878677

Change-Id: I07178bd7d5331a7c1cda96f23f8df35ae326355e
Reviewed-on: http://git-master/r/63671
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Tested-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

Rebase-Id: Ra46f1a5567296025d918365e0de097adb52f080b

6 years agomedia: video: tegra: apply powergate based on chipset revision
Jihoon Bang [Mon, 14 Nov 2011 20:13:54 +0000]
media: video: tegra: apply powergate based on chipset revision

Apply powergate differently depending on chip revision.
Remove dependency of regulator and csi. Enable regulator when any
client asks for power. Previously regulator was enabled only when
csi was enabled.

Bug 855758
Bug 878057

Reviewed-on: http://git-master/r/59369
(cherry picked from commit 88a1aaf5b80f8a76d7f35977a189e641f8c7dcdf)

Reviewed-on: http://git-master/r/60436
(cherry picked from commit ee2605c45b481935173170f6072a32ceb7580e15)

Change-Id: I6341435223b2393f1cf071c3418fa230d8ab4440
Reviewed-on: http://git-master/r/60944
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Tested-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R38b3b9673203a352b62af372e8316b2b703890fb

6 years agomedia: video: tegra: Powergate vi, csi and isp
Bhushan Rayrikar [Tue, 30 Aug 2011 21:36:12 +0000]
media: video: tegra: Powergate vi, csi and isp

Add powergating for vi, csi and isp in tegra_camera

Bug 855758

Reviewed-on: http://git-master/r/49923
(cherry picked from commit ea930f4477408724dea95d9c2f6d612e0e3d11a4)

Change-Id: I67a9be5322c3d9fa4a372c1e4338843277086dfe
Reviewed-on: http://git-master/r/60278
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Tested-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Ruicheng Dai <rdai@nvidia.com>
Tested-by: Ruicheng Dai <rdai@nvidia.com>
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R4319a27f885e83efdc2cfcfe8c195d1ac0cc4643

6 years agomedia: video: tegra: Prevent sleep when cam open
peter mikolajczyk [Wed, 9 Nov 2011 22:19:06 +0000]
media: video: tegra: Prevent sleep when cam open

Adding a check for camera open in order to prevent
driver from allowing the system to go to sleep.

Application layers must release camera before
suspend is called

bug 870768

Reviewed-on: http://git-master/r/#change,60307
(cherry picked from commit I5df86a22e46af724fd2cf4d8a0440350cbd4aba2)

Change-Id: I36e8d7c3b8b8002fc195e8f6bb0e0a228a397c2d
Reviewed-on: http://git-master/r/63384
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: R35ad971920f255e1427dbb87e8c76375971a9c9a

6 years agovideo: tegra: ov9726: follow linux convention
Charlie Huang [Thu, 1 Sep 2011 02:17:19 +0000]
video: tegra: ov9726: follow linux convention

move the set mode table from odm driver to the kernel driver.

Bug 856739
Original Gerrit: http://git-master/r/#change,60741
(cherry picked from commit 18e2d9f8b61767a4dc0df7621531d1b040fe3ca0)

Change-Id: I22fd3e012c3f91a0c7cd07a00ae25987b4cb75dd
Reviewed-on: http://git-master/r/61666
Reviewed-by: Charlie Huang <chahuang@nvidia.com>
Tested-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: R75397527d8b9b33c186b71d87866f8ca5ab2f9c3

6 years agomedia: video: nvavp: Fix clock disable warnings
Prashant Gaikwad [Tue, 8 Nov 2011 06:00:54 +0000]
media: video: nvavp: Fix clock disable warnings

sclk and emc clock is disabled from nvavp_halt_avp. nvavp_halt_avp
is called from probe where clocks are not enabled.
Disable sclk and emc clock from nvavp_uninit instead of
nvavp_halt_avp.

Change-Id: Idc4a1b629d9fc8048b97d41bc5463db6efa97eab
Reviewed-on: http://git-master/r/62862
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R2ed9e3e77cd188e52912d3d2e808398233644e6a

6 years agoov5650: add fast set_mode
Qinggang Zhou [Tue, 20 Sep 2011 23:37:00 +0000]
ov5650: add fast set_mode

Resetting the mode does not need to reset all of the i2c
registers. This used to be called "fast set_mode". This
is added into the kernel driver in this change. This
change reduced 90ms from resetting the mode. It only
apply to still preview and capture resolutions

bug 816814

Change-Id: I2ff3ba13b2454a65ead4ce6ce290c5dd63713a10
Reviewed-on: http://git-master/r/61307
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rf030a95d60d4f319b160b1399b23119c6f6f18c2

6 years agomedia: video: tegra: ov5650: disable sensor soc AE
Robert Lin [Tue, 11 Oct 2011 21:53:07 +0000]
media: video: tegra: ov5650: disable sensor soc AE

set the bits to enable manual control of AE and gains. Set
frame delay for application to 2 frames.

Bug 869749

Change-Id: I96c1aed6b4bd41dc3c1a3eb1ba8e158df31eaa32
Reviewed-on: http://git-master/r/57392
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
(cherry picked from commit 543db4f05df3db2bfee4fc8bf8f6a7cec75dd91f)
Reviewed-on: http://git-master/r/57652
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Robert Lin <robertl@nvidia.com>
Tested-by: Robert Lin <robertl@nvidia.com>

Rebase-Id: Rba4bb0b4496fd0ce9efa53d203a4ef38bf1605f9

6 years agomedia: video: tegra: ar0832: tune 800x600 sensor registers
Prayas Mohanty [Mon, 24 Oct 2011 10:51:04 +0000]
media: video: tegra: ar0832: tune 800x600 sensor registers

Modify the READ_MODE and SCALING_MODE sensor register
for 800x600 sensor mode, making it same as other working
modes. This fixes the incorrect colors during camera
preview.

bug 873857
Original Gerrit: http://git-master/r/#change,59921
(cherry picked from commit 46ea121f9124cb18781f8c6653f57a77ffe9ef21)
Change-Id: I14efcf5cf435eb859b3b8837eb2cc33ba8f64a04
Reviewed-on: http://git-master/r/60776
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rcf483b037f211aa344589bd10477a7b76b84f764

6 years agomedia: video: tegra: ar0832: Sunny P8M01E support
Charlie Huang [Tue, 30 Aug 2011 23:17:19 +0000]
media: video: tegra: ar0832: Sunny P8M01E support

Add support of Sunny P8M01E module (AKA aptina 8141)

This new module is identical with 8140 plus pixel improvement.
Use different recommended register settings for each sensor.
Add function to figure out the sensor id and let the odm driver
pick up the right config data.

Bug 868929
Original Gerrit: http://git-master/r/#change,53022
(cherry picked from commit f59f83468f71980c9ce3204df3a34f2aafffc512)

Change-Id: Ibed03f01b13a22a75753f8495ab17eb6077a99d3
Reviewed-on: http://git-master/r/60765
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R10688d303b3b7c401a58c8fb069654dade019d47

6 years agomedia: video: tegra: optimize writing gain register in ar0832
Jihoon Bang [Thu, 20 Oct 2011 23:13:18 +0000]
media: video: tegra: optimize writing gain register in ar0832

It used to set the same gain to four different registers
of each color component. Setting gain to global gain
register is equivalent to setting four registers.
This will save time to set gain.

Bug 889717

Reviewed-on: http://git-master/r/59443
(cherry picked from commit 618ebc7c8eda03fac467660520c9ad17043e467c)

Change-Id: Id58542c69c5c55befe8e045df0488770377bc126
Reviewed-on: http://git-master/r/59964
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Re463dd7b1c73428aa3fc77fbd40645176a2e4220

6 years agomedia: camera: tegra: Add 120fps mode for AR0832
Yuvraj Pasi [Wed, 12 Oct 2011 13:58:38 +0000]
media: camera: tegra: Add 120fps mode for AR0832

Add a new mode, resolution 800x600. This mode supports
120fps in Aptina sensor 120fps.

Bug: 888005
Reviewed-on: http://git-master/r/57565
(cherry picked from commit 8959b7e5932809c50562b4edbacb6ef52d7f608f)

Change-Id: I087ec7476acc9e3821f46ec034a7ed5115daf2e8
Reviewed-on: http://git-master/r/59494
Tested-by: Yuvraj Pasi <ypasi@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Ra5d41dc26ccf39f22be18599bb5b8f83fd3936eb

6 years agoarm: tegra: Make kernel buildable without nvhost
Terje Bergstrom [Thu, 6 Oct 2011 07:55:04 +0000]
arm: tegra: Make kernel buildable without nvhost

Cuts dependencies to nvhost by adding a Kconfig dependency from DC to
GRHOST and from HD Audio to DC. Configure out calls to nvhost in board
panel files if GRHOST is not present.

Bug 870898

Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>

Change-Id: If7830528e321e951bcadc2a10515e6cab58a6cdf
Reviewed-on: http://git-master/r/56370
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Antti Miettinen <amiettinen@nvidia.com>
Tested-by: Antti Miettinen <amiettinen@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Chris Dragan <kdragan@nvidia.com>

Rebase-Id: Re513095d96dc8221636ddaa7eaab4603f3d3825d

6 years agomedia: video: tegra: OV14810 sensor support
kdivvela [Tue, 13 Sep 2011 08:58:18 +0000]
media: video: tegra: OV14810 sensor support

Support for OV14810 (14MP) sensor

Bug 839441

Reviewed-on: http://git-master/r/47714
(cherry picked from commit 2a9be1047fe93fba46c32edf60054261cc90970b)

Change-Id: Ib5c55c56017f4f18312c5b4fdc2c884857003f5f
Reviewed-on: http://git-master/r/58657
Reviewed-by: Krupal Divvela <kdivvela@nvidia.com>
Tested-by: Krupal Divvela <kdivvela@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Ra0bf2a7d2fdfff8303dcdb84b8655afce11a4a12

6 years agomedia: video: tegra: update ov2710 1080p and 720p settings
Frank Chen [Tue, 27 Sep 2011 23:26:50 +0000]
media: video: tegra: update ov2710 1080p and 720p settings

Bug 833115

Change-Id: Iaca34334e0168ac04f795eccdfa76ba414848919
Reviewed-on: http://git-master/r/54825
(cherry picked from commit 00e146071f2c034f35f6ce564e08697b7ab2ed91)
Reviewed-on: http://git-master/r/57922
Reviewed-by: Yining Deng <ydeng@nvidia.com>
Tested-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Qi Wang <qiw@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Tested-by: Gerrit_Virtual_Submit
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

Rebase-Id: Re8d5f67f7f983ad93c20c5d04ed06227c385e9b8

6 years agomedia: video: nvavp: Add ioctl to set/get clock rate
Prashant Gaikwad [Tue, 27 Sep 2011 12:14:54 +0000]
media: video: nvavp: Add ioctl to set/get clock rate

These ioctls provides interface to user space for
VDE/AVP/EMC clock rate anagement. This helps to save power.

Bug 876405

Change-Id: Ic36cd78bf78a3c04dac49dd4b3040542130bc855
Reviewed-on: http://git-master/r/54697
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>

Rebase-Id: Rcd1d8e536641d109c7e1db7ccaf3a8e54a169acc

6 years agomedia: tegra_camera: Enable Null sensor
kdivvela [Tue, 6 Sep 2011 11:20:05 +0000]
media: tegra_camera: Enable Null sensor

Enable pd2vi_clk in case of Null sensor

Bug 870406

Reviewed-on: http://git-master/r/50822
(cherry picked from commit 4eaca0ed7652aacf1bf56d1f7ad1ff1bd39c73a9)

Change-Id: Ie508e3addf4e757201bed9499dbba2887a8d423f
Reviewed-on: http://git-master/r/55199
Tested-by: Krupal Divvela <kdivvela@nvidia.com>
Reviewed-by: Prayas Mohanty <pmohanty@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Rdc286d25cf01b6bae9e50accf618cb96e17c5bd9

6 years agomedia: video: tegra: nvap: correct name for driver
Sachin Nikam [Tue, 27 Sep 2011 10:22:58 +0000]
media: video: tegra: nvap: correct name for driver

Proper nvavp driver name and irq name.

Bug 880683

Change-Id: Icf75cbf8cca4a6b93faf981db97ad9e3b72e08f7
Signed-off-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-on: http://git-master/r/54672
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R1a1eeb2b032c0b62ea0cf1513c2fb4570b1dbf3a

6 years agomedia: video: nvavp: Use end of IOVM for AVP OS
Gajanan Bhat [Fri, 2 Sep 2011 21:06:59 +0000]
media: video: nvavp: Use end of IOVM for AVP OS

Address update for AVP OS
- 0x0ff00000 (last 1MB of IOVM)
- 0xeff00000 Tegra3 A01

Reviewed-on: http://git-master/r/50581
(cherry picked from commit 78ba6a0e051352b4b197f05dcacd4b6eb6fa8589)

Change-Id: I0ab3c1c56c67bf9de56f643e1899b949f262d0cb
Reviewed-on: http://git-master/r/54293
Tested-by: Gajanan Bhat <gbhat@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>

Rebase-Id: R4adbea53902dd32ee062c3b336d883925faaace3

6 years agomedia: video: tegra: Change vertical output size
Bhushan Rayrikar [Wed, 7 Sep 2011 17:21:48 +0000]
media: video: tegra: Change vertical output size

ISP needs the vertical output size to be a little more
than the actual resolution. Change vertical size to
1088 for 1920x1080 mode.

Bug 870687

(cherry picked from commit 6e140c80d3a546115d5756acc600961a37307269)

Change-Id: I96868665195452123123022162268b5b7733c569
Reviewed-on: http://git-master/r/53823
Reviewed-by: Shiva Dubey <sdubey@nvidia.com>
Reviewed-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-by: Prajakta Gudadhe <pgudadhe@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Tested-by: Patrick Shehane <pshehane@nvidia.com>
Tested-by: Ruicheng Dai <rdai@nvidia.com>

Rebase-Id: Re4c39f584f3fa03ee051db92569dc989fa9e88c6

6 years agomedia: tegra: Adding member flag in tegra_camera_clk_info
Sachin Nikam [Mon, 12 Sep 2011 08:54:04 +0000]
media: tegra: Adding member flag in tegra_camera_clk_info

In struct tegra_camera_clk_info adding member flag.
This will create a same IOCTL number for TEGRA_CAMERA_IOCTL_CLK_SET_RATE
as of user space.

Bug 872674

Change-Id: I23c725a50bad429b27498662370698c6734f82d5
Signed-off-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-on: http://git-master/r/51762
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Rc70f14f716ed3df266d0ba37f993b29aa6c639a4

6 years agomedia: video: tegra: ov5650: Remove redundant i2c cmds
kdivvela [Fri, 2 Sep 2011 07:11:17 +0000]
media: video: tegra: ov5650: Remove redundant i2c cmds

In QVGA 120fps mode, i2c reset commands are done twice.
One in "mode_320x240" and one in common "mode_end" which
would be done for all the modes commonly. So removed QVGA
mode specific one.

Bug 868680

Original-Change-Id: I434cd1e7a9dd1be112ce4640e5d9f5d85e7bbc67
Reviewed-on: http://git-master/r/50459
Tested-by: Krupal Divvela <kdivvela@nvidia.com>
Reviewed-by: Shantanu Nath <snath@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Patrick Shehane <pshehane@nvidia.com>

Rebase-Id: R7589beadd6926110bf8b0430b39071053d613970

6 years agomedia: video: nvavp: Add AVP syncpoint ID query
Gajanan Bhat [Mon, 29 Aug 2011 21:25:10 +0000]
media: video: nvavp: Add AVP syncpoint ID query

Add support to query syncpoint ID assigned
to the AVP by nvhost driver.

Original-Change-Id: Id963e6c32f97e095da253de4b7d83ee8fa8d62a8
Reviewed-on: http://git-master/r/49702
Tested-by: Gajanan Bhat <gbhat@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Isaac Richards <irichards@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

Rebase-Id: R2735f76ea5d9f9ec186df3c17cef96b3584f3dfe

6 years agomedia: video: tegra: sh532u: add get_rom_info()
Qinggang Zhou [Mon, 29 Aug 2011 20:52:15 +0000]
media: video: tegra: sh532u: add get_rom_info()

get_rom_info() retrieves precalibrated INF and MAC, and stores
them for ODM to use. This function is added back.

bug 866141

Original-Change-Id: Ibe4ca3751b2dacc83c2483e9eec80f340ebc7d7d
Reviewed-on: http://git-master/r/48812
Reviewed-by: Qinggang Zhou <qzhou@nvidia.com>
Tested-by: Qinggang Zhou <qzhou@nvidia.com>
Reviewed-by: Gary Zhang <garyz@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R61d792a7e7ad33c95a677f49b79cb2476ce0b198

6 years agomedia: tegra: avp: Use end of IOVM for AVP kernel
Kaz Fukuoka [Tue, 21 Jun 2011 23:15:42 +0000]
media: tegra: avp: Use end of IOVM for AVP kernel

- Use 0x0ff00000 (last 1MB of IOVM).
- For Tegra3 A01, use 0xeff00000.

Original-Change-Id: Ieb21d2bf38158171b97434e04ede7417823b3603
Reviewed-on: http://git-master/r/37742
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Tested-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: Rbdf23f7652f5c7e7cbc104b6596b6150ea5d757a

6 years agomedia: tegra: Fix warnings
Scott Williams [Thu, 25 Aug 2011 21:58:23 +0000]
media: tegra: Fix warnings

Change-Id: I71b9f1b5ae8001819a222c181f6d6c3d2b400d83
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-on: http://git-master/r/49286
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>
Tested-by: Daniel Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R18419c615a207ee3a60df2f9c6a85dc2dcf9191b

6 years agomedia: video: tegra: ov5650: QVGA 120fps sensor support
kdivvela [Fri, 19 Aug 2011 09:41:36 +0000]
media: video: tegra: ov5650: QVGA 120fps sensor support

Add new sensor mode for OV5650 sensor
with QVGA and 120fps.

Bug 860670

Original-Change-Id: I2f4dbdd5ebf771359f73d89787d88c50ec333e0f
Reviewed-on: http://git-master/r/48065
Tested-by: Krupal Divvela <kdivvela@nvidia.com>
Reviewed-by: Prayas Mohanty <pmohanty@nvidia.com>
Reviewed-by: Ravikumar Boddeti <rboddeti@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R3fcf21073796ff4aa45e72a4855793652cbffeb4

6 years agoRevert "media: video: tegra: sh532u: remove focuser init_pos"
Qinggang Zhou [Tue, 23 Aug 2011 02:51:03 +0000]
Revert "media: video: tegra: sh532u: remove focuser init_pos"

This reverts commit 713b0fe85ab640016918062fed8b62486f88f92e.
The reverted commit removed reading pre-calibrated INF and MAC,
which caused the AF moves focuser to an invalid INF.

The original change is at
http://git-master/r/47657

bug 866141

Original-Change-Id: Ib4c25ea241b6ea06a3abe80cff9c7d9554314948
Reviewed-on: http://git-master/r/48606
Reviewed-by: Qinggang Zhou <qzhou@nvidia.com>
Tested-by: Qinggang Zhou <qzhou@nvidia.com>
Reviewed-by: Gary Zhang <garyz@nvidia.com>
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>

Rebase-Id: Rfebe91eb22e55868463a033f6bd3c945b57decd9

6 years agomedia: video: tegra: Fix TPS61050 flash to torch ratio
Anton Poon [Fri, 19 Aug 2011 23:47:53 +0000]
media: video: tegra: Fix TPS61050 flash to torch ratio

Correct the flash to torch ratio.

Bug 850614

Original-Change-Id: Id2a762381fa2482096aab281ce02cec6bc35bb83
Reviewed-on: http://git-master/r/48284
Tested-by: Anton Poon <antonp@nvidia.com>
Reviewed-by: Erik M Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Rb8cc3b978a9fef54151a60c53e4ecf63a3aea42a

6 years agomedia: tegra: avp: Clear interrupt registers when AVP starts
Kaz Fukuoka [Thu, 26 May 2011 01:21:32 +0000]
media: tegra: avp: Clear interrupt registers when AVP starts

There was no code to clear interrupt registers for AVP. First run
of AVP was OK because those registers start from reset value.
But because those registers were not cleared, when the second
time AVP was started, some interrupts were enabled too early.
That caused interrupts coming before handlers were ready.

This change also removes the workaroud for the bug.

bug 827353
bug 826234

Original-Change-Id: I51546400f0bace67dfcdb23f667c051c060d3983
Reviewed-on: http://git-master/r/33083
Reviewed-by: Niket Sirsi <nsirsi@nvidia.com>
Tested-by: Niket Sirsi <nsirsi@nvidia.com>

Rebase-Id: R2e55071fe6673f30198f9dfc5bf205a83a94819d

6 years agomedia: video: tegra: sh532u: remove focuser init_pos
Qinggang Zhou [Thu, 18 Aug 2011 00:38:19 +0000]
media: video: tegra: sh532u: remove focuser init_pos

AF sets the initial position for focuser. It's not required to set
initial positions in the kernel. Removing them speeds up camera
launch.

bug 835634

Original-Change-Id: I26b13c56ee4cd7e193493ed3c3bbd33c4c9bef4c
Reviewed-on: http://git-master/r/47657
Tested-by: Qinggang Zhou <qzhou@nvidia.com>
Reviewed-by: Qi Wang <qiw@nvidia.com>
Reviewed-by: Gary Zhang <garyz@nvidia.com>
Reviewed-by: Naren Bhat <nbhat@nvidia.com>
Reviewed-by: Patrick Shehane <pshehane@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>

Rebase-Id: R6933121318bd88756bf4a08edd25b02d1195a185

6 years agomedia: video: tegra: change resolution from 1450p to 1080p
Jihoon Bang [Tue, 16 Aug 2011 21:55:06 +0000]
media: video: tegra: change resolution from 1450p to 1080p

Add 1080p resolution to supported resolutions in ar0832.
1080p output from sesnor makes it possible to bypass DZ scaling.
This helps improve recording and preview performance.

Bug 846591

Original-Change-Id: Icab0e0ed19a609e56a52809dfe1caf9b6e9ff068
Reviewed-on: http://git-master/r/47390
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Tested-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R8231403acad32fb8b404d4514f8e8ddf0a0f223d

6 years agomedia: video: nvavp: Fix build break
Gajanan Bhat [Thu, 18 Aug 2011 02:40:20 +0000]
media: video: nvavp: Fix build break

Fix build break caused by changes in nvhost driver

Original-Change-Id: I8c3616f9ac09a7f5deb6f8380e92b834b801d6c0
Reviewed-on: http://git-master/r/47702
Tested-by: Gajanan Bhat <gbhat@nvidia.com>
Reviewed-by: Chong Zhang <chzhang@nvidia.com>
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Isaac Richards <irichards@nvidia.com>

Rebase-Id: R0cd5179a670c625dd5d0aa68045bb34f652f220c

6 years agomedia: tegra: avp: Use uncached for loading firmware
Kaz Fukuoka [Tue, 16 Aug 2011 21:43:43 +0000]
media: tegra: avp: Use uncached for loading firmware

- Change NVMAP_HANDLE_WRITE_COMBINE to NVMAP_HANDLE_UNCACHEABLE.

bug 829028

Original-Change-Id: I311cc0cefeedcbe008c71afab4ac32942cd65de8
Reviewed-on: http://git-master/r/47386
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Tested-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: Ra5d12389ab4a2360e08094253cfc2858a86965a2

6 years agomedia: video: tegra: add new mode for 1080p
Shiva Dubey [Tue, 16 Aug 2011 05:34:07 +0000]
media: video: tegra: add new mode for 1080p

add new mode for 1080p(1920x1080) in ov5650
which outputs the frame of exactly the same
size as 1920x1080.

Bug 859620

Original-Change-Id: I33864185d235bb67cb234e017d3dd3d14e877bf1
Reviewed-on: http://git-master/r/47268
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rebffb0559230ed187907ad697bcc4c88d0f15120

6 years agomedia: tegra: nvavp: ucode loading in driver
Gajanan Bhat [Fri, 5 Aug 2011 22:51:57 +0000]
media: tegra: nvavp: ucode loading in driver

Implementation to load the app ucode from driver
instead of each client instance maintaining copy
of common ucode.The driver will load and maintain
a single instance of the app ucode, but gives
ability to flag external ucode usage for every
submit call. The driver also caches both the os
and app ucode till driver is unloaded.

Original-Change-Id: I96ad3c039bf96c621774d41b3f838ea6fbe52ae9
Reviewed-on: http://git-master/r/45872
Tested-by: Gajanan Bhat <gbhat@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: R35fe5c503cc761e7e26efe91d254109fb215f520

6 years agomedia: video: ov5650: add 2x2 binning mode control
Changyeon Jo [Thu, 28 Jul 2011 16:45:50 +0000]
media: video: ov5650: add 2x2 binning mode control

Add IOCTL (OV5650_IOCTL_SET_BINNING) that user code
can access to registers which have 2x2 binning control
bits.

Bug 835589

Original-Change-Id: I07f8d3536fcdb92e8bae0af294d1a0f8523cefbc
Reviewed-on: http://git-master/r/43727
Tested-by: Changyeon Jo <cjo@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R36b1a800652a73e5b51dd56f30e0f56f6dda7d36

6 years agomedia: video: tegra: sh532u: fix macro focus
Erik Lilliebjerg [Mon, 8 Aug 2011 11:49:36 +0000]
media: video: tegra: sh532u: fix macro focus

bug 860561

Original-Change-Id: I68288334ba296bdbf7ff516f78bc9f5af91935e0
Reviewed-on: http://git-master/r/45821
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Gary Zhang <garyz@nvidia.com>
Reviewed-by: Patrick Shehane <pshehane@nvidia.com>
Reviewed-by: Erik M Lilliebjerg <elilliebjerg@nvidia.com>
Tested-by: Erik M Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-by: Robert Morell <rmorell@nvidia.com>

Rebase-Id: R8002e05e8fa0b7ac10df4d9f51c3ff87828a0a08

6 years agomedia: video: tegra: add 1080p table to ar0832
Jihoon Bang [Wed, 3 Aug 2011 23:10:06 +0000]
media: video: tegra: add 1080p table to ar0832

Add 1080p I2C table to ar0832 driver. The new table allows to record
video with 1080p at 30fps.

Bug 859779

Original-Change-Id: I626c6ce70e276dc0bc8cb4d965efe84f2ceb7b76
Reviewed-on: http://git-master/r/44855
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Tested-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Krupal Divvela <kdivvela@nvidia.com>
Reviewed-by: Amit Purwar <apurwar@nvidia.com>
Reviewed-by: Ravikumar Boddeti <rboddeti@nvidia.com>
Reviewed-by: Prayas Mohanty <pmohanty@nvidia.com>
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R6ab2b1a009ee8bb30ebf9b5a20475fbc56fecfd4

6 years agoARM: Tegra: Sh532u: enable focuser attached to right camera
garyz [Tue, 14 Jun 2011 20:21:03 +0000]
ARM: Tegra: Sh532u: enable focuser attached to right camera

The sh532u focuser is enabled to pair with the stereo right camera
with the required power control configurations.

Bug 827897

Original-Change-Id: Icc21bcd2327671da193a8b8f24c338b0b2f6729c
Reviewed-on: http://git-master/r/36571
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R5c6dcd9b9c2bc7ab89870ee13da408ee0a392276

6 years agomedia: tegra: nvavp: Fix for relocation offset
Gajanan Bhat [Fri, 22 Jul 2011 00:40:31 +0000]
media: tegra: nvavp: Fix for relocation offset

Fix for bug in relocation offset calculation,
causing wrong surface offset to be sent to AVP.

Original-Change-Id: I6fea7c27a339238d6514276e3316f38ecf8d7742
Reviewed-on: http://git-master/r/42495
Tested-by: Gajanan Bhat <gbhat@nvidia.com>
Reviewed-by: Isaac Richards <irichards@nvidia.com>
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Soumen Kumar Dey <sdey@nvidia.com>
Tested-by: Soumen Kumar Dey <sdey@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

Rebase-Id: Re0091d2e8a67c61a6ed4a35ac4b3f2da3a34e8b3

6 years agomedia: video: tegra: disable ov2710 AWB
Charlie Huang [Fri, 22 Jul 2011 23:33:33 +0000]
media: video: tegra: disable ov2710 AWB

set manual white balance otherwise it will conflict with isp

bug 829281

Original-Change-Id: Id89ae1dd7e607beb35b43db5991742d3b8dcc345
Reviewed-on: http://git-master/r/42709
Reviewed-by: Chonglei Huang <chahuang@nvidia.com>
Reviewed-by: Andrei Denissov <adenissov@nvidia.com>
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Gary Zhang <garyz@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>
Tested-by: Chonglei Huang <chahuang@nvidia.com>

Rebase-Id: R9db77cef2efc133d03b637488e647d4cb0ab98fe

6 years agomedia: tegra: avp: Add channel based AVP driver
Gajanan Bhat [Fri, 24 Jun 2011 02:09:21 +0000]
media: tegra: avp: Add channel based AVP driver

New AVP driver based on channel model. The AVP
acts as s/w host1x channel and has a syncpoint
allocated to synchronize audio/video operation
submitted by the host. The driver is responsible
for loading the AVP kernel and initializing s/w
channel.

Original-Change-Id: I20b68fc3cbb88b7c95542bae0a1acf5edc52c715
Reviewed-on: http://git-master/r/37420
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rc82d22123f534463ad43d63c7afa962f3d2120ac

6 years agomedia: video: tegra: enable ov9726 sensor
Charlie Huang [Wed, 29 Jun 2011 17:44:58 +0000]
media: video: tegra: enable ov9726 sensor

initial support for sensor ov9726

bug 829399

Original-Change-Id: I67315dfce7baf2c14f49bf526c10fe19cf32d1d3
Reviewed-on: http://git-master/r/40472
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Chonglei Huang <chahuang@nvidia.com>
Tested-by: Chonglei Huang <chahuang@nvidia.com>

Rebase-Id: R31312b2b0fda96348bb14461651ccb27aa30b0de

6 years agomedia: video: tegra: support multiple cameras
Jihoon Bang [Fri, 24 Jun 2011 17:05:32 +0000]
media: video: tegra: support multiple cameras

Separate board specific sequence from ar0832 driver and add it to board
files. Add function that changes device slave address in real time to support
multiple devices in the same I2C bus.

Bug 844021

Original-Change-Id: I48641909eb531b4ba827096bc30fa4eccf83469e
Reviewed-on: http://git-master/r/40385
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Tested-by: Jihoon Bang <jbang@nvidia.com>

Rebase-Id: R4b761bd3b09ed2b0101b03e8be737c25e5c3ee5f

6 years agomedia: tegra: avp: Fix avp_svc_thread shutdown
Kaz Fukuoka [Wed, 6 Jul 2011 01:36:27 +0000]
media: tegra: avp: Fix avp_svc_thread shutdown

Fix the race condition between kthread_stop() and wait.
Without this fix, the following message was printed.
"avp_svc_thread: timed out while waiting for kthread_stop"

bug 840262
bug 836806

Original-Change-Id: I5acf75859e6512923506a3c508f62e7d7ef9a1dc
Reviewed-on: http://git-master/r/39736
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rf58fd998c20b6ba03077e0a06cb1ac3d89826f77

6 years agomedia: video: tegra: avp: get module clock freq
Sachin Nikam [Mon, 27 Jun 2011 11:14:06 +0000]
media: video: tegra: avp: get module clock freq

AVP wants to know the clock freq of the modules like
VDE and AVP itself.
Added interface to handle the get clock message from AVP.

Bug 843882

Original-Change-Id: I3c07814fdb9d3b0c4aae11a431d0737a1c6d6014
Signed-off-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-on: http://git-master/r/38506
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R4355b6e3e721900a100ba2ab56c5b5c5cf4e7055

6 years agomedia: video: tegra: enable ar0832 sensor
Jihoon Bang [Wed, 15 Jun 2011 19:27:09 +0000]
media: video: tegra: enable ar0832 sensor

Support only one sensor for now.

Original-Change-Id: I1d0b804077e271052a6d6f4554865675fa70d612
Reviewed-on: http://git-master/r/36779
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R88b01bf956bdfabd8f13d883ea93a7d8e542d248

6 years agomedia: video: tegra: avp: set sclk to min
Prashant Gaikwad [Fri, 10 Jun 2011 08:51:49 +0000]
media: video: tegra: avp: set sclk to min

Initialize avp.sclk to minimum. Activity monitor adjusts
avp.sclk dynamically depending on load.

Reviewed-on: http://git-master/r/36064
(cherry picked from commit 1d18930770b99fa7a8169ba8300723bf3b5551e0)

Original-Change-Id: Ifb8704169afd7e4436bfba17e3a6c08e8d39aed4
Reviewed-on: http://git-master/r/38909
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Ra52c5b5085cfc3e6d21e00969cc83d3f322c4621

6 years agotegra: avp: Add platform data for avp
Prashant Gaikwad [Fri, 8 Jul 2011 09:06:23 +0000]
tegra: avp: Add platform data for avp

If emc clock is clocked at maximum rate it increases power
consumption. emc clock rate requirement is different for
different platforms.

Original-Change-Id: I21e9afed402d08558c6913b5f194b1a4699ebcb2
Reviewed-on: http://git-master/r/40166
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R0b4df2cdbdafeb45f050800f29c05ff4b929c6d4

6 years agomedia: tegra: video: Fix build warnings
Scott Williams [Tue, 14 Jun 2011 19:27:49 +0000]
media: tegra: video: Fix build warnings

Fixes "warning: '<variable>' defined but not used" messages.

Original-Change-Id: Ia4980d0262174cb8f39f9c0f67a9d94ff4be8b97
Reviewed-on: http://git-master/r/36561
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Ra110459be280f20e326c28abedc9a8ea2c6c8fff

6 years agomedia: video: tegra: set_clk_rate for avp
Sachin Nikam [Wed, 6 Jul 2011 08:27:31 +0000]
media: video: tegra: set_clk_rate for avp

set_clk_rate for sclk which is parent of avp clock.

Bug 843725

Original-Change-Id: I51810235a8f820a14afdd8dcf370b55e4d603a68
Signed-off-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-on: http://git-master/r/39772
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R61690be56d36c81fa0e283fab760b1d31021110c

6 years agomedia: tegra: avp: respond to unsupported service ids
Sachin Nikam [Thu, 30 Jun 2011 15:40:05 +0000]
media: tegra: avp: respond to unsupported service ids

AVP service driver responds error to AVP for invalid or unsupported
service IDs.

Bug 843473

Original-Change-Id: Ic747c7cf0b34b6b30abdb64c4ff005d298fa1530
Signed-off-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-on: http://git-master/r/39225
Reviewed-by: Andy Ritger <aritger@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Rc2cf57d3643343c6cb59cd5da8c5c8351dd2e95e

6 years agomedia: video: tegra: avp: Retry to connect to the AVP.
Jubeom Kim [Tue, 14 Jun 2011 06:32:15 +0000]
media: video: tegra: avp: Retry to connect to the AVP.

Sometimes avp_node_try_connect is failed.
It is the timing problem between CPU and AVP.

1) Added the retry routine for avp-connection.
2) Increased the time-out value of msg_wait_ack_locked function
   from 200ms to 400ms.

Bug 822104, 797362

Reviewed-on: http://git-master/r/36439
(cherry picked from commit bdc441e9bebeb893b7e9ec383fd77869dbcefc09)

Original-Change-Id: Ie5b31a50fb61691055ad41f0ac3ce627c08e0ebd
Reviewed-on: http://git-master/r/38450
Tested-by: Jubeom Kim <jubeomk@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R54b77903470a07927d37a220c5865b0ba6ff000d

6 years agomedia: video: tegra: TPS61050 flash driver
Danielle Sun [Thu, 26 May 2011 23:17:44 +0000]
media: video: tegra: TPS61050 flash driver

Kernel driver for TPS61050 flash/torch camera device.

Bug 794431

Original-Change-Id: I760bd086c283076dc7136bd8ccd6b75e6e823ea8
Reviewed-on: http://git-master/r/34208
Tested-by: Erik M Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-by: Michael Stewart <mstewart@nvidia.com>
Reviewed-by: John Sasinowski <jsasinowski@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Radb862760f165e40b764b3bb104787427d024c7e

6 years agomedia: video: update copyright headers
Frank Chen [Thu, 30 Jun 2011 00:28:10 +0000]
media: video: update copyright headers

update headers for camera files

bug 846086

Original-Change-Id: Id53c77ead17b569ad05c0a5b8ec7f2a5d1aef869
Reviewed-on: http://git-master/r/39102
Reviewed-by: Erik M Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-by: Abhinav Sinha <absinha@nvidia.com>
Reviewed-by: Michael Stewart <mstewart@nvidia.com>
Tested-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>

Rebase-Id: R4526cd043ef49dfa4a0c48f5942fca57e81eb4f0

6 years agomedia: video: tegra: avp: add kfree to error routine.
Jubeom Kim [Wed, 22 Jun 2011 13:03:05 +0000]
media: video: tegra: avp: add kfree to error routine.

Needs kfree function when error occurs.

Reviewed-on: http://git-master/r/37859
(cherry picked from commit 26c98cb216294230f5cc46055c48a0224989df80)

Original-Change-Id: Ic83407628eb6e4c2aad0ba014f5a97b561b3ecf6
Reviewed-on: http://git-master/r/38449
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R56e7aec023b2482e51fa4d79e7945382e49304b6

6 years agotegra_mediaserver: fix wrong kzalloc param, uninitialized values
Jubeom Kim [Wed, 22 Jun 2011 13:56:21 +0000]
tegra_mediaserver: fix wrong kzalloc param, uninitialized values

- Changed the kzalloc param from node to block.
- 'CHECK_CONDITION((physical_address < 0), ...' is not valid,
  because the physical_address value is unsigned value.
- Fixed uninitialized values

Reviewed-on: http://git-master/r/37862
(cherry picked from commit 06d905e9ed14d28224d5f59acf75b4de503f8796)

Original-Change-Id: Ifad28f75b159356acbc045e5e985a618aa8df81b
Reviewed-on: http://git-master/r/38448
Tested-by: Jubeom Kim <jubeomk@nvidia.com>
Reviewed-by: Stephen Holmes <sholmes@nvidia.com>

Rebase-Id: R645e915813a90b87563a59d667dcb5a046862e8e

6 years agomedia: tegra: avp: Clean avp_svc_thread shutdown
Kaz Fukuoka [Mon, 27 Jun 2011 23:57:31 +0000]
media: tegra: avp: Clean avp_svc_thread shutdown

- Avoid exiting from avp_svc_thread in error case.
- Add nicer messages.

bug 840262
bug 836806

Original-Change-Id: I28fe1de9451b10a810f61db94ad3a7770703fd09
Reviewed-on: http://git-master/r/38581
Reviewed-by: Niket Sirsi <nsirsi@nvidia.com>
Tested-by: Niket Sirsi <nsirsi@nvidia.com>

Rebase-Id: R74283b26e4d63ca7d7777844a4ee5703b0473fb1

6 years agotegra: avp: implement NvRmPowerModuleClockConfig() for AVP
Mayuresh Kulkarni [Wed, 13 Apr 2011 11:14:26 +0000]
tegra: avp: implement NvRmPowerModuleClockConfig() for AVP

this change will allow clock rate control from AVP.

Original-Change-Id: I470a401a93f769fa2f8b6e96158d1515c4034ca9
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/31839
Reviewed-by: Mandar Potdar <mpotdar@nvidia.com>
Tested-by: Mandar Potdar <mpotdar@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R12982bdc7285748188af7aa5a71238d45fb873c3

6 years agomedia: tegra: avp: Reserve beginning of IRAM for cpu reset handler
Scott Williams [Fri, 22 Jul 2011 23:04:24 +0000]
media: tegra: avp: Reserve beginning of IRAM for cpu reset handler

Change-Id: Ib6fb0663f0a325aa0552f2625a93464648102e02
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
DW: Split into logical changes
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R55b2be7cdb1ababff5de8dfa24d63d2ad8a2f140

6 years agomedia: tegra: avp: Remove duplicated message
Kaz Fukuoka [Tue, 31 May 2011 22:55:33 +0000]
media: tegra: avp: Remove duplicated message

- "avp_lib: Successfully unloaded '%s'" was duplicated.

Change-Id: I32c6d0cdd2bd5d1529e3596b4bc6e3220bc498de
Reviewed-on: http://git-master/r/34609
Reviewed-by: Niket Sirsi <nsirsi@nvidia.com>
Tested-by: Niket Sirsi <nsirsi@nvidia.com>

Rebase-Id: R9a98dc2912fbfd7d8f084a1026eeddc9fb073049

6 years agomedia: tegra: avp: Avoid NULL reference in case of error
Kaz Fukuoka [Wed, 25 May 2011 21:40:53 +0000]
media: tegra: avp: Avoid NULL reference in case of error

In case of avp_init() failure, NULL pointer was referenced,
and caused kernel panic.

bug 828027

Original-Change-Id: I748f439b39db086be856bf4d6b2ec98c4ad3559a
Reviewed-on: http://git-master/r/32141
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Tested-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R8703137ddec05ddec4a5ecb1b24ad6bf893e1f88

6 years agomedia: tegra: avp: Fix AVP kernel memory allocation
Kaz Fukuoka [Thu, 19 May 2011 01:04:18 +0000]
media: tegra: avp: Fix AVP kernel memory allocation

This change fixes AVP kernel startup problem on Tegra2.

bug 828027

Original-Change-Id: I6505e1690eb96c485cf8141d0d257cf7214837ca
Reviewed-on: http://git-master/r/32107
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Tested-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: Ra49a458ec515d6a4fcbdaab17a5b53647850489b

6 years agomedia: video: ov5650: synchronize sensors for stereo
Prayas Mohanty [Mon, 2 May 2011 10:35:53 +0000]
media: video: ov5650: synchronize sensors for stereo

For stereo camera, it is important that both sensors
should start sending data at the same time for them to
be in sync. Add IOCTL (OV5650_IOCTL_SYNC_SENSORS),
which user code can access to synchronize both sensors.

bug 787214
bug 786928

Original-Change-Id: I6bf34a8af3b7dd51150d5c0247b6787b824c1dae
Reviewed-on: http://git-master/r/30005
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R1b655e1a02514cf0f2258650f6ad86a479a2eabe

6 years agomedia: tegra: avp: check for NULL on some APIs
Jon Mayo [Mon, 16 May 2011 20:50:45 +0000]
media: tegra: avp: check for NULL on some APIs

clk and nvmap APIs can return ERR_PTR or NULL.
also fixed some printf warnings.

Bug 827548

Original-Change-Id: Iae3eea2d3d7130bcaa4dadb126661908dcca1e96
Reviewed-on: http://git-master/r/31750
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Tested-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>

Rebase-Id: R3737e7d79e348acdc6b83019307c7faec2612d6f

6 years agomedia: tegra: avp: Allocate IOVMM first for AVP
Kaz Fukuoka [Sun, 15 May 2011 00:46:24 +0000]
media: tegra: avp: Allocate IOVMM first for AVP

bug 827505

Original-Change-Id: If6d4fd137b72c3a08bf8fb1094d8dd31ab361f1c
Reviewed-on: http://git-master/r/31633
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Tested-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Frank Thomas Bourgeois <fbourgeois@nvidia.com>

Rebase-Id: Ra81978082c7ad5f99ed671d1762ab0b9e294c0cb

6 years ago(WORKAROUND) Keep AVP kernel alive
Kaz Fukuoka [Fri, 13 May 2011 21:10:36 +0000]
(WORKAROUND) Keep AVP kernel alive

- Avoid shutdown AVP kernel
- This is a workadound for bug 827353

bug 827353

Original-Change-Id: I7a8889bf190f91792c90a84fc69d5b190b8de73f
Reviewed-on: http://git-master/r/31576
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R5e92617d2186ecb3149877e0219a82aab9f4838d

6 years agomedia: tegra: avp: Use SMMU to load AVP kernel
Kaz Fukuoka [Thu, 21 Apr 2011 01:53:42 +0000]
media: tegra: avp: Use SMMU to load AVP kernel

- Use nvrm_avp_e0000000.bin is for Tegra3 A01
- Use nvrm_avp_00001000.bin is for Tegra3 A02 and later

bug 765965

Original-Change-Id: I9bc28b122bd1b0cd2c1ece3bc681550de5912229
Reviewed-on: http://git-master/r/31202
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Tested-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Tested-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>

Rebase-Id: R02295b1e1327407ef762b8ef1954b0a0f78afd32

6 years agomedia: tegra_camera: add support for regulator avdd_dsi_csi
Pritesh Raithatha [Thu, 12 May 2011 14:08:42 +0000]
media: tegra_camera: add support for regulator avdd_dsi_csi

Bug 826043

Original-Change-Id: I3d78f7941d54038f12f587400c899aa145c63122
Reviewed-on: http://git-master/r/31369
Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com>
Tested-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

Rebase-Id: Ra8b3e254c8577a17c54bc6d48c06d99cfde20a22

6 years agomedia: sh532u: Adding board related init/deinit
Laxman Dewangan [Tue, 3 May 2011 08:44:56 +0000]
media: sh532u: Adding board related init/deinit

When device sh532u is open, it calls board related initialization
and de- initialization function.
In the board related functions, the client can initialize the required
signal, power on/off the device etc.

bug 802264

Original-Change-Id: Ie69a6e70c5d104489d248bef538e89263208ee54
Reviewed-on: http://git-master/r/30169
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Danielle Sun <dsun@nvidia.com>
Tested-by: Danielle Sun <dsun@nvidia.com>
Reviewed-by: Prayas Mohanty <pmohanty@nvidia.com>

Rebase-Id: R026fbf2cd53dfd839875c3edb97aca5b037120c4

6 years agoARM: Tegra: Sh532u: Add focus motor state check
Gary Zhang [Sat, 16 Apr 2011 05:06:24 +0000]
ARM: Tegra: Sh532u: Add focus motor state check

Return last requested position if the motor settled or timeout occurs.

Original-Change-Id: Ib0ff58b827fcf871dbf185eb0a284b7fe010aef2
Reviewed-on: http://git-master/r/27978
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Andrei Denissov <adenissov@nvidia.com>
Reviewed-by: Gary Zhang <garyz@nvidia.com>
Tested-by: Gary Zhang <garyz@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>

Rebase-Id: Rd5395077ebfd868f65cea951176962594dc476ad

6 years agomedia: video: tegra: ov5650: updated copyrights
Pritesh Raithatha [Wed, 27 Apr 2011 06:54:24 +0000]
media: video: tegra: ov5650: updated copyrights

Original-Change-Id: I6f0bc3b5859c8545853051f10bda60ab6ac3dd8b

Bug 819975

Reviewed-on: http://git-master/r/29467
(cherry picked from commit 9c4eac8a44eef360c2e5be07838fecc78096847f)
Original-Change-Id: If868656a2c8811593974723e85010257b07ed22b
Reviewed-on: http://git-master/r/29972
Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com>
Tested-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R61798483f1cdcb2c6aec458a36e88ca509de92c9

6 years agomedia: video: tegra: avp: set sclk rate
Prashant Gaikwad [Tue, 26 Apr 2011 05:31:32 +0000]
media: video: tegra: avp: set sclk rate

sclk is shared between usb and avp. usb sets it to 80MHz, hence set sclk rate
to max when avp is running.

Bug 819796

Original-Change-Id: I4e5d28fd83c4f001bb191534d4ee2ccbfadbad25
Reviewed-on: http://git-master/r/28765
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R2d3458bbe518bf61c2cf914469b7e970f91adc6f

6 years agomedia: tegra: avp: Remove hardcoded CONFIG_TEGRA_RPC/AVP
Kaz Fukuoka [Fri, 15 Apr 2011 21:24:05 +0000]
media: tegra: avp: Remove hardcoded CONFIG_TEGRA_RPC/AVP

- Remove lines marked with FIXME.
- Now CONFIG_TEGRA_RPC/AVP are y by default.

Original-Change-Id: Iad396e9bfb86daf9f3d08ff546dd32a291ea7f6d
Reviewed-on: http://git-master/r/28076
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Tested-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Original-Change-Id: I02cb9742bfe5d0f31e66238d9b1b470800080554

Rebase-Id: Rafd81bab70bccbb1ba47b3f22b3d521bc2767aa7

6 years agomedia: tegra: avp: Stop AVP when all clients are done
Kaz Fukuoka [Fri, 15 Apr 2011 18:14:06 +0000]
media: tegra: avp: Stop AVP when all clients are done

- Remove temporary lines marked with FIXME.
- Also lower some printk level to KERN_DEBUG.

Original-Change-Id: I8283507f79ffb2b2a8073f8a70f12ab16feb2324
Reviewed-on: http://git-master/r/28075
Reviewed-by: Niket Sirsi <nsirsi@nvidia.com>
Tested-by: Niket Sirsi <nsirsi@nvidia.com>
Original-Change-Id: I5bb4a6f752b30d0c6da3344355fcacb979eb991f

Rebase-Id: Rf5a7d780bb4d00f48a2f0ce48d8f0266d6e5d4c0

6 years agoARM: tegra: Use proper type for physical addresses
Scott Williams [Wed, 13 Apr 2011 00:47:52 +0000]
ARM: tegra: Use proper type for physical addresses

Original-Change-Id: I158d2be97c795313e7e74ce9fb4ec0bdc7d95496
Reviewed-on: http://git-master/r/27559
Tested-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Hiro Sugawara <hsugawara@nvidia.com>
Reviewed-by: Jin Qian <jqian@nvidia.com>
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: I0ff198daa548ed2837f7fb1794013bf0adf7e5a1

Rebase-Id: R267a127ee1f5a2194179031d87a298b80f11d81f