summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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>
2011-05-19tegra: video: add interface for use of tiled surfacesBrian Anderson
Change-Id: I8ee718e0d56ff8dc2f2c2e1b5215d195f317f0e2 Reviewed-on: http://git-master/r/31084 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-05-19tegra: dvfs: fix unintialized variable useDavid Schalig
Assignment moved inside if statement, where it belongs. bug 828756 Change-Id: I2ee63bed168feade897ba15b364de1ee714f1381 Reviewed-on: http://git-master/r/31955 Reviewed-by: David Schalig <dschalig@nvidia.com> Tested-by: David Schalig <dschalig@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
2011-05-19ARM: Tegra: Sh532u: Add focus motor state checkGary Zhang
Return last requested position if the motor settled or timeout occurs. Reviewed-on: http://git-master/r/27978 (cherry picked from commit edb393adc0317a097858edeb4b9f5477d164b955) Change-Id: I54572b180bf151785d55edde9060876ed0393ee3 Reviewed-on: http://git-master/r/31741 Reviewed-by: Frank Chen <frankc@nvidia.com> Tested-by: Gary Zhang <garyz@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Gary Zhang <garyz@nvidia.com>
2011-05-19tegra: dc: adding max pixclock check for hdmiDonghan Ryu
tegra_dc_hdmi_equal doesn't check pixclock. some devices doesn't support 14.85Mhz pixclock so 1080p@60 cannot be used. However, 1080p@30 is supported. Therefore, adding a max pixclock prevents 1080p@60 mode is falsely used for those devices Bug: 815409 Change-Id: Ia2d8dcf360afa51e160d0e997986fe1714254a6b Reviewed-on: http://git-master/r/31663 Reviewed-by: Donghan Ryu <dryu@nvidia.com> Tested-by: Donghan Ryu <dryu@nvidia.com> Reviewed-by: Jonathan Mayo <jmayo@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-05-19usb: host: tegra: hotplug detection of deviceSuresh Mangipudi
Add support for usb hotplug, this change will add the following: vbus is left enabled. Bug 796158 Change-Id: I3c3cfa0bf8858b3be2351fe753ceb2a0229ed15d Reviewed-on: http://git-master/r/30686 Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com> Tested-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
2011-05-18[tegra alsa] support digital mic on ventanaRavindra Lokhande
added code to support digital mic on wm8903 for ventana. By default analog mic is enabled. To enable digital mic write 1 and to disable write 0 to /sys/devices/platform/soc-audio/enable_digital_mic Change-Id: I36e239d10404a9bc8446e275e5c59e9829409608 Reviewed-on: http://git-master/r/29615 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-05-18ARM: tegra: clocks: sku limit for pclkPrashant Gaikwad
sclk max rate for AP25 is 300MHz and pclk is set as 1:2 to sclk. pclk max rate changed to 150MHz for AP25. Bug 821534 Change-Id: I6c6b30f0c9b2dd568e6171e9b6d88c8eef212ab7 Reviewed-on: http://git-master/r/31311 Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Prashant Gaikwad <pgaikwad@nvidia.com>
2011-05-18tegra: sdhci: ignore pm_notify for always-on controllersRakesh Kumar
sdhci instance used by wifi should be always on to support wake on wireless functionlity. pm_notify will power off controller on suspend/resume which is not desired for wifi instance. bug 818687 bug 780047 bug 798783 Change-Id: I572e9e1f275c306eadda85ca95234a427fad23ca Reviewed-on: http://git-master/r/30864 Reviewed-by: Rakesh Kumar <krakesh@nvidia.com> Tested-by: Rakesh Kumar <krakesh@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-05-16nvrm: move stale wait checking into the kerneltegra-11.2.6Chris Johnson
The kernel now receives wait tracking data (similar to gathers and relocs) and compares the current syncpt with the threshold value. If it's old, it gets a kernel mapping and rewrites the method data to use a kernel reserved syncpt that is always 0 (so trivially pops when seen by the HW). Bug 519650 Bug 785525 Bug 803452 Note: reset the author in this commit to fix a email addr problem and since from the latest/last cherry pick there was a reworking of the code to be compatible with different user space versions it also seemed reasonable. (cherry picked from commit 4069d8e67665624ad3dceb628e572980dd57acd0) (cherry picked from commit 6e4336408588e348804a62e53386acc9abc06823) (cherry picked from commit 87a9efe751716ca741caac72b9061fdfdcec540a) Change-Id: I9c6076da2384f373d5f402bee4406b09b4ebc4ff Reviewed-on: http://git-master/r/23159 Reviewed-on: http://git-master/r/30281 Tested-by: Chris Johnson <cwj@nvidia.com> Reviewed-by: Ken Adams <kadams@nvidia.com> Reviewed-by: Prajakta Gudadhe <pgudadhe@nvidia.com>