summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-08-11arm: tegra: clock: Reading APB bus before disabling clocktegra-11.2.13Alok Chauhan
It may be possible that write operation on apb bus does not get complete before disabling clock if the clock is disabled just after the write on apb bus. To have proper sequence of operation, it is require to read back the apb bus to make sure the write operation is completed. bug 833341 This is cherry pick of change http://git-master/r/#change,32556 in main but hand-merged. Change-Id: Ifdabd7507d2bd738da3880cff6756a9a7b489e4b Reviewed-on: http://git-master/r/45981 Reviewed-by: Alok Chauhan <alokc@nvidia.com> Tested-by: Alok Chauhan <alokc@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-08-11usb: ehci: tegra: enable hotplug interrupt for port3balam
Hotplug on usb is supported only for usb3(instance 2) Bug 859355 Change-Id: I9f31ebae5bda51beddc23dc6e13fd635cf8cef47 Reviewed-on: http://git-master/r/45763 Reviewed-by: Alex Courbot <acourbot@nvidia.com> Tested-by: Alex Courbot <acourbot@nvidia.com> Reviewed-by: David Schalig <dschalig@nvidia.com> Tested-by: David Schalig <dschalig@nvidia.com> Reviewed-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
2011-08-09ARM: tegra: ventana: nvidia memory table updates to prevent corruptionVarun Wadekar
To avoid memory corruption when device is operating at full temperature QUSE_EXTRA should always be set to 0 for frequencies 150MHz and less. As extra protection change FBIO_CFG5 to remove the region where there is TriState on the DQS signals thus preventing false DQS pulses (and false reads). (cherry-picked from 2dc075be0e8495654a84a6bc6afa63408e141b02) Original author: James Wylder <james.wylder@motorola.com> Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Change-Id: I5c711343737edf972251006484ea84661106e0f9 Reviewed-on: http://git-master/r/43401 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2011-08-08ventana: use separate emc chips for ventana based devicesNitin Kumbhar
Many platforms are derived from ventana and have different types of memories. Add a separate array for the emc chips being used on those platforms. Be default, the array is not populated with any entries. This disables memory scaling for that device. BUG 854226 Change-Id: Ic200c980c074ce315880c964f08ce1d5482f6766 Reviewed-on: http://git-master/r/43038 Reviewed-by: Ching Kuang (Roger) Hsieh <rhsieh@nvidia.com> Tested-by: Ching Kuang (Roger) Hsieh <rhsieh@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-08-08arm: tegra: otg: check connected devices on resumeVictor Ryabukhin
A device might be connected while CPU is in sleep mode. In this case no interrupt will be triggered. Force irq_work to recheck connected devices. Reviewed-on: http://git-master/r/40331 (cherry picked from commit 749e994e1e0010843e4a2d54e27a7f19274661a7) Change-Id: Ic106a2e3115a87dc9548714ef89383add42fd777 Reviewed-on: http://git-master/r/43433 Reviewed-by: David Schalig <dschalig@nvidia.com> Tested-by: David Schalig <dschalig@nvidia.com> Reviewed-by: Alex Courbot <acourbot@nvidia.com> Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
2011-08-08video: tegra: dc: Update hdmi hot-plug status on resumeManjula Gupta
- Update the upper layer about hdmi removal in suspended state. - Removes the redundant variable hpd_pending. Bug 857122 Change-Id: I78e22e572a9ff0e475d15bbb94c608cfceeefbee Reviewed-on: http://git-master/r/44326 Tested-by: Manjula Gupta <magupta@nvidia.com> Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
2011-08-04asoc: tegra: Fix wired jack resumeSumit Bhattacharya
Calling of snd_soc_jack_add_gpios() from tegra_jack_resume() causes kernel warning since parentless device registration is not allowed during PM transaction. Modify wired_jack supend/ resume functions to disable IRQs during suspend and enable them during resume and report the current jack state to snd_soc_jack interface to ensure jack events happened during suspend state are not missed. Bug 850424 Change-Id: Idde4504096a0793729adaafed3da70f08be91101 Reviewed-on: http://git-master/r/44747 Tested-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-08-04arm:video:dc Audio EDID improvementsScottPeterson
Finer grain determination of audio capabilities for HDMI devices. TO enable audio we have to have basic audio supported in the EDID plus at least one Short Audio Descriptor block. Change-Id: Icb8b242c80ae580cdcdea1910a7cf7bd1f124239 Reviewed-on: http://git-master/r/43304 Tested-by: Scott Peterson <speterson@nvidia.com> Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com>
2011-07-29arm: tegra: fuse: Add A04 chip revision.tegra-11.2.12Roger Hsieh
tegra_get_revision() returned chip minor version but it doesn't identify A04 chip correctly. Add A04 revision to fix it. Bug 856439 Change-Id: I7249633dccaa1f15dd275feeeb2c528322f1f47f Reviewed-on: http://git-master/r/43481 Reviewed-by: Ching Kuang (Roger) Hsieh <rhsieh@nvidia.com> Tested-by: Ching Kuang (Roger) Hsieh <rhsieh@nvidia.com> Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-by: ChihJen Hsu <chhsu@nvidia.com> Reviewed-by: Yu-Fong (Foster) Cho <ycho@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-29video: tegra: dc: use a delayed_work on hdcpDonghan Ryu
hdmi modeset triggers to re-start hdcp and trying to negotiate too early can cause HDCP failure. using delayed_work can avoid this situation by starting HDCP a little bit late Bug 855002 Change-Id: I64bd84406ebb02ecc33f53eee65e2b3032a69880 Reviewed-on: http://git-master/r/43463 Tested-by: Donghan Ryu <dryu@nvidia.com> Reviewed-by: Jonathan Mayo <jmayo@nvidia.com> Reviewed-by: Donghan Ryu <dryu@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-29ARM: tegra: clocks: Add shared sclk for statmonPrashant Gaikwad
H/W statistics monitor for AVP controls sclk depending on load. Instead of overriding avp.sclk rate, separate sclk client added for the statmon so that busy hints from AVP can be handled. Bug 831892 Reviewed-on: http://git-master/r/36057 (cherry picked from commit a19f85a8a7af722bcfd729297e682574dc22de7b) Change-Id: I6bd146536b208ed080512cac6f1903188ab240e9 Reviewed-on: http://git-master/r/43030 Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com> Tested-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-29media: video: tegra: avp: set sclk to minPrashant Gaikwad
Initialize avp.sclk to minimum. H/W statistics monitor adjusts avp.sclk dynamically depending on load. Bug 831892 Reviewed-on: http://git-master/r/36064 (cherry picked from commit 1d18930770b99fa7a8169ba8300723bf3b5551e0) Change-Id: I67887368d381b882c521f454e7c4624b39e847c8 Reviewed-on: http://git-master/r/43027 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-07-29ARM: defconfig: Enable H/W stat mon for ventanaSanjay Singh Rawat
Change-Id: I5ca8d77e29382e22c46deee7355e8ab59e6e4154 Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-on: http://git-master/r/43026 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-07-29media: video: tegra: set_clk_rate for avpSachin Nikam
set_clk_rate for sclk which is parent of avp clock. Bug 843725 Signed-off-by: Sachin Nikam <snikam@nvidia.com> Reviewed-on: http://git-master/r/39772 (cherry picked from commit 7ca01f6ae2071c5adac467552bdedb54d158d51b) Reviewed-on: http://git-master/r/40598 (cherry picked from commit 52ee27d112691171bbf6bab00329701288944f1e) Change-Id: I8ac5a238b78d4112521453fd985cccfd18b43468 Reviewed-on: http://git-master/r/42798 Tested-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-29media: 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 get clock message from AVP. Bug 843882 Signed-off-by: Sachin Nikam <snikam@nvidia.com> Reviewed-on: http://git-master/r/38506 (cherry picked from commit 7ab89380014b5b5f368548615f5ab2e144b3e57a) Reviewed-on: http://git-master/r/40597 (cherry picked from commit ea44e0325596c4e78fbd2bcf67648fb524b0c7bc) Change-Id: I5167f3c3efa80cc581bddd7e7e8826da198b7266 Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-on: http://git-master/r/42797 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-29media: tegra: avp: respond to unsupported service idsSachin Nikam
AVP service driver responds error to AVP for invalid or unsupported service IDs. Bug 843473 Signed-off-by: Sachin Nikam <snikam@nvidia.com> Reviewed-on: http://git-master/r/39225 (cherry picked from commit 11237d6a408d6ca7aea619e47b02ddf7e158945d) Reviewed-on: http://git-master/r/40596 (cherry picked from commit 6c78fcbf8a0206aece5eb7e972ba1e1e84276ba4) Change-Id: I7ce56be10dc84fcb2a43916258d1c1deaf1b7d8d Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-on: http://git-master/r/42796 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-29tegra: avp: implement NvRmPowerModuleClockConfig() for AVPMayuresh Kulkarni
this change will allow clock rate control from AVP. Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Reviewed-on: http://git-master/r/31839 (cherry picked from commit 82f7aa65a57b808a5b028918c7b1b997f8a76db7) Reviewed-on: http://git-master/r/40595 (cherry picked from commit c0a5ebaa43e52b30ecb1f86d5ce7fa9a2325da8b) Change-Id: Ieb4850a1e608b5468716bad51f3a6925e30a5f28 Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-on: http://git-master/r/42795 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-29ARM: tegra: add support for hardware statistic counterPrashant Gaikwad
Tegra series of chips has a hardware statistic counter for CPU/AVP/VDE/SYS modules. This commit adds support for AVP statistics gathering and controlling avp clock during video playback. Bug 831892 Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-on: http://git-master/r/35647 (cherry picked from commit 145885b03cd9fc625f2ff3460c59ebbb3d93c98e) Change-Id: Ib9e05c7dbf0b3a9c1a56da64b8b1f6d9edd2dd0a Reviewed-on: http://git-master/r/42794 Tested-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-27ARM: defconfig: enable debugfs writeKen Chang
enable debugfs clock write by default bug 847828 Change-Id: Ia58ea86a32d322d77561f9252112e7a0850cd22a Reviewed-on: http://git-master/r/43193 Tested-by: Ken Chang <kenc@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-27video: tegra: dc: fix delay on hdmi modesetDonghan Ryu
wait_event_interruptible_timeout checks the condition before it enters a sleep. Adding a real condition to the function avoids an un-wanted aditional sleep. Bug 833476 Change-Id: Ie52cfa071b980d4fa01af8984f89fa6a1710addc Reviewed-on: http://git-master/r/43225 Reviewed-by: Donghan Ryu <dryu@nvidia.com> Tested-by: Donghan Ryu <dryu@nvidia.com> Reviewed-by: Michael I Gold <gold@nvidia.com> Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
2011-07-26video: tegra: host: Clear refcnts+syncpts on suspendElaine K. Tam
Forcibly clear channel refcounts and syncpoints on suspend. Non-zero refcounts and stuck syncpoints remain to be root-caused. - Refcount clear portion is based on fix for Bug 820450 (but with fixup from var mod to m); - Increase wait timeout (6s) for module idle at suspend, wait indefinitely for module idle on retry (otherwise fatal); - Ensure that syncpoint fixups apply only to non-client-managed syncpoints, for case system_suspend == TRUE only (not ACM idle); - Add extra debug logging (see force_suspend) to track potential powerdown races, etc. Bug 834337 Change-Id: I513d77dd841f5ec499c8bb7a08806bbe08a733e5 Reviewed-on: http://git-master/r/39716 Tested-by: Elaine Tam <etam@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-25drivers: net: wireless :bcm4329: disable sdio interrupts before wifi resetRahul Bansal
during system suspend if wifi is on but not connected, android sets RTC alarm to wake up system after 2 mins of system suspend to turn off wifi. during turning off wifi it was observed that BCM4329 MAC is giving spurious sdio interrupts which was causing lockup issue (mmc_lock) between sdio interrupt handling process and wifi stop process, to fix this issue sdio interrupts are disabled before giving MAC reset from host. Bug 834444 Bug 798783 Bug 796147 Bug 797230 Bug 780047 Bug 818687 Change-Id: I696d70422be2866a18b05d85c34547ac847130d6 Reviewed-on: http://git-master/r/43014 Reviewed-by: Rakesh Kumar <krakesh@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-25video: tegra: dc: Fix no_vsync hang issue.Gaurav Sarode
no_vsync was causing random hangs due to unwanted interrupts were enabled on default. Fix bug 801463 (cherry picked from commit ff97de537bb721a5692189eb6e13e6856a2c5605) Change-Id: Ief706bd90d0420db1fa39517c3eaba87adcdb246 Reviewed-on: http://git-master/r/42590 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-07-25video: tegra: host: Force DC reset on stuck DISP syncptElaine K. Tam
Call tegra_dc_schedule_reset when DISP syncpoint is stuck for >= STUCK_FIXUP_COUNT (currently 5) iterations in syncpt_wait_timeout. This causes display to blank off briefly, but subsequently recovers. Bug 834337 Change-Id: I564a34e238f5c954f62ecde902af9de22a4cb32f Reviewed-on: http://git-master/r/42416 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-07-25usb: otg: tegra: Fix for kernel freeze during resumeVenkat Moganty
Delaying the otg resume to occur after resuming all the devices. This will make sure all the storage drivers are resumed before un-register of the host controller driver. Bug 843287 Change-Id: I38c801d61e0bc903c0cb074d84d753b947f7b7f5 Reviewed-on: http://git-master/r/42412 Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com> Tested-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2011-07-22ASOC: tegra: Acquire wake_lock during play/captureManjula Gupta
Acquire wake_lock from alsa kernel when pcm playback/capture starts and hold it until playack/capture ends. It is needed to prevent device from going into suspend state in middle of audio playback. Fix for Bug 829538 Change-Id: Ic5335a4bbbd5855a275f1fd1b6c2a57a5ed8dd27 Reviewed-on: http://git-master/r/42580 Tested-by: Manjula Gupta <magupta@nvidia.com> Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-21ARM: tegra: restore voltage to nominal when reboottegra-11.2.11Bo Yan
At the time of reboot, all rails need to be set to nominal to ensure the success of subsequent boot bug 821969 bug 797082 http://git-master/r/#change,42117 (cherry picked from commit 34a922bbf6cad91dd4f5129a1c7ad96f475f34fe) Change-Id: I5044109866a032dc89d7cd0b83938ecd4b3f360a Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/42297 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-21video: tegra: dc: Add basic audio EDIDScottPeterson
Add support so that when the EDID is read from an HDMI display we set the spk_alloc flag to Left+Right, even if the optional SPeaker Allocation Block is not present. This provides a default audio configuration. Bug 849686 Change-Id: I549bfb356ba594f7b38baec0f4e5f18ac91602c0 Reviewed-on: http://git-master/r/42173 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-07-21ARM: tegra: ventana: support power sequence timingKen Chang
below variables should be defined according to power sequence specifications of panels. - timing between panel power on to lvds singal enable - timing between lvds signal enable to backlight enable bug 818959 Change-Id: Idcc6de22178fa455e6e65ea89bbabd8a5eb9e6d9 Reviewed-on: http://git-master/r/41669 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-07-21video: tegra: nvhost: reduce HOST off timeoutXin Xie
Change-Id: I48cdaf6cd8e716a720ec24b56d1ee54d50ade36e Reviewed-on: http://git-master/r/40676 Reviewed-by: Xin Xie <xxie@nvidia.com> Tested-by: Xin Xie <xxie@nvidia.com> Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-21crypto: tegra-aes: store keys in individual requestsVarun Wadekar
store the keys in the individual request context structure, since there is no other way to manage keys across different crypto operations. also retry requests thrice in case of errors Bug 833165 Bug 818126 Change-Id: I7d3381477b5bc134da5727bb39ea89abe05dc17c Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/40008 Reviewed-by: WooJung Min <wmin@nvidia.com> Tested-by: WooJung Min <wmin@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-21tegra: dc: change EMC efficiency for bandwidthXin Xie
BUG 835372 Change-Id: I571ca8785893df339175306f548daa31158721fd Reviewed-on: http://git-master/r/39277 Reviewed-by: Xin Xie <xxie@nvidia.com> Tested-by: Xin Xie <xxie@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-21tegra: dc: set EMC clock for every frameXin Xie
BUG 835372 Change-Id: Iccd8ee1e6222e2661e7b3fbbfde615ead6116e02 Reviewed-on: http://git-master/r/38170 Reviewed-by: Xin Xie <xxie@nvidia.com> Tested-by: Xin Xie <xxie@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-21tegra: dc: set EMC clock dynamicallyXin Xie
If the screen is idle (no POST for some time), reduce the DC EMC clock according the windows size. If external display connected, the EMC clock will not be reduced. BUG 828306 Reviewed-on: http://git-master/r/37106 Change-Id: I88c76ef3afe5036f47d91f6540846fd767c399e4 Reviewed-on: http://git-master/r/38149 Reviewed-by: Xin Xie <xxie@nvidia.com> Tested-by: Xin Xie <xxie@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-21arm: tegra: manage graphics clockWen Yi
Provides clock information for camera use cases to achieve optimal power saving. BUG 813159 Reviewed-on: http://git-master/r/31237 (cherry picked from commit 8180aabdb727b171ae9c49fbec991b3983ec87c8) Change-Id: I19e99d39ff00bf0619d314854ce1b2fff670a8ff Reviewed-on: http://git-master/r/37955 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-07-20ARM: defconfig: enable USB_NET_AX8817X by defaultVandana Salve
This option adds support for ASIX AX88xxx Based USB 2.0 Ethernet Adapters and it works with TrendNet TU2-ET100 devices. Bug 834417 Similar change was done by http://git-master/r/35699 Change-Id: Iad0ba1df837db5b560cc3b942d55c6ea83ee34cc Reviewed-on: http://git-master/r/42116 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-07-20ARM: tegra: dc: Disable EDID dumpArtiste Hsu
tegra_edid_dump() causes audio noise when plugin HDMI cable during video playback and should not be enabled by default. Bug 837728 Change-Id: Ib06926e30420c0aa26c7a6a3949429bbd3f2f9e1 Reviewed-on: http://git-master/r/42006 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-07-20tegra: power: restore cpufreq governor targetAlexandre Courbot
Restore the target cpu frequency on exit from suspend. Also save target frequency if set when the device is suspended. Bug 841559 Change-Id: Id17a5945215e324d49e3d74b9603cc919a736c64 Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Reviewed-on: http://git-master/r/41710 Reviewed-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-20arm: tegra: whistler/ventana: dynamic cpufreq governorWen Yi
To improve the power consumption situation for MP3 playback the scaling governor is set to conservative when display is turned off and the default governor is saved. The governor is restored when display is turned on. Bug 817727 Change-Id: I2184b422b6e25504a0fb7d78573c748599256908 Reviewed-on: http://git-master/r/28270 Reviewed-on: http://git-master/r/37936 Reviewed-by: Manish Tuteja <mtuteja@nvidia.com> Tested-by: Manish Tuteja <mtuteja@nvidia.com>
2011-07-20ARM: tegra: das: Add port check before set DAP tristateArtiste Hsu
If tagra_dap_port_info_table.dac_port is tegra_das_port_none, das_set_pin_state() should not control tri-state for the DAP pingroup. Bug 824362 Change-Id: Id48945c21c0e383f5b43cc62ccc610af3a0fd2ee Signed-off-by: Artiste Hsu <chhsu@nvidia.com> Change-Id: I13bc31f0935547a0446c4e300ed0089042822e26 Reviewed-on: http://git-master/r/41489 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Yu-Fong (Foster) Cho <ycho@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com>
2011-07-20video: tegra: fix divide by zero exception in hdmi moduleSanjay Singh Rawat
Bug 851086 Change-Id: Ia7f9ae6f43903fee3b1ea28331bfc621a995d338 Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-on: http://git-master/r/40788 Reviewed-by: Donghan Ryu <dryu@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-19arm: tegra: dvfs: use 1.1 v for usbWen Yi
Set the working voltage for USB to 1.1 v. Bug 796594 Reviewed-on: http://git-master/r/30219 (cherry picked from commit af08f51a8c51b7b8d3f25ee7a2372f9d423b78e7) Change-Id: I3a5a97dae925262453e19fc9b597c0d4be5b2ba6 Reviewed-on: http://git-master/r/40684 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-07-19ARM: tegra: Modify DDC (i2c2) clock rate as 100KHzHaley Teng
Per the 8.4.1 section of HDMI spec version 1.4a, 100KHz is the maximum clock rate of DDC i2c bus. Bug 820552 (cherry picked from commit 588d82e5106558e1c218506ea5067f23c3888db6) Change-Id: Iba08e5ea9c46ab2c50f0716dee950bcc40a9fc4e Signed-off-by: Haley Teng <hteng@nvidia.com> Reviewed-on: http://git-master/r/41490 Reviewed-by: ChihJen Hsu <chhsu@nvidia.com> Reviewed-by: Alok Chauhan <alokc@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-19usb: host: tegra: don't clear other port events for phy_clk_vld irqKenji Chen
1st hot-plug event on utmip port can't be detected after LP0 exit. For utmip phy_clk_vld interrupt, the corresponding service routine wants to clear WCKN bit in portsc and it also clears other port events, such as PORT_CSC ,PORT_PEC ,PORT_OCC. Bug 845254 Change-Id: Ib9aac9d411821220c99de0e3f85a7922fdcf2fca Reviewed-on: http://git-master/r/40354 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-07-14arm: tegra: fuse: accept strings starting with 0x/xVarun Wadekar
some users might enter fuse data starting with 0x/x. this will mess up the fuse programming. do not consider 0x/x while programming the fuses. also fix some compilation warnings Change-Id: I5e888a769eb15dbe7eb35ce2d290246fcf9788c9 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/38933 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-14ARM: defconfig: enable USB accessory for VentanaDavid Schalig
bug 846277 Change-Id: I6a3eed59ab2a906afea2b55213e0346491c19c58 Reviewed-on: http://git-master/r/40613 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: David Schalig <dschalig@nvidia.com> Tested-by: David Schalig <dschalig@nvidia.com> Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
2011-07-14arm: tegra: correct 3D power gate WAR.Roger Hsieh
3D power gate should be always disabled to keep the power. Set T20 enabled by default. Bug 843271 Change-Id: I17745e37436414b3d5f905eb01e347743a012830 Reviewed-on: http://git-master/r/40342 Reviewed-by: Ching Kuang (Roger) Hsieh <rhsieh@nvidia.com> Tested-by: Ching Kuang (Roger) Hsieh <rhsieh@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Karan Jhavar <kjhavar@nvidia.com> Reviewed-by: ChihJen Hsu <chhsu@nvidia.com> Reviewed-by: Yu-Fong (Foster) Cho <ycho@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2011-07-13ARM: tegra: rw permissions for TEGRA_MC_ATTRIBUTESManoj Gangwal
Change the permission to 644 for 'enable' and 'quantum' TEGRA_MC_ATTRIBUTES to disable the write permission as CTS test "android.permission.cts.FileSystemPermissionTes t#testAllFilesInSysAreNotWritable" requires it as non-writable. Bug 840411 Reviewed-on: http://git-master/r/36878 (cherry picked from commit 88982e06ac4d0b91828542ec9eaabf6e2c9a03e0) Change-Id: Ie99ee941d976b08a5b145fafe9160d44ddcb9990 Reviewed-on: http://git-master/r/40797 Reviewed-by: David Schalig <dschalig@nvidia.com> Tested-by: David Schalig <dschalig@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Manoj Gangwal <mgangwal@nvidia.com>
2011-07-13ARM: tegra: ventana: register USB accessory driverDavid Schalig
bug 846277 Change-Id: Ib435d07993d9987d6028e783fdce2d1ed68d19ca Reviewed-on: http://git-master/r/40605 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: David Schalig <dschalig@nvidia.com> Tested-by: David Schalig <dschalig@nvidia.com>
2011-07-13video: tegra: dc: Reduce usage count of nvmap clientVandana Salve
Carveout memory leak occured in video playback on abnormal termination as the tegra overlay driver didn't had the implementation to reduce the usage count of nvmap client on device closure. Hence on abnormal termination of mediaserver, the carveout memory remained allocated causing memory leak. The usage count of nvmap client for overlay driver is incremented on ioctl TEGRA_OVERLAY_IOCTL_SET_NVMAP_FD.It should be decremented on device closure. Added the code to decrement the uage count of nvmap client on release, so that the client and the carveout memory is free'd whenever the count reaches zero on successful as well as abnormal termination of mediaserver process. Similar implementation is done by NvHost channel driver, The NvHost drivers takes care of nvmap client usage count.i.e. decrement the uasge count of nvmap client which is incremented by NVHOST_IOCTL_CHANNEL_SET_NVMAP_FD ioctl. Bug 845676 Reviewed-on: http://git-master/r/40157 (cherry picked from commit c10173d70affb7117284b57fb0870c90823a5880) Change-Id: Ibe71a5daa8e6e3e2618e6b1a43338ff46fc27062 Reviewed-on: http://git-master/r/40837 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com>