summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-07-06ARM: tegra: ventana: set usb2 phy typetegra-11.2.10Ken Chang
set usb2 phy type to TEGRA_USB_PHY_TYPE_LINK_ULPI bug 845612 Change-Id: I35ae7a2e3eb6e0666a1b54e5249faad4f77bd299 Reviewed-on: http://git-master/r/39603 Reviewed-by: Manish Tuteja <mtuteja@nvidia.com> Tested-by: Manish Tuteja <mtuteja@nvidia.com> Reviewed-by: ChihJen Hsu <chhsu@nvidia.com>
2011-07-06arm: tegra: usb: usb registration orderSuresh Mangipudi
Modified the usb registration order, otg is the first to be registered. Bug 835678 Change-Id: I709a944a49aa59886f906bd4184e80b35836125c Reviewed-on: http://git-master/r/39505 Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com> Tested-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com> Reviewed-by: Alex Courbot <acourbot@nvidia.com> Tested-by: Alex Courbot <acourbot@nvidia.com>
2011-07-06arm: tegra: otg: Remove host stopSuresh Mangipudi
Remove the stop host call when device is entering suspend. Need to be detect the host device even after the device exits from LP state. Bug 835678 Change-Id: Icf32c828078bb0f42237f49373af25d0c768a301 Reviewed-on: http://git-master/r/39506 Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com> Tested-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com> Reviewed-by: Alex Courbot <acourbot@nvidia.com> Tested-by: Alex Courbot <acourbot@nvidia.com>
2011-07-06usb: ehci: tegra: fix hotplug issue on usb2Ken Chang
usb hotplug is supported only for UTMI phy. usb_phy_type should be carefully checked in ehci irq. bug 845612 Change-Id: I2fdc7c79b9816dd3465353375448b07f138ff950 Reviewed-on: http://git-master/r/39338 Tested-by: Ken Chang <kenc@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Yu-Fong (Foster) Cho <ycho@nvidia.com> Reviewed-by: ChihJen Hsu <chhsu@nvidia.com>
2011-07-04media: video: update copyright headersFrank Chen
update headers for camera files bug 846086 Change-Id: I1986152a0edc184a458e5be1bc98a480b1badfd6 Reviewed-on: http://git-master/r/39141 Tested-by: Frank Chen <frankc@nvidia.com> Reviewed-by: Erik M Lilliebjerg <elilliebjerg@nvidia.com> Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
2011-06-30video: tegra: hdmi: support for edid like datasyed rafiuddin
- Added support for eld extraction from edid and support for propogation of eld to HDA. - Differentiate video/audio hotplug - Change the value sent to HDMI hotplug switch class driver so that we can get hdmi hotplug events without audio enabled based on whether the display has audio or not. bug 836548 Change-Id: I89475049df19ed36d9b77eb15f3aee2e0fdf8f71 Reviewed-on: http://git-master/r/35672 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-06-30arm: tegra: fuse: new programming sequenceVarun Wadekar
- vdd_core needs to be 1.14V min before fuse write/read - add wait_for_idle before accessing fuses - add proper programming of PRIV2INTFS field Bug 841766 Change-Id: Ie9ec27bdbc975a4e3ce40a0ce60fe7049f7c2429 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/37618 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
2011-06-30arm: tegra: dvfs: add entry for fuse_burnVarun Wadekar
Bug 841766 Change-Id: I24e7102f3c2fb17b9f2095cf12feccefbcdf8dce Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/37617 Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Andy Carman <acarman@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-30arm: tegra2: clocks: add fuse and fuse_burn clocksVarun Wadekar
keep fuse clock always enabled to allow fuse read writes from multiple clients Bug 841766 Change-Id: I01391ff88e1af5d622fe52b8fad30e2dfc02f38c Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/38402 Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-29tegra: usb: prevent crash if irq occurs while sleepingAlexandre Courbot
In some rare cases, EHCI irqs interrupts be triggered while the block is suspended. This is notably the case when unplugging a host cable to which no device is attached. In this case, the interrupt handler will be called with the block powered off, which will eventually crash. This patch workarounds this by returning from the interrupt handler immediatly if the block is not powered on. Change-Id: I7763f56f20a984e3db716306b6bf8ec223c90363 Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Reviewed-on: http://git-master/r/35604 Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
2011-06-28video: tegra: nvmap: fix GART pin lockupsKirill Artamonov
Fix GART lockups caused by fragmentation by evicting mapped areas from iovm space after unsuccessful array pinning attempt. Fix double unpin error happening during interrupted submit. Fix possible sleep in atomic context in iovmm code (semaphore inside spinlock) by replacing spinlock with mutex. Fix race between handle_unpin and pin_handle. bug 838579 bug 838073 bug 818058 bug 844307 Conflicts: drivers/video/tegra/nvmap/nvmap_mru.c Change-Id: Ie44fa88510f62ce5c7d31af3b07afdf69a3ad4a6 Reviewed-on: http://git-master/r/38430 Reviewed-by: Kirill Artamonov <kartamonov@nvidia.com> Tested-by: Kirill Artamonov <kartamonov@nvidia.com> Tested-by: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-28video: tegra: nvmap: single page allocation policy correctedKirill Artamonov
When user doesn't use default heap policy and selects GART or carveout allocation, automatic single-page-to-sysmem rule doesn't work. Because of broken rule many single page allocations take extra space in carveout and create unnecessary page mappings in GART and SMMU. The fix adds sysmem bit to heap mask when allocation is single page and GART or carveout is present in heap mask. bug 730124 bug 731923 The change also does sanity check of available system memory before adding sysmem bit for carveout allocations. bug 777839 Reviewed-on: http://git-master/r/31383 (cherry picked from commit 502c2becc54b49d26371f9b167f0c6f82a1bc37f) Bug 844307 Conflicts: drivers/video/tegra/nvmap/nvmap_handle.c Change-Id: Ia74f4aad4d12bb7d94e1abea1ef4c9db44b03cd8 Reviewed-on: http://git-master/r/38429 Reviewed-by: Kirill Artamonov <kartamonov@nvidia.com> Tested-by: Kirill Artamonov <kartamonov@nvidia.com> Reviewed-by: Janne Hellsten <jhellsten@nvidia.com> Tested-by: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-26arm: tegra: power: fix LP2 scheduling in atomictegra-11.2.9Xin Xie
disable_irq() will do schedule() if threaded IRQ handler is running. But suspend_cpu_complex() is called from IRQ disabled. disable_irq_nosync() should be used here because it will not sleep. BUG 841808 Change-Id: I5bc241e607ffb5cad34530185e308a9f9bbc6543 Reviewed-on: http://git-master/r/37505 Reviewed-on: http://git-master/r/38188 Reviewed-by: Xin Xie <xxie@nvidia.com> Tested-by: Xin Xie <xxie@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-26tegra: host: fix the compare statement.Jubeom Kim
Change-Id: I8af3d087b361b91c17ed7a8035670f7041f5544b Reviewed-on: http://git-master/r/37983 Tested-by: Jubeom Kim <jubeomk@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-26spi: tegra: fix uninitialized values and if statementJubeom Kim
- Initialized the read_words value. - (tspi->irq < 0) is not valid because tspi->irq is unsigned value. Change-Id: I37973c863ecc770b9744737faf5d69cce7b97400 Reviewed-on: http://git-master/r/37868 Tested-by: Jubeom Kim <jubeomk@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-26rtc : tps6586x: move NULL checking to the front.Jubeom Kim
Change-Id: Ic46e7f16fdd90db6dc8d7c1e723f10c5d928f382 Reviewed-on: http://git-master/r/37866 Tested-by: Jubeom Kim <jubeomk@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-24media: 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 Change-Id: I92cbbf232ee30179480270f41caf13611c101157 Reviewed-on: http://git-master/r/36439 Tested-by: Jubeom Kim <jubeomk@nvidia.com> Reviewed-by: Donghan Ryu <dryu@nvidia.com> Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-24media: video: tegra: avp: add kfree to error routine.Jubeom Kim
Needs kfree function when error occurs. Change-Id: Ie12fb975459e33c76c0b44d173be4ba2e0da1536 Reviewed-on: http://git-master/r/37859 Tested-by: Jubeom Kim <jubeomk@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-24tegra_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 Change-Id: I4eb58b6793ee1ca39664439e5f6aed334e16aa87 Reviewed-on: http://git-master/r/37862 Tested-by: Jubeom Kim <jubeomk@nvidia.com> Reviewed-by: Stephen Holmes <sholmes@nvidia.com>
2011-06-24video: tegra: fix the free sequence in tegra_fb_register.Jubeom Kim
Fix err_delete_wq and err_put_client of error handling. Change-Id: Ibc86b018172db3df4eca12b5fdd01763679486d0 Reviewed-on: http://git-master/r/37870 Tested-by: Jubeom Kim <jubeomk@nvidia.com> Reviewed-by: Donghan Ryu <dryu@nvidia.com> Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
2011-06-24crypto: tegra-aes: replace dev_err and add NULL checkingJubeom Kim
Changed dev_err to pr_err because 'dd' can be NULL. Added NULL checking before clock disable of engine->pclk Change-Id: Ib631ec0b5411d00c0646bc641053e27b2f064480 Reviewed-on: http://git-master/r/37857 Tested-by: Jubeom Kim <jubeomk@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
2011-06-22ARM: tegra: Enable cdev1 clk from board fileSumit Bhattacharya
Enabling cdev1 clk or DAP Mclk from board file instead of codec soc file because Mclk needs to be enabled before codec initialization. Also exposing set_parent() for cdev clocks so that it is possible to enable them from board file. Bug 827709 Bug 839210 Bug 821178 Change-Id: I6e0e15be9f9a2da98ce2ba89e3390bef1e2b93a7 Reviewed-on: http://git-master/r/37631 Tested-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com>
2011-06-21video: tegra: Do not set HDMI as a wakeup sourceSanjay Singh Rawat
HDMI connect/disconnect will not affect the suspended device. bug 835157 Change-Id: Ie4bf55ba556819e17c3738f76ba853f29f5b90cd Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-on: http://git-master/r/37174 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2011-06-21tegra: usb: fix ehci suspend in host modeAlexandre Courbot
When suspend is called and usb1 is in host mode, tegra_hci_remove is invoked to remove the device. However, at this time it is likely that runtime PM will have powered off usb1. This patch ensures usb1 is powered on if necessary within tegra_hci_remove so that ehci controller registers can be manipulated. Bug 835677. Change-Id: Ida9585ecb4fcc9a88786131a1b629905efd1a07a Reviewed-on: http://git-master/r/35592 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2011-06-21ARM: tegra: Fixed the wrong 'if' statement.Jubeom Kim
Removed the semicolon after 'if'. Change-Id: I91df7b367633e269116110b3469c1efcb2589a95 Reviewed-on: http://git-master/r/37459 Tested-by: Jubeom Kim <jubeomk@nvidia.com> Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
2011-06-20tegra: dc: set HDMI clock to 0 if HDMI unpluggedXin Xie
HDMI clock is not auto dvfs, so we need set the clock rate to 0 if HDMI is disabled. Otherwise the Vdd core voltage will be always 1.2v even after HDMI cable unplugged. BUG 828306 Reviewed-on: http://git-master/r/34379 (cherry picked from commit 58ddd144a6c2dd9bbc9d2f3c8b1e025364d88c22) Change-Id: Ie4a7ba9dfc765ca3a9e4c443112364230338896c Reviewed-on: http://git-master/r/37180 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2011-06-17video: tegra: nvmap: free vm_struct in nvmap_munmap()Kenji Chen
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: I90c9cd58ae40661188cf6d00475a8ad490374184 Reviewed-on: http://git-master/r/35630 Tested-by: Kai Chih (Kenji) Chen <kenjchen@nvidia.com> Reviewed-by: Yu-Fong (Foster) Cho <ycho@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-17video: tegra: dc: fix hdmi mode filterDonghan Ryu
If there are more than one hdmi modes that have same xres, yres, and vmode, tegra_dc_hdmi_mode_equal can return true even though pixclocks are way different from each other. Now, tegra_dc_hdmi_mode_equal will retun false if pixclock has more than 1Hz of difference. Also, tegra_fb_set_par will use fb_find_nearest_mode instead of fb_find_best_mode to take refresh rate into the consideration. Bug: 815409 Change-Id: I2dd911fa337b91933f68801b636cbcc7ad6f8fea Reviewed-on: http://git-master/r/36464 Reviewed-by: Donghan Ryu <dryu@nvidia.com> Tested-by: Donghan Ryu <dryu@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
2011-06-17fbdev: Fix fb_find_nearest_mode refresh comparisonDonghan Ryu
Refresh rate nearness is not calculated or reset when nearest resolution changes. This patch resets the refresh rate differential measurement whenever a new nearest resolution is discovered. This fixes two error cases; first, wherein the first mode's refresh rate differential is never calculated and second, when the closest refresh rate from a previous nearest resolution is erroneously preserved. back-ported from kernel.org Change-Id: I9f1062153efbc546d4c97d627032f6ef48992387 Reviewed-on: http://git-master/r/36662 Reviewed-by: Donghan Ryu <dryu@nvidia.com> Tested-by: Donghan Ryu <dryu@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-16video: tegra: dc: fix ksv_list query sequence and timeout handlingPeter Zu
- remove delay on i2c r/w success to fix hdcp test case 1b-03 failure - do not turn on hdcp crypt before verifying repeater bug 829599 (cherry picked from commit 44aa4eac6285e1b95865cc79b345999b1d3eab55) Change-Id: I51ac55bf619821aa7af948799330ee11661bb6b7 Reviewed-on: http://git-master/r/36639 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2011-06-16video: tegra: remove 1080p@30HZ define from kernelDonghan Ryu
CONFIG_TEGRA_ENABLE_SUPPORT_FOR_1080p_30HZ define is not needed anymore since this can be filtered from user space driver Bug: 815409 Change-Id: I3fd37d2c3e737aaa056aea2af7b41ac5b93b9807 Reviewed-on: http://git-master/r/36435 Reviewed-by: Michael I Gold <gold@nvidia.com> Reviewed-by: Jonathan Mayo <jmayo@nvidia.com> Reviewed-by: Donghan Ryu <dryu@nvidia.com> Tested-by: Donghan Ryu <dryu@nvidia.com>
2011-06-15video: 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/#change,35449 Change-Id: I9f1eb721cbbe91b4e9c10cc8aa64f335be111651 Reviewed-on: http://git-master/r/36215 Reviewed-by: Donghan Ryu <dryu@nvidia.com> Reviewed-by: Jonathan Mayo <jmayo@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Seongho Joo <sjoo@nvidia.com>
2011-06-14usb: ehci: tegra: Correctly handle GetPortStatus during ResumeNathan Connell
Multiple GetPortStatus requests can be made while the USB bus is resuming. All requests must be handled properly to prevent incorrect disconnect detection during Resume and improper indentification of Resume signaling as a remote wakeup event. Bug 817128 (cherry-pick from 789333436de3878b2ea878d4c2c030af7ed481ce) Change-Id: If1a01a5883051290bdaf09537f737e5797209936 Signed-off-by: Nathan Connell <w14185@motorola.com> Reviewed-on: http://git-master/r/36311 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2011-06-14mmc: tegra: disable broken deferred resumeDavid Schalig
MMC_BLOCK_DEFERRED_RESUME causes race conditions in the SD/MMC driver, i.e. mmc_sd_detect() will be called from different threads causing inconsistent state. Disabling feature for Tegra. Bug 833034 Change-Id: I516272a5a0af44ba27122cc0c6476512cf5b617d Reviewed-on: http://git-master/r/36254 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@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 Change-Id: I91c8f657ee510f25180dc733d6106697d0e4498f Reviewed-on: http://git-master/r/36251 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2011-06-14tegra: dc: fix dc hang during dc resetMin-wuk Lee
1. fix dc hang during dc reset 2. do dc reset after dc clk enabling in reset worker function 3. remove a few build warnings Bug 801463 Change-Id: Idc94263084e8a3f83694b30efe09e563ffe64068 Reviewed-on: http://git-master/r/33112 Reviewed-on: http://git-master/r/36231 Reviewed-by: Min-wuk Lee <mlee@nvidia.com> Tested-by: Min-wuk Lee <mlee@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-14ARM: 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 Change-Id: I5ab066d8535cf719b5ed830293a883609180b525 Reviewed-on: http://git-master/r/36157 Tested-by: Cho-Che Cheng <jacheng@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
2011-06-14usb: host: tegra: Fix a possible int storm on resume from lp0Benoit Goby
usbcore will reenable usb interrupts later once the bus has been resumed. bug 835193 Change-Id: Idf36d34f2f08c469246e7329b088529f3d805b7d Signed-off-by: Benoit Goby <benoit@android.com> Reviewed-on: http://git-master/r/36145 Tested-by: Cho-Che Cheng <jacheng@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
2011-06-14usb: ehci: tegra: Don't change the hcd state on restartBenoit Goby
usbcore will change it once the bus has been resumed. This fixes the "hub 3-0:1.0: activate --> -22" error on resume. bug 835193 Change-Id: I766ee27320a6cfa7cf8d937e3dbeb522a3fd19bd Signed-off-by: Benoit Goby <benoit@android.com> Reviewed-on: http://git-master/r/36144 Tested-by: Cho-Che Cheng <jacheng@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
2011-06-14ARM: tegra: confiure AHBDMA gizmo setting.Jay Cheng
Bug 820602 Change-Id: I6a5f116cc3c32f58a7404de24a073ddaf2c79227 Reviewed-on: http://git-master/r/35954 Tested-by: Cho-Che Cheng <jacheng@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-14media: 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: I21876a4d2a8d729def9f43a0f8879e1de3e84dde Reviewed-on: http://git-master/r/33083 Reviewed-on: http://git-master/r/35355 Tested-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-13crypto: tegra-aes: code refactorVarun Wadekar
- reset intr_status if error occur while encrypt/decrypt - rename iram variables to _phys and _virt - use bsea for rng - remove unwanted macros from the header file Bug 833165 Bug 778258 Reviewed-on: http://git-master/r/#change,34552 (cherry picked from commit 4f2f0431fe196829c8ec61ab10ed5cb2ea6b5038) Change-Id: I5b117313fe15cf1d4973d97353220f1855b82333 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/35830 Reviewed-by: Yuhao Ding <yding@nvidia.com> Tested-by: Yuhao Ding <yding@nvidia.com>
2011-06-13ARM: tegra: pm: save/restore ahb bus registersJay Cheng
Bug 814896, 820602 Change-Id: Ief590e49f995dd1da6502707ac329057a12f4f17 Reviewed-on: http://git-master/r/35948 Tested-by: Cho-Che Cheng <jacheng@nvidia.com> Tested-by: Gerrit_Virtual_Submit Reviewed-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-13arm: tegra: fuse: fix multiple issuesVarun Wadekar
- handle scenarios when the number of fuses burnt is a odd number - wait for the fuse bock to be idle before issuing any command - burning of master_enb fuse is not required to be done according to the guidelines Bug 823552 Change-Id: I04477dcfae610aed3e2072adfc48ebd7212449ad Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/35883 Reviewed-by: Andy Carman <acarman@nvidia.com> Tested-by: Andy Carman <acarman@nvidia.com> Reviewed-by: Venkata (Muni) Anda <vanda@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-13arm: tegra: ventana: add hdmi to earlysuspendGaurav Sarode
use FB_BLANK_POWERDOWN on hdmi device in earlysuspend to cause tegra_dc_disable. Fixes bug 835171 Change-Id: I112d05f271b9d12319186ff1b9bd2d0e0667a75e Reviewed-on: http://git-master/r/35412 Tested-by: Gaurav Sarode <gsarode@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-13usb: 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 Change-Id: I3ff294f9cbe3660964b9bd227c233f4e20115e80 Reviewed-on: http://git-master/r/35352 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: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
2011-06-10ventana: camera: Added regulator supply for d-mictegra-11.2.8Viraj Karandikar
Added regulator vmic to use in soc-audio Reviewed-on: http://git-master/r/33110 (cherry picked from commit 1b5f6d90219d6e3beeaeb2ec286949bc838d9bc4) Change-Id: Iba33f5bf2bc5243ff13995005d1c182f6d120d55 Reviewed-on: http://git-master/r/35375 Tested-by: Viraj Karandikar <vkarandikar@nvidia.com> Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2011-06-10ASOC: tegra: Enable/disable regulator vmic when recording with d-micViraj Karandikar
Support recording with d-mic in audio only use case Reviewed-on: http://git-master/r/34551 (cherry picked from commit 58ff88e8ef9b805381a1bef40be276224a43e175) Change-Id: Iea9b509b805542f5089fb3399d7796d23d9270e5 Reviewed-on: http://git-master/r/35376 Tested-by: Viraj Karandikar <vkarandikar@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com>
2011-06-10crypto: 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 Change-Id: Ic0ef30c64f4bd95995dcde048cd7630e2d75cd92 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/35619 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-10arm: tegra: ventana: ldo4 must never be disabledVarun Wadekar
disabling ldo4 kills power to the board completely. there is no way to power on the board again, other than reinserting the power plug. Change-Id: I1e03389cf26ad8de7a5d5fb518f85fa6c9427752 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/35620 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>