summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)Author
2011-06-30Revert "i2c: tegra: Remove the synchronization between isr and caller"Zhijun He
This reverts commit fbe412ed91158bc1ec5c30c1bc9e9857a115d754. This fixed the video recording system hang bug. Bug 842901 Change-Id: I9467931ffe57b0d7462f6ca09f7582f9c3c40e46 Reviewed-on: http://git-master/r/39286 Tested-by: Zhijun He <zhhe@nvidia.com> Reviewed-by: Jeremy Wyman <jwyman@nvidia.com>
2011-06-30media: video: tegra: enable ov9726 sensorCharlie Huang
bug 829399 - add front sensor ov9726 for enterprise board Change-Id: Id775f8d529206c326dbe8c552e049eb49f76fa55 Reviewed-on: http://git-master/r/39005 Reviewed-by: Jihoon Bang <jbang@nvidia.com> Tested-by: Jihoon Bang <jbang@nvidia.com> Reviewed-by: Chonglei Huang <chahuang@nvidia.com> Reviewed-by: Jeremy Wyman <jwyman@nvidia.com>
2011-06-29cpufreq interactive governor: Update target frequency calculationAlex Frid
Updated target frequency calculation algorithm to take into account current rate CPU is running at: - When CPU is running below go_maxspeed_load threshold, adjust the target frequency based on current rate to reach tunable sustainable load (instead of applying cpu load to max possible cpu rate). Tuned by setting new node ("0" falls back to using max_rate): /sys/devices/system/cpu/cpufreq/interactive/sustain_load - When CPU is running at/above go_maxspeed_load threshold, ramp the target frequency starting from current exponentially with tunable base (instead of immediate jump to maximum cpu rate). Tuned by setting new node ("0" falls back to jump to max_rate): /sys/devices/system/cpu/cpufreq/interactive/boost_factor Defaults for the new tunning parameters are set to "0" - so no changes in governor default behavior. Change-Id: I0137c2fbc9c2cc1ae85869593319324d31974e1a Reviewed-on: http://git-master/r/38817 Reviewed-by: Karan Jhavar <kjhavar@nvidia.com> Tested-by: Karan Jhavar <kjhavar@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Chih-Lung Huang <lhuang@nvidia.com> Reviewed-by: Jeremy Wyman <jwyman@nvidia.com>
2011-06-29ARM: tegra: power: Refactored kernel powergate codeKaran Jhavar
This change provides a centralized location for powergating modules. It would take care of switching on/off clocks while un-powergating/ powergating modules respectively. Bug: 814267 Change-Id: Ia25cf38d2f1e6df1ee0e1a6d8f46b9674a5ed24b Reviewed-on: http://git-master/r/38815 Reviewed-by: Karan Jhavar <kjhavar@nvidia.com> Tested-by: Karan Jhavar <kjhavar@nvidia.com> Reviewed-by: Jin Qian <jqian@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Chih-Lung Huang <lhuang@nvidia.com> Reviewed-by: Jeremy Wyman <jwyman@nvidia.com>
2011-06-29input: touch: atmel_mxt_ts: Prevent double suspend/resume.Robert Collins
In the case where early suspend/resume is enabled, prevent suspend/resume from being called twice. Removing the default suspend/resume handlers while early suspend/resume is enabled prevents the double suspend/resume from occurring. BUG 843934 Change-Id: Ic3c740e4b84a7b6bb99793d0794d7def216687be Reviewed-on: http://git-master/r/39035 Reviewed-by: Karan Jhavar <kjhavar@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Chih-Lung Huang <lhuang@nvidia.com> Reviewed-by: Jeremy Wyman <jwyman@nvidia.com> Tested-by: Jeremy Wyman <jwyman@nvidia.com>
2011-06-29media: video: tegra: enable ar0832 sensorJihoon Bang
DO NOT INTEGRATE INTO MAIN Support only one sensor for now. Change-Id: If3bbe8b449db8145d1841ce68e333a6a660b728d Reviewed-on: http://git-master/r/38750 Reviewed-by: Jihoon Bang <jbang@nvidia.com> Tested-by: Jihoon Bang <jbang@nvidia.com> Reviewed-by: Jeremy Wyman <jwyman@nvidia.com> Tested-by: Jeremy Wyman <jwyman@nvidia.com>
2011-06-29regulator: tps80031: Add VBUS as regulator DO NOT MERGELaxman Dewangan
Providing the control of VBUS through regulator api. bug 833736 Change-Id: I6aeae903bbfa3b0346a4dd268f143d40e6502c58 Reviewed-on: http://git-master/r/39022 Reviewed-by: Thomas Cherry <tcherry@nvidia.com> Tested-by: Thomas Cherry <tcherry@nvidia.com> Reviewed-by: Jeremy Wyman <jwyman@nvidia.com> Tested-by: Jeremy Wyman <jwyman@nvidia.com>
2011-06-29video: dsi: tegra: Improve suspend code DO NOT MERGEAnimesh Kishore
Add check to prevent control enter into suspend function once dsi has already been disabled Bug 841104 Change-Id: Ie6aa3d4aed4acf45eeac86301f97400414748cde Reviewed-on: http://git-master/r/39021 Reviewed-by: Thomas Cherry <tcherry@nvidia.com> Tested-by: Thomas Cherry <tcherry@nvidia.com> Reviewed-by: Jeremy Wyman <jwyman@nvidia.com> Tested-by: Jeremy Wyman <jwyman@nvidia.com>
2011-06-29video: tegra: dc: fix DSI pclk calculation NO NOT MERGEXin Xie
BUG 844499 Change-Id: I422afd8f37a4c95d9eaacff010ed2689f2069f12 Reviewed-on: http://git-master/r/39018 Reviewed-by: Thomas Cherry <tcherry@nvidia.com> Tested-by: Thomas Cherry <tcherry@nvidia.com> Reviewed-by: Jeremy Wyman <jwyman@nvidia.com> Tested-by: Jeremy Wyman <jwyman@nvidia.com>
2011-06-24tegra: 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 Change-Id: I6fb62ce6baf3380737c76b71f16e38ad6465a667 Reviewed-on: http://git-master/r/37106 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-06-24regulator: write permission for only userSachin Nikam
Write permission only for User for syncevent_regulators sysfs attribute. This is needed so as to pass FileSystemPermission CTS. Bug 840409 Change-Id: Iad1ac9fc63b9471b2f7c9f2c12524512b3f5941e Signed-off-by: Sachin Nikam <snikam@nvidia.com> Reviewed-on: http://git-master/r/36897 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-06-24video: tegra: dsi: Update DSI pad register.Kevin Huang
Bug 829327 Change-Id: If17ec2aafccdfad1834f3fc914398cbd3babba01 Reviewed-on: http://git-master/r/36818 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-06-24tegra: dc: adding max pixclock check for hdmiDonghan Ryu
tegra_dc_hdmi_equal doesn't check pixclock and some devices doesn't support 148.5Mhz pixclock which is needed for 1080p@60. However, adding 1080p@30 to the supported hdmi mode array makes tegra_dc_hdmi_equal to retun 1080p@60. Therefore, this commit adds max pixclock check to distinguish modes with different pixclock Bug: 815409 Change-Id: Ifbf07929e3c7a92172856518a55e9d4a04f0b943 Reviewed-on: http://git-master/r/32511 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-06-24video: tegra: dc: No S_IWGRP permission for sysfs attrbsSachin Nikam
Don't give write permission for Group for sysfs: stats_enable, enable and smart dimmer attributes. Bug 840409 Change-Id: Ic51e2a831c7bffed055d5120e684022ff64736c8 Signed-off-by: Sachin Nikam <snikam@nvidia.com> Reviewed-on: http://git-master/r/36994 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-06-24video: tegra: dsi: Set dc and dsi clock for DSI burst mode.Kevin Huang
Change-Id: Ia631f7bae013f378c36fe05c665ef178bef12a46 Reviewed-on: http://git-master/r/31904 Reviewed-by: Kevin Huang <kevinh@nvidia.com> Tested-by: Kevin Huang <kevinh@nvidia.com> Reviewed-by: Jonathan Mayo <jmayo@nvidia.com> Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
2011-06-24video: tegra: Do not set HDMI as a wakeup sourceSanjay Singh Rawat
HDMI connect/disconnect will not affect the suspended device. bug 835157 Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-on: http://git-master/r/37174 (cherry picked from commit 31f69bbe2e832a7dfa7678bb965b3461f421e0f5) Change-Id: Id66cdfcc5435df5abfab54fff823968ae67465a8 Reviewed-on: http://git-master/r/38204 Tested-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
2011-06-24Input: atmel_mxt_ts: add early suspend/resume functionalityRobert Collins
Add early suspend/resume functionality to Atmel touch driver. 0W suspend. Early suspend/resume functions written and provided by Atmel Corporation. BUG 826854 Change-Id: I58d5abacff20df9d3027c960021e94298e31b8a6 Reviewed-on: http://git-master/r/35286 Reviewed-by: Robert R Collins <rcollins@nvidia.com> Tested-by: Robert R Collins <rcollins@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>
2011-06-24Input: atmel_mxt_touch: NVIDIA touch customizationRobert Collins
* Fix suspend/resume bug to prevent unecessary i2cinterrupts when suspended. * Change input device name to match NVDA IDC name. * Add I2C address defines. * Change "printk" to "dev_info" function calls. BUG 826854 Change-Id: Ic1b25bc469b86d8a26e876e80973597d9f6fb107 Reviewed-on: http://git-master/r/35285 Reviewed-by: Robert R Collins <rcollins@nvidia.com> Tested-by: Robert R Collins <rcollins@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>
2011-06-24Input: atmel_mxt_ts: Atmel customizations to touch.Robert Collins
Integrate changes made by Atmel. These changes are in addition to mainline driver. NOTE: Driver will compile as a stand-alone. BUG 826854 Change-Id: If13688d90d97b71718576f3fb756496f57a965d7 Reviewed-on: http://git-master/r/35280 Reviewed-by: Robert R Collins <rcollins@nvidia.com> Tested-by: Robert R Collins <rcollins@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>
2011-06-24Input: atmel_mxt_ts: Add Atmel mainline touch driver.Robert Collins
Update to new mainline touch screen driver. NOTE: Driver will not compile as a stand-alone due to missing and/or changed support files on kernel.org. BUG 826854 <As of commit: 8b86c1c28f569301aa1a113a060f9ed803300903> Change-Id: I0c50a122836d495bcf8f0c47c4729e9a4a7834c9 Reviewed-on: http://git-master/r/35279 Reviewed-by: Robert R Collins <rcollins@nvidia.com> Tested-by: Robert R Collins <rcollins@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>
2011-06-23video: tegra: nvmap: free vm_struct in nvmap_munmap()kenjchen
In nvmap_munmap(), remove_vm_area just remove the allocated memory page information. It doesn't de-allocate vm_struct. kfree() should be used to avoid memory leak in nvmap. Bug: 833796 Change-Id: Ibd0309c1ff323fb8110870ace27819f5a1e006ba Reviewed-on: http://git-master/r/35638 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-06-23misc: mpu3050: removed printkJon Mayo
unnecessary printk removed BUG 842174 Change-Id: I4b194a175fa2d040d1512804787f1351dbefc336 Reviewed-on: http://git-master/r/36582 Reviewed-by: Robert R Collins <rcollins@nvidia.com> Tested-by: Robert R Collins <rcollins@nvidia.com> Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
2011-06-23rtc: tps80031: Adding driver for TI PMU RTC 80031venu byravarasu
With this change, RTC driver for TI PMU 80031 is being checked in. bug 833336 Change-Id: If4789a5dd49163d2391ab016845ff5807c061f12 Reviewed-on: http://git-master/r/34453 Tested-by: Venu Byravarasu <vbyravarasu@nvidia.com> Reviewed-by: Thomas Cherry <tcherry@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2011-06-23serial: tegra: Support for best clock sourceLaxman Dewangan
Finding the best clock source for uart controller which can generate the clock rate having minimum error between requested baudrate and configured baudrate. bug 837140 bug 836059 Change-Id: I4e751b238612a21d894ee8e6611886ab6e832a36 Reviewed-on: http://git-master/r/37635 Tested-by: Rakesh Goyal <rgoyal@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Pradeep Goudagunta <pgoudagunta@nvidia.com> Tested-by: Pradeep Goudagunta <pgoudagunta@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2011-06-23mfd: tps80031: Adding Power off functionalityvenu byravarasu
Implementing power off functionality to turn off the device. bug 833661 Change-Id: I2a08f96de7a9814967c774530659f4db47946acc Reviewed-on: http://git-master/r/35054 Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Tested-by: Venu Byravarasu <vbyravarasu@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2011-06-22usb: otg: tegra: correcting enable/disable clocksRakesh Bodla
usbd clock should not be disabled in the probe, otherwise controller will not work. Bug 836594 Change-Id: I93754344d1c5944ea1220427b5d85eb343b44d1c Reviewed-on: http://git-master/r/37300 Reviewed-by: Rakesh Bodla <rbodla@nvidia.com> Tested-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
2011-06-22video: tegra: dc: make hdcp respond quickly on HDMI modeset.Seongho Joo
hdcp worker could be in sleep during modeset. The front part of the video could be lost because of it. This change makes hdcp respond quickly to shorten the delay. bug 826468 Reviewed-on: http://git-master/r/36215 (cherry picked from commit e856cedd18d60c3636b694f1fba612259abf7229) Change-Id: I1e907753e1d2eec8514bf5bc2f4166502c5477dc Reviewed-on: http://git-master/r/37422 Tested-by: Seongho Joo <sjoo@nvidia.com> Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
2011-06-22Revert "mmc: revert deferred resume"Jin Qian
This reverts commit 40c8a6e8551e81ad4d7647029e0d85f7b0a7e496. Original change broke LP1 suspend/resume Bug 840959,841139 Change-Id: I0fd50729cb81a5e56eca397428ee2c8b04f10e23 Reviewed-on: http://git-master/r/37353 Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com> Tested-by: Jin Qian <jqian@nvidia.com>
2011-06-22ARM: tegra: usb: prefetch engine buffer coherency protectionJay Cheng
The prefetcher fetches a total of 128 bytes, and then responding to sequential reads with this prefetched data. To avoid coherency issues, it discards the prefetched data if a non sequential read occurs. Allocate dtd with 128 bytes boundary to make 2 consecutive dtd 128 bytes apart. bug 825970 Reviewed-on: http://git-master/r/36157 (cherry picked from commit bf623c5edbc8f0f5b23d5580aea1038418893792) Change-Id: I1f48dd3906a7f18208b4415a20c3c166d2a88252 Reviewed-on: http://git-master/r/37020 Tested-by: Cho-Che Cheng <jacheng@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
2011-06-22nvhost: Make 3D workaround Tegra3 A01 onlyTerje Bergstrom
3D hardware workaround is needed for Tegra3 A01 only. With this patch, we read run-time whether it should be enabled or not. Workaround should be removed once A01's have been phased out. Bug 786316 Change-Id: Icd1b85b30a53c74d2e5c7a6df65a805d1fe5147c Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/32136 Reviewed-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2011-06-21video: tegra: dc: add window inversion interface to overlay driverMichael I. Gold
Support INVERT_H and INVERT_V flags and pass through to the DC driver. Also support TILED flag instead of a separate tiled field. Change-Id: If5aa4e24666020d85272a955ef7b6ce6f70aeccb Reviewed-on: http://git-master/r/36553 Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com> Reviewed-by: Jonathan Mayo <jmayo@nvidia.com> Tested-by: Michael I Gold <gold@nvidia.com> Reviewed-by: Michael Frydrych <mfrydrych@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-21i2c: tegra: Remove the synchronization between isr and callerAlok Chauhan
Remove the handling of synchronisation between isr and caller. This change has become obsolete because now clock driver will make sure that any write operations will be completed before disabling the driver clock. Change-Id: I95957351fd1f291a59182fddbb619ffd02a0db63 Reviewed-on: http://git-master/r/33099 Reviewed-by: Bo Yan <byan@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Alok Chauhan <alokc@nvidia.com>
2011-06-20aat2870: Change suspend and resume event sourceJin Park
Change aat2870_bl suspend and resume event source to backlight driver from platform driver. Clean-up codes. Bug 813111 Change-Id: If04b77bf0c3c3118f05107db6ffeaea7a21cdfac Signed-off-by: Jin Park <jinyoungp@nvidia.com> Reviewed-on: http://git-master/r/35390 Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-17hwmon: ina219: powermon driver for TI ina219venu byravarasu
checking in hwmon driver for TI power monitor device INA219 bug 808311 Change-Id: Idc7a4d6b4fd867db5dc64dc09d6b1f847f9276f4 Reviewed-on: http://git-master/r/34293 Tested-by: Venu Byravarasu <vbyravarasu@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com>
2011-06-16Merging android-tegra-2.6.36 into git-master/linux-2.6/android-tegra-2.6.36Deepesh Gujarathi
Change-Id: I07aa6bfdbbb12f7e921f1f1be7136dae8bd8a834
2011-06-15video: tegra: dc: DC and HDMI debug info displayHeechul Yun
Following files will show information of DC and hdmi /sys/kernel/debug/tegradc.[01]/{regs,mode,stats} /sys/kernel/debug/tegra_hdmi/regs /sys/devices/nvhost/tegradc.[01]/stats_enable Bug 827295 Change-Id: I60bcf4454b9ea7d0ed73a6199595b06dbfa32cd7 Reviewed-on: http://git-master/r/32454 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-06-15mmc: revert deferred resumeDavid Schalig
Revert MMC_BLOCK_DEFERRED_RESUME feature from SD driver. The feature was not implemented thread-safe. Fixing it would require a lot of locking logic at limited value. Deferred resume has no effect on eMMC, because eMMC will be used right after resume. For SD card it only saves power between resume and first SD card access, which is a limited usecase. It does not save power on normal SD card idle. Bug 833034 Change-Id: Ic6c9d751f463ef8135d0cf4c845462598fab774c Reviewed-on: http://git-master/r/36451 Reviewed-by: David Schalig <dschalig@nvidia.com> Tested-by: David Schalig <dschalig@nvidia.com> Reviewed-by: Alex Courbot <acourbot@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-15video: tegra: dc: underflow reset is for tegra2Jon Mayo
only tegra2 needs dc underflow reset worker, disable worker if tegra2 support is disabled. bug 836677 Change-Id: I98ba440f1d93c900fa1ce7d1bfd239e3060c437a Reviewed-on: http://git-master/r/36597 Reviewed-by: Jonathan Mayo <jmayo@nvidia.com> Tested-by: Jonathan Mayo <jmayo@nvidia.com> Reviewed-by: Kevin Huang <kevinh@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2011-06-15arm: tegra: disable HDA clocks while not in useSumit Bhattacharya
Disable HDA related clocks when device is not connected to HDMI. HDA clocks will be enabled from HDMI driver when HDMI device is hot plugged. Bug 820213 Change-Id: I4e6839aab0dc5277b11c415cbb495766f72442b8 Reviewed-on: http://git-master/r/36517 Tested-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Niranjan Wartikar <nwartikar@nvidia.com> Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com>
2011-06-15video: dsi: tegra: driver power managementAnimesh Kishore
Implementation for: - syncpt for ulpm - power saving in different components of the controller - correcting syncpt sequence for BTA Bug 833709 Bug 793857 Change-Id: I60ff03c64dc46a3dd8e09e1c6d43ab8355b8b649 Reviewed-on: http://git-master/r/36142 Reviewed-by: Animesh Kishore <ankishore@nvidia.com> Tested-by: Animesh Kishore <ankishore@nvidia.com> Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
2011-06-15Merge remote branch 'common/android-2.6.36' into android-tegra-2.6.36Rebecca Schultz Zavin
2011-06-15HID: magicmouse: Don't report REL_{X,Y} for Magic TrackpadChase Douglas
With the recent switch to having the hid layer handle standard axis initialization, the Magic Trackpad now reports relative axes. This would be fine in the normal mode, but the driver puts the device in multitouch mode where no relative events are generated. Also, userspace software depends on accurate axis information for device type detection. Thus, ignoring the relative axes from the Magic Trackpad is best. Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2011-06-15HID: magicmouse: Use hid-input parsing rather than bypassing itMichael Poole
Let the HID core handle input device setup and HID-compliant reports. This driver then only has to worry about the non-standard reports. Signed-off-by: Michael Poole <mdpoole@troilus.org> Acked-by: Chase Douglas <chase.douglas@canonical.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2011-06-14nvhost: Add checks for # of GPU register sets.Terje Bergstrom
Checks from a fuse whether we have one or two register sets. - fuse.h/fuse.c: Implement tegra_register_sets() - nvhost_3dctx.c: Use tegra_register_sets() to determine number of sets to save. - dev.c: Create entry /sys/module/nvhost/parameters/register_sets to return to user space the number of sets. Change-Id: Ibd9a50cfe77a642335bd85b5814e8fdd8d2c35e6 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/29786 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-06-14mmc: fix card detect after suspendDavid Schalig
If defered SD card resume (CONFIG_MMC_BLOCK_DEFERRED_RESUME) is enabled, PM_POST_SUSPEND handler will never set host->rescan_disable back to 0, and card detect logic will be disabled forever. fix missing break fix incorrect cleanup sequences Bug 833034 See http://git-master/r/36251 (cherry picked from commit 31d509d8e2e2b7c35da69029f932d35c3995fe36) Change-Id: Ia0c7b82ac6590fa2ea05de13c32d699604718176 Reviewed-on: http://git-master/r/36447 Reviewed-by: David Schalig <dschalig@nvidia.com> Tested-by: David Schalig <dschalig@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-14crypto: tegra-aes: validate clk_get return valuesVarun Wadekar
instead of checking for NULL, IS_ERR() should be used to check the validity of a clock handle Reviewed-on: http://git-master/r/#change,35619 (cherry picked from commit cfb16f57d0a846dba4cd5d6a87c05dcb8efd188d) Change-Id: If844a166deabc7e67c9af69e4d05f59757773895 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/36218 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-14usb: gadget: introduce delay when setting address of tegra deviceAlexandre Courbot
Some windows host drivers require this small delay in order to properly detect the tegra device. This patch ensures correct detection in all cases. Workaround for bug 814907 (cherry picked from commit 53c4f00605677c8de4311586c4f75903978cbd94) Reviewed-on: http://git-master/r/35613 (cherry picked from commit 126a2fca500004a4b03ea377da000e8972efaed6) Change-Id: Iaff87cbc2fe3332f9cb27a08e1156015fc66a3c5 Reviewed-on: http://git-master/r/36211 Reviewed-by: Alex Courbot <acourbot@nvidia.com> Tested-by: Alex Courbot <acourbot@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-14Revert "usb: fsl_udc: tegra: Fix for reducing turnaround errors."Alex Frid
This reverts commit 141f664e2b5052d7fcd57c5287ae1e27db0f658b. The original commit (a) renamed con_id for shared user clock from "sclk" to "hclk" (b) increased requested clock rate Since there is no "hclk" shared bus in tegra clock tree, this effectively disabled busy hint from USB driver, and actually reduced the bus clock (instead of increasing it). Bug 821986 sated that clock effect has not been tested. Reverting it would at least restore 80MHz bus clock limit required for USB operations. Change-Id: I280340699df96c1cd21e3d8c0a65b5f89a7607b4 Reviewed-on: http://git-master/r/36200 Tested-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com>
2011-06-14sdhci: tegra: vddio rail error path initializationBitan Biswas
If set voltage vddio rail fails, vddio pointer remains as non-null. This causes error for vddio rail regulator_disable call during suspend. In error path vddio rail is reset to NULL to prevent above problem. Bug 836172 Change-Id: I48b3cb3b9792f54f2661b13b95299d8caac4e144 Reviewed-on: http://git-master/r/35621 Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Tested-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-by: Ramachandrudu Kandhala <rkandhala@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com>