summaryrefslogtreecommitdiff
path: root/drivers/media/video
AgeCommit message (Collapse)Author
2011-09-26video: tegra: avp: set emc to max if avp clock is maxMayuresh Kulkarni
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 Change-Id: Id5e454a5a63b1679906d8612c6e24958bace1663 Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Reviewed-on: http://git-master/r/53193 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Mohan Nimaje <mnimaje@nvidia.com>
2011-09-16media: video: tegra: fix ov2710 preview tearing issue.Frank Chen
Delay gain change by 1 frame. This will prevent sensor applying new gain setting in the middle of the frame. Bug 870349 Change-Id: Ib4e0e2fef99dcbf05a0656640af529e8f02c2a7d Reviewed-on: http://git-master/r/52773 Reviewed-by: Krupal Divvela <kdivvela@nvidia.com> Tested-by: Krupal Divvela <kdivvela@nvidia.com> Tested-by: Frank Chen <frankc@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-09-15media: video: tegra: Powergate vi, csi and ispBhushan Rayrikar
Add powergating for vi, csi and isp in tegra_camera Bug 855758 Change-Id: Ibb026f71ea0623e0e8e21cb8c250f92728d0d60b Reviewed-on: http://git-master/r/52099 Reviewed-by: Bhushan Rayrikar <brayrikar@nvidia.com> Tested-by: Bhushan Rayrikar <brayrikar@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
2011-09-14media: video: tegra: Change vertical output sizeBhushan Rayrikar
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 Change-Id: I0c90a9da48f9b5915f1af0f9dab2b6d090da050d Reviewed-on: http://git-master/r/51682 Reviewed-by: Bhushan Rayrikar <brayrikar@nvidia.com> Tested-by: Bhushan Rayrikar <brayrikar@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Shiva Dubey <sdubey@nvidia.com> Reviewed-by: Charlie Huang <chahuang@nvidia.com> Tested-by: Charlie Huang <chahuang@nvidia.com> Reviewed-by: Frank Chen <frankc@nvidia.com> Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
2011-09-09media: tegra_camera: Enable Null sensorkdivvela
Enable pd2vi_clk in case of Null sensor Bug 870406 Change-Id: I29ab4e4d3d24a54b2eace84eeb8266582e53dd1f Reviewed-on: http://git-master/r/50822 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Krupal Divvela <kdivvela@nvidia.com> Reviewed-by: Prayas Mohanty <pmohanty@nvidia.com>
2011-09-08media: video: nvavp: Use end of IOVM for AVP OSGajanan Bhat
Address update for AVP OS - 0x0ff00000 (last 1MB of IOVM) - 0xeff00000 Tegra3 A01 Change-Id: I15305aadcc08f3deacb500ae04fd0983fe2e691a Reviewed-on: http://git-master/r/50581 Tested-by: Gajanan Bhat <gbhat@nvidia.com> Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com> Reviewed-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com>
2011-09-02media: video: tegra: ov5650: Remove redundant i2c cmdskdivvela
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 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>
2011-09-01media: video: nvavp: Add AVP syncpoint ID queryGajanan Bhat
Add support to query syncpoint ID assigned to the AVP by nvhost driver. 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>
2011-09-01media: video: tegra: sh532u: add get_rom_info()Qinggang Zhou
get_rom_info() retrieves precalibrated INF and MAC, and stores them for ODM to use. This function is added back. bug 866141 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>
2011-08-29media: tegra: avp: Use end of IOVM for AVP kernelKaz Fukuoka
- Use 0x0ff00000 (last 1MB of IOVM). - For Tegra3 A01, use 0xeff00000. 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>
2011-08-26media: video: tegra: ov5650: QVGA 120fps sensor supportkdivvela
Add new sensor mode for OV5650 sensor with QVGA and 120fps. Bug 860670 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>
2011-08-25Revert "media: video: tegra: sh532u: remove focuser init_pos"Qinggang Zhou
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 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>
2011-08-24media: video: tegra: Fix TPS61050 flash to torch ratioAnton Poon
Correct the flash to torch ratio. Bug 850614 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>
2011-08-19media: video: tegra: sh532u: remove focuser init_posQinggang Zhou
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 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>
2011-08-19media: video: tegra: change resolution from 1450p to 1080pJihoon Bang
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 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>
2011-08-18media: video: nvavp: Fix build breakGajanan Bhat
Fix build break caused by changes in nvhost driver 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>
2011-08-18media: tegra: avp: Use uncached for loading firmwareKaz Fukuoka
- Change NVMAP_HANDLE_WRITE_COMBINE to NVMAP_HANDLE_UNCACHEABLE. bug 829028 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>
2011-08-17media: video: tegra: add new mode for 1080pShiva Dubey
add new mode for 1080p(1920x1080) in ov5650 which outputs the frame of exactly the same size as 1920x1080. Bug 859620 Change-Id: I33864185d235bb67cb234e017d3dd3d14e877bf1 Reviewed-on: http://git-master/r/47268 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2011-08-17media: tegra: nvavp: ucode loading in driverGajanan Bhat
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. 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>
2011-08-17media: video: ov5650: add 2x2 binning mode controlChangyeon Jo
Add IOCTL (OV5650_IOCTL_SET_BINNING) that user code can access to registers which have 2x2 binning control bits. Bug 835589 Change-Id: I07f8d3536fcdb92e8bae0af294d1a0f8523cefbc Reviewed-on: http://git-master/r/43727 Tested-by: Changyeon Jo <cjo@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-08-09media: video: tegra: sh532u: fix macro focusErik Lilliebjerg
bug 860561 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>
2011-08-09media: video: tegra: add 1080p table to ar0832Jihoon Bang
Add 1080p I2C table to ar0832 driver. The new table allows to record video with 1080p at 30fps. Bug 859779 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>
2011-08-03ARM: Tegra: Sh532u: enable focuser attached to right cameragaryz
The sh532u focuser is enabled to pair with the stereo right camera with the required power control configurations. Bug 827897 Change-Id: Icc21bcd2327671da193a8b8f24c338b0b2f6729c Reviewed-on: http://git-master/r/36571 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2011-07-27media: tegra: nvavp: Fix for relocation offsetGajanan Bhat
Fix for bug in relocation offset calculation, causing wrong surface offset to be sent to AVP. 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>
2011-07-25media: video: tegra: disable ov2710 AWBCharlie Huang
set manual white balance otherwise it will conflict with isp bug 829281 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>
2011-07-21media: tegra: avp: Add channel based AVP driverGajanan Bhat
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. Change-Id: I20b68fc3cbb88b7c95542bae0a1acf5edc52c715 Reviewed-on: http://git-master/r/37420 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2011-07-20media: video: tegra: enable ov9726 sensorCharlie Huang
initial support for sensor ov9726 bug 829399 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>
2011-07-15media: video: tegra: support multiple camerasJihoon Bang
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 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>
2011-07-11media: tegra: avp: Fix avp_svc_thread shutdownKaz Fukuoka
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 Change-Id: I5acf75859e6512923506a3c508f62e7d7ef9a1dc Reviewed-on: http://git-master/r/39736 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2011-07-11media: video: tegra: avp: get module clock freqSachin Nikam
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 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>
2011-07-11media: video: tegra: enable ar0832 sensorJihoon Bang
Support only one sensor for now. Change-Id: I1d0b804077e271052a6d6f4554865675fa70d612 Reviewed-on: http://git-master/r/36779 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2011-07-08media: video: tegra: avp: set sclk to minPrashant Gaikwad
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) Change-Id: Ifb8704169afd7e4436bfba17e3a6c08e8d39aed4 Reviewed-on: http://git-master/r/38909 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2011-07-08tegra: avp: Add platform data for avpPrashant Gaikwad
If emc clock is clocked at maximum rate it increases power consumption. emc clock rate requirement is different for different platforms. Change-Id: I21e9afed402d08558c6913b5f194b1a4699ebcb2 Reviewed-on: http://git-master/r/40166 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2011-07-08media: tegra: video: Fix build warningsScott Williams
Fixes "warning: '<variable>' defined but not used" messages. Change-Id: Ia4980d0262174cb8f39f9c0f67a9d94ff4be8b97 Reviewed-on: http://git-master/r/36561 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2011-07-08media: video: tegra: set_clk_rate for avpSachin Nikam
set_clk_rate for sclk which is parent of avp clock. Bug 843725 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>
2011-07-08media: tegra: avp: respond to unsupported service idsSachin Nikam
AVP service driver responds error to AVP for invalid or unsupported service IDs. Bug 843473 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>
2011-07-07media: video: tegra: avp: Retry to connect to the AVP.Jubeom Kim
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) Change-Id: Ie5b31a50fb61691055ad41f0ac3ce627c08e0ebd Reviewed-on: http://git-master/r/38450 Tested-by: Jubeom Kim <jubeomk@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-07media: video: tegra: TPS61050 flash driverDanielle Sun
Kernel driver for TPS61050 flash/torch camera device. Bug 794431 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>
2011-07-01media: video: tegra: avp: add kfree to error routine.Jubeom Kim
Needs kfree function when error occurs. Reviewed-on: http://git-master/r/37859 (cherry picked from commit 26c98cb216294230f5cc46055c48a0224989df80) Change-Id: Ic83407628eb6e4c2aad0ba014f5a97b561b3ecf6 Reviewed-on: http://git-master/r/38449 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2011-07-01tegra_mediaserver: fix wrong kzalloc param, uninitialized valuesJubeom Kim
- 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) Change-Id: Ifad28f75b159356acbc045e5e985a618aa8df81b Reviewed-on: http://git-master/r/38448 Tested-by: Jubeom Kim <jubeomk@nvidia.com> Reviewed-by: Stephen Holmes <sholmes@nvidia.com>
2011-06-29media: tegra: avp: Clean avp_svc_thread shutdownKaz Fukuoka
- Avoid exiting from avp_svc_thread in error case. - Add nicer messages. bug 840262 bug 836806 Change-Id: I28fe1de9451b10a810f61db94ad3a7770703fd09 Reviewed-on: http://git-master/r/38581 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-06-21tegra: avp: implement NvRmPowerModuleClockConfig() for AVPMayuresh Kulkarni
this change will allow clock rate control from AVP. 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>
2011-06-13media: tegra: avp: Remove duplicated messageKaz Fukuoka
- "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>
2011-05-31media: tegra: avp: Clear interrupt registers when AVP startsKaz Fukuoka
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 Change-Id: I51546400f0bace67dfcdb23f667c051c060d3983 Reviewed-on: http://git-master/r/33083 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-05-27media: tegra: avp: Avoid NULL reference in case of errorKaz Fukuoka
In case of avp_init() failure, NULL pointer was referenced, and caused kernel panic. bug 828027 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>
2011-05-23media: tegra: avp: Fix AVP kernel memory allocationKaz Fukuoka
This change fixes AVP kernel startup problem on Tegra2. bug 828027 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>
2011-05-18media: video: ov5650: synchronize sensors for stereoPrayas Mohanty
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 Change-Id: I6bf34a8af3b7dd51150d5c0247b6787b824c1dae Reviewed-on: http://git-master/r/30005 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-05-18media: tegra: avp: check for NULL on some APIsJon Mayo
clk and nvmap APIs can return ERR_PTR or NULL. also fixed some printf warnings. Bug 827548 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>
2011-05-15media: tegra: avp: Allocate IOVMM first for AVPKaz Fukuoka
bug 827505 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>
2011-05-13(WORKAROUND) Keep AVP kernel aliveKaz Fukuoka
- Avoid shutdown AVP kernel - This is a workadound for bug 827353 bug 827353 Change-Id: I7a8889bf190f91792c90a84fc69d5b190b8de73f Reviewed-on: http://git-master/r/31576 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>