summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-06-24ARM: tegra: add 504MHz entries to pll_d tableJoseph Lehrer
bug 837571 Change-Id: Ib35167cf9d6e0fd2c81304201802157ee81c44d0 Reviewed-on: http://git-master/r/37908 Reviewed-by: Joseph Lehrer <jlehrer@nvidia.com> Tested-by: Joseph Lehrer <jlehrer@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Jonathan Mayo <jmayo@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2011-06-24tegra: dc: fix compilation with lock debuggingAlexandre Courbot
Fix incorrect invocation of mutex_destroy that results in a compile error if mutex debugging features are enabled. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Change-Id: I4f5ce4406e11b94d108f0e0b09b2d4a77d902ac6 Reviewed-on: http://git-master/r/37435 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-21usb: 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 Signed-off-by: Nathan Connell <w14185@motorola.com> Reviewed-on: http://git-master/r/36311 (cherry picked from commit f4cd754c1af2bbc2101dd208fd4d3d0bf6368d26) Change-Id: I5e4a7aeaef97f0416ff8ea32e6391fe8450e4c26 Reviewed-on: http://git-master/r/37413 Reviewed-by: Manish Tuteja <mtuteja@nvidia.com> Tested-by: Manish Tuteja <mtuteja@nvidia.com>
2011-06-21video: tegra: hdcp: correct retry delay conditionPritesh Raithatha
This incorrect condition adds sleep to i2c read & write functions even though they are executed successfully. Bug 831891 Change-Id: If029b16c724516e96bf75458c60ca6b411ab5a96 Reviewed-on: http://git-master/r/37463 Reviewed-on: http://git-master/r/37472 Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com> Tested-by: Pritesh Raithatha <praithatha@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-21usb: 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 Signed-off-by: Benoit Goby <benoit@android.com> Reviewed-on: http://git-master/r/36145 (cherry picked from commit 1ffaaac2463f94ad1056abfa345f6e50249ec1c4) Change-Id: Iee7f29ad5ec409fa563742c505b448f5cbdf3c81 Reviewed-on: http://git-master/r/37412 Tested-by: Cho-Che Cheng <jacheng@nvidia.com> Reviewed-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-21usb: 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 Signed-off-by: Benoit Goby <benoit@android.com> Reviewed-on: http://git-master/r/36144 (cherry picked from commit bce8ee9ee177c2c4af21f3275b6472e68a13850e) Change-Id: I08b7485f68e4e9a1e91c37e35a65d037a4e30879 Reviewed-on: http://git-master/r/37411 Tested-by: Cho-Che Cheng <jacheng@nvidia.com> Reviewed-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-21ARM: 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: I6cc977545aee1bec1c91e4085cc2b3b55acccdb5 Reviewed-on: http://git-master/r/37410 Tested-by: Cho-Che Cheng <jacheng@nvidia.com> Reviewed-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-21ASOC: alsa: Add WM8753 voice call routing supportSumit Bhattacharya
Adding two new dai-links to WM8753 soc layer for voice call and BT voice call. Voice-call dai-link will link between WM8753 voice codec and generic BT codec interface while BT voice-call dai-link will link generic BT codec interface and generic BB codec interface. Also adding error checks in tegra_pcm to handle pcm device related operations on a dummy cpu-dai. Bug 814490 Change-Id: I047171af18432d5932e7e1919d73ac3d483d8f80 Reviewed-on: http://git-master/r/37395 Tested-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com>
2011-06-20ARM: 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 Change-Id: I2ae26cd707b0b1c6bc7c8507a67b1c9411b22709 Reviewed-on: http://git-master/r/36878 Tested-by: Manoj Gangwal <mgangwal@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-17tegra: dc: set HDMI clock to 0 if HDMI unpluggedtegra-10.11.10Xin 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: I5b455a7a945d4834fb162b2986639df5a26b112c Reviewed-on: http://git-master/r/37176 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Prashant Gaikwad <pgaikwad@nvidia.com>
2011-06-16usb: gadget: f_mass_storage: Make us pass USBCV MSC Compliance testsRakesh Bodla
Defer the SET_CONFIG and SET_INTERFACE control transfer's data/status stages till we are ready to process new CBW from the host. This way we ensure that we don't loose any CBW during MSC compliance tests and cause lock up. (cherry picked from commit 95ed32366748e2034e82c9e738c312df8fb3d3a9) Change-Id: Ib8c7140d11f558c969802558476ff6013aae3269 Reviewed-on: http://git-master/r/36275 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2011-06-16mmc: 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 http://git-master/r/#change,36254 (cherry picked from commit a8b6bb5de9b9645ecdabc3e954f04898e45e9038) Change-Id: Ie28fa42e28ab98d8bffef7e48591cbec98af5fe2 Reviewed-on: http://git-master/r/36430 Reviewed-by: Yuhao Ding <yding@nvidia.com> Tested-by: Yuhao Ding <yding@nvidia.com>
2011-06-16mmc: 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 http://git-master/r/#change,36251 (cherry picked from commit 31d509d8e2e2b7c35da69029f932d35c3995fe36) Change-Id: I3e513359af68e92476d693f4d1751b4b0d883569 Reviewed-on: http://git-master/r/36429 Reviewed-by: David Schalig <dschalig@nvidia.com> Tested-by: David Schalig <dschalig@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-16ARM: tegra: confiure AHBDMA gizmo setting.Jay Cheng
Bug 820602 Reviewed-on: http://git-master/r/35954 (cherry picked from commit 2d6cac283c1121b9a90b742b5dcf80141422eac6) Change-Id: I6149c878061bace0c191a0d45ddd7e5b8ffce4cd Reviewed-on: http://git-master/r/36683 Tested-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-16ARM: tegra: pm: save/restore ahb bus registersJay Cheng
Bug 814896, 820602 Reviewed-on: http://git-master/r/35948 (cherry picked from commit 4b9158b73bd5b5ae9b1059d31e062362d4732064) Change-Id: I2ac442aa45eb11b47a97320524f7b82d9f2296d7 Reviewed-on: http://git-master/r/36675 Tested-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-16usb: gadget: composite: Allow function drivers to pause control transfersRakesh Bodla
Some USB function drivers (e.g. f_mass_storage.c) need to delay or defer the data/status stages of standard control requests like SET_CONFIGURATION or SET_INTERFACE till they are done with their bookkeeping and are actually ready for accepting new commands to their interface. They can now achieve this functionality by returning USB_GADGET_DELAYED_STATUS in their setup handlers (e.g. set_alt()). The composite framework will then defer completion of the control transfer by not completing the data/status stages. This ensures that the host does not send new packets to the interface till the function driver is ready to take them. When the function driver that requested for USB_GADGET_DELAYED_STATUS is done with its bookkeeping, it should signal the composite framework to continue with the data/status stages of the control transfer. It can do so by invoking the new API usb_composite_setup_continue(). This is where the control transfer's data/status stages are completed and host can initiate new transfers. The DELAYED_STATUS mechanism is currently only supported if the expected data phase is 0 bytes (i.e. w_length == 0). Since SET_CONFIGURATION and SET_INTERFACE are the only cases that will use this mechanism, this is not a limitation. (cherry picked from commit 1b9ba000177ee47bcc5b44c7c34e48e735f5f9b1) Change-Id: I4aaf702e03898573f92e58223a29eafbc9612219 Reviewed-on: http://git-master/r/36273 Tested-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
2011-06-16usb: gadget: f_mass_storage: Fix Bulk-only RESET handlingRakesh Bodla
The ep0 request tag was not recorded thus resulting in phase problems while sending status/response in handle_execption() handler. This was resulting in MSC compliance test failures with USBCV tool. With this patch, the Bulk-Only Mass storage RESET request is handled correctly and the MSC compliance tests pass. (cherry picked from commit 73ee4da994e7b97bd8241e39099cf3dd94675d79) Change-Id: Ia5beffe1e38b518b63b80dda36faf06b86f7a6cb Reviewed-on: http://git-master/r/36274 Tested-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
2011-06-16drivers: 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: I98ac26ca8951bb9f32dcff06e096d1ac9c9e3788 Reviewed-on: http://git-master/r/36755 Reviewed-by: Rahul Bansal <rbansal@nvidia.com> Tested-by: Rahul Bansal <rbansal@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-15ARM: 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 statmon so that busy hints from AVP can be handled. Bug 831892 Change-Id: Ieaa43525d7582810095a2200486019ae9b4a7553 Reviewed-on: http://git-master/r/36057 Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com> Tested-by: Prashant Gaikwad <pgaikwad@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-15media: 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 Change-Id: Ib540cc1de4f2e05f335d89fa145f984a581762d6 Reviewed-on: http://git-master/r/36064 Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com> Tested-by: Prashant Gaikwad <pgaikwad@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-15ARM: defconfig: Enable H/W stat mon for whistlerPrashant Gaikwad
Bug 831892 Change-Id: I861df5881bb7f861aeb3986b70df2f6268bab98c Reviewed-on: http://git-master/r/36107 Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com> Tested-by: Prashant Gaikwad <pgaikwad@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-15ARM: 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 the support for AVP statistics gathering and controlling avp clock during video playback. Bug 831892 Change-Id: Ia1797307a5cd2f5f7d2eec7133a8a058070d5aff Reviewed-on: http://git-master/r/35647 Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com> Tested-by: Prashant Gaikwad <pgaikwad@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-15media: 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: Ia45efe1d5f2c48d8d372a2442a614d52f1a766c0 Reviewed-on: http://git-master/r/33083 Reviewed-on: http://git-master/r/35357 Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-14video: 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: I4e0105b1bc5815b223810d23ca8595747e541ee6 Reviewed-on: http://git-master/r/36417 Tested-by: Seongho Joo <sjoo@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@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: Icc85b09ae5cf5ab97839ae8625224ea2b163adb4 Reviewed-on: http://git-master/r/33112 Reviewed-on: http://git-master/r/36235 Reviewed-by: Min-wuk Lee <mlee@nvidia.com> Tested-by: Min-wuk Lee <mlee@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Hyong Bin Kim <hyongbink@nvidia.com>
2011-06-14ASOC: tegra: Correct DAPM routes for Headset and Int micViraj Karandikar
Split Headset to Headset Out and Headset In Use IN1L for Int mic and Headset (for WM8903) Remove unused variables and warning Bug 816278 Bug 830213 Bug:836150 Reviewed-on: http://git-master/r/30142 (cherry picked from commit 170ccc20d6227faaf196a920e7812792c305e2ff) Change-Id: I97a149df932c07b365eb21502be7e386c94e1c06 Reviewed-on: http://git-master/r/36077 Tested-by: Sanjay Singh Chauhan <schauhan@nvidia.com> Reviewed-by: Viraj Karandikar <vkarandikar@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com>
2011-06-09arm: tegra: whistler: add hdmi to earlysuspendGaurav Sarode
use FB_BLANK_POWERDOWN on hdmi device in earlysuspend to cause tegra_dc_disable. Fixes bug 835171 Change-Id: Idd0f92e86f4f38e97f93e5806631bc4995c92d1c Reviewed-on: http://git-master/r/35662 Tested-by: Prashant Gaikwad <pgaikwad@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-06-09usb: 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) Change-Id: Ib950c39bc6f28e28793ef655e0bb9e04ebb39942 Reviewed-on: http://git-master/r/35613 Reviewed-by: Alex Courbot <acourbot@nvidia.com> Tested-by: Alex Courbot <acourbot@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-05-31USB: gadget: f_accessory: Set bNumEndpoints to correct value of 2tegra-11.2.7Mike Lockwood
Signed-off-by: Mike Lockwood <lockwood@android.com> (cherry picked from commit 663abba4c6d83e798d1479298130f34a28dacd8b) Change-Id: I5d1b01fa6e8856c929d13abfa38db732115e9ddc Reviewed-on: http://git-master/r/32892 Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com> Tested-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-05-31USB: gadget: f_accessory: Add string for accessory's unique serial numberMike Lockwood
Signed-off-by: Mike Lockwood <lockwood@android.com> (cherry picked from commit 99b7fdff26bdaa2dbdecd45db18834f9d7447632) Change-Id: Ic4e663abf1a3c6d0ea21983f5e2171a34c0e6641 Reviewed-on: http://git-master/r/32891 Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com> Tested-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-05-31USB: gadget: f_accessory: Clear disconnected flag when driver file is openedMike Lockwood
Fixes a race condition that can occur when entering accessory mode. Signed-off-by: Mike Lockwood <lockwood@android.com> (cherry picked from commit 2fc14f8dab1032958d2522576607f4a92abc3e3d) Change-Id: I3918f9351a7725783df7e7726d53fdbc0aff5b6c Reviewed-on: http://git-master/r/32890 Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com> Tested-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-05-31USB: gadget: f_accessory: Clear previous strings on ACCESSORY_GET_PROTOCOLMike Lockwood
Clearing strings on disconnect does not work since we may receive a disconnect on some devices when transitioning into accessory mode. We require an accessory to send ACCESSORY_GET_PROTOCOL before sending any strings, so any strings from a previous session will be cleared. Signed-off-by: Mike Lockwood <lockwood@android.com> (cherry picked from commit 30e18b848c25d4a90e3b6282cd32e19a2f0cd4dc) Change-Id: I4c7575508fba294cfe1ce86148ed6c09f98cc03c Reviewed-on: http://git-master/r/32889 Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com> Tested-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-05-31USB: gadget: f_accessory: Clear accessory strings when USB is disconnectedMike Lockwood
Signed-off-by: Mike Lockwood <lockwood@android.com> (cherry picked from commit 6c778587651da91039ad09dea4a93988f1736843) Change-Id: Ib5acd2ced156417b97d956e5baa11e801e14a491 Reviewed-on: http://git-master/r/32888 Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com> Tested-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-05-31USB: gadget: f_accessory: Misc improvements and cleanup:Mike Lockwood
- Add URI string - Replace type string with a description string - Add a control call to retrieve accessory protocol version (currently 1) - Driver read() and write() calls now fail after USB disconnect until driver file is closed and reopened. - Misc cleanup work Signed-off-by: Mike Lockwood <lockwood@android.com> (cherry picked from commit 5dcd55b2e98ffdaf54a5cdd67a3101e1e5dd3aa1) Change-Id: I5b45ee76d5f83b626555e42d34f450db9b69f47b Reviewed-on: http://git-master/r/32887 Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com> Tested-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-05-31USB: gadget: f_accessory: New gadget driver for android USB accesoriesMike Lockwood
Signed-off-by: Mike Lockwood <lockwood@android.com> (cherry picked from commit 5826bb3c467116287087703472261f51f71ca090) Change-Id: I6d66f0e6ff137467f8656d28f1107d7478a22720 Reviewed-on: http://git-master/r/32886 Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com> Tested-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-05-27sdhci: tegra: Update card present statusPavan Kunapuli
Based on the polarity of the card detect gpio, update the card present status for sd cards to be properly detected and enumerated. Bug 831409 Change-Id: I7d0514ba61a1f418ecf2603e12fa99fb9d748dbe Reviewed-on: http://git-master/r/33124 Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com> Tested-by: Pavan Kunapuli <pkunapuli@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Joseph Lehrer <jlehrer@nvidia.com> Tested-by: Joseph Lehrer <jlehrer@nvidia.com>
2011-05-27ARM: tegra: whistler: Add cd gpio polarity to platform dataPavan Kunapuli
Passing card detect gpio polarity through platform data. This is used in sd cards insertion/removal detection. Bug 831409 Change-Id: I29c99696daf094d4f04789121ddfb681dccca12a Reviewed-on: http://git-master/r/33123 Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com> Tested-by: Pavan Kunapuli <pkunapuli@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Joseph Lehrer <jlehrer@nvidia.com> Tested-by: Joseph Lehrer <jlehrer@nvidia.com>
2011-05-27usb: phy: tegra: regulator enabled by defaultSuresh Mangipudi
Hotplug does not work if the regulator is disabled, so keep it enabled until the device wants to enter lowpower mode. Change-Id: I5a53a0fb0a7f26ba9f2674bbc65f4650948f6143 Reviewed-on: http://git-master/r/33117 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: Laxman Dewangan <ldewangan@nvidia.com>
2011-05-27serial-core: keep value of console cflag in uart_update_termiosAlexandre Courbot
uart_update_termios is called on console resume and restores the line parameters using cons->cflag before resetting it. However code in uart_resume_port does the same afterwards, applying a 0 value to the port's cflag and erasing the correct setting. This patch preserves the value of cflag in uart_update_termios to prevent this and allow the serial console to restore properly even if there is no program using it on user side. Serial code has been largely refactored upstream in the upstream kernel and faulty code apparently removed. Fixes bug 831077 Change-Id: Ia894f971d9b6bb0c6103dbca9d169dc2a2148f84 Reviewed-on: http://git-master/r/33098 Reviewed-by: Alex Courbot <acourbot@nvidia.com> Tested-by: Alex Courbot <acourbot@nvidia.com> Reviewed-by: David Schalig <dschalig@nvidia.com> Reviewed-by: Janne Hellsten <jhellsten@nvidia.com>
2011-05-27video: tegra: add support for tiled surfacesMichael I. Gold
Change-Id: I035a6cd254342fe11f074cb85439f378a7675943 Signed-off-by: Michael I. Gold <gold@nvidia.com> Reviewed-on: http://git-master/r/33038 Reviewed-by: Brian Anderson <branderson@nvidia.com>
2011-05-27video: tegra: add display inversion supportAri Hirvonen
Change-Id: I6ec62abdaf3a8ec2e59e2a533b36b280d69538e1 Signed-off-by: Ari Hirvonen <ahirvonen@nvidia.com> Reviewed-on: http://git-master/r/33037 Reviewed-by: Michael I Gold <gold@nvidia.com> Tested-by: Michael I Gold <gold@nvidia.com>
2011-05-27usb: host: tegra: hotplug delay reductionSuresh Mangipudi
PortConnectionDetect to be cleared if the usbphy clock interrupt is set. The USB plugin detection is done appropriately without missing cableconnect event. Bug 825920 Change-Id: I4400f208f405a110fff48f1fea777b472aacce62 Reviewed-on: http://git-master/r/32599 Tested-by: Alex Courbot <acourbot@nvidia.com> Reviewed-by: Alex Courbot <acourbot@nvidia.com> Reviewed-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
2011-05-27ARM: tegra: Enable AHB prefetch for USBRakesh Bodla
Enabling AHB prefetch on USB1, USB2, USB3 controllers, to improve the USB transfer throughput. Bug 820602 Change-Id: I4e9e9fa37624cc11f83effd268cdbf31c01f1df7 Reviewed-on: http://git-master/r/30475 Reviewed-by: Rakesh Bodla <rbodla@nvidia.com> Tested-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
2011-05-26Fix incorrect license.Maria Gutowski
Change-Id: I2dcdfadb44a981cccf583a156be0be093ca5feec Reviewed-on: http://git-master/r/34229 Reviewed-by: Maria Gutowski <mgutowski@nvidia.com> Tested-by: Maria Gutowski <mgutowski@nvidia.com>
2011-05-25ARM: tegra: dc: fix mutex lock in reset workerMin-wuk Lee
unlock mutex if reset worker finds the display disabled. Bug 801463 Reviewed-on: http://git-master/r/29898 (cherry picked from commit 672459efb81140b496e3749f1b1b14dcf84af74d) Change-Id: I94254fca387cddcd58166757e46422167ed9262d Reviewed-on: http://git-master/r/32758 Reviewed-by: Min-wuk Lee <mlee@nvidia.com> Tested-by: Min-wuk Lee <mlee@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
2011-05-25ARM: defconfig: enable TEGRA_MC_PROFILE by defaultBharat Nihalani
this is done so that it's easy to get the emc stats without having to enable this explicitly when one wants to get the emc stats. Change-Id: Id6039e8cb4510740182981245453128f406ee00d Reviewed-on: http://git-master/r/32171 Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-05-24sdhci: tegra: Enable SDHCI_QUIRK_BROKEN_CARD_DETECTIONSuresh Mangipudi
Enabling SDHCI_QUIRK_BROKEN_CARD_DETECTION. For non- removable cards, always set card_present as true. Bug 827470 Change-Id: I1148984e4dff314173b88373e1494379abce31f3 Reviewed-on: http://git-master/r/31990 Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com> Tested-by: Pavan Kunapuli <pkunapuli@nvidia.com> Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-05-24sdhci: Add card_detect callback in sdhci_opsPavan Kunapuli
Added card_detect callback in sdhci_ops. When SDHCI_QUIRK_BROKEN_CARD_DETECTION is enabled, get the card present status from this callback. Bug 827470 Change-Id: Ifdd9576ff4e33a4be4c32a57e2d49d692ec95f36 Reviewed-on: http://git-master/r/31987 Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com> Tested-by: Pavan Kunapuli <pkunapuli@nvidia.com> Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-05-23video: tegra: dc: removed buggy DC reset assert.Vandana Salve
Removes changes to DC reset flow introduced in commit e9f069bc2c9e0a9e3d7dfd30b66367667ab82dee. Fixes the issue of HDMI output after playing 1080p stream. bug 820455 bug 826061 Change-Id: I9c0802c4c39d4f899e948e8020a721699634d84c Reviewed-on: http://git-master/r/31959 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-05-23ARM: tegra: dc: fix h_ref_to_sync calculationJon Mayo
use smaller h_ref_to_sync values. removed old debug printks Bug 806009 (cherry picked from commit 8292b4988e6aa75c71f14cbf96dad8b5e931e681) Change-Id: Iae3e84ddd8c02be1a83f9ac255fc1152dc867f0b Reviewed-on: http://git-master/r/30585 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>