summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2013-06-12power: max77665-charger: config OC current from board fileXin Xie
Currently we hard wired the OC current to 3.25A on MAX77665. But different board could use different setting, or do not use MAX77665 to generate OC alert. This patch use the board file to config OC current. bug 1298931 Change-Id: I87872b6c7bc052efec680683dee6cde571359d84 Signed-off-by: Xin Xie <xxie@nvidia.com> Reviewed-on: http://git-master/r/237769 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2013-06-12arm: tegra: pluto: enable INA230/INA231/HPA01112 current sensingXin Xie
Note: HPA01112, INA230 and INA231 are similar devices and using the same driver. This patch will set correct calibration for the INA230 on Pluto platform based on the battery in-serial resistor value and max battery current. After this patch will can read back battery current and power correctly using the INA230. This patch also leave comment on how to enable the over-current(OC) throttling using the INA230 device. It is not enabled on the Pluto platform currently because MAX77665 is used for the OC throttling. bug 1298931 Change-Id: I37f40e0d3a9ca14314af4f7ee5a5007c5665581f Signed-off-by: Xin Xie <xxie@nvidia.com> Reviewed-on: http://git-master/r/235214 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2013-06-12media: video: tegra: fuse id supportPhil Breczinski
Adds support to read fuse ID from OTP memory on ov2710, ov9726, ov9772, ar0832, and imx091 sensors. Also includes macro-enabled fuse ID programming for ov2710. Adjusts data structure used by fuse ID ioctl to include a field for fuse ID size. Required by nvcamera version 1.8.0 Required by NVCS version 4.10.0 Bug 1198663 Change-Id: Ib3bb0e100e49aea2c6ce13cd069862476d7f4bb6 Signed-off-by: Phil Breczinski <pbreczinski@nvidia.com> Reviewed-on: http://git-master/r/169187 (cherry picked from commit 0ce57617ee1f735759333a589aa2890559053fe0) Reviewed-on: http://git-master/r/232254 Reviewed-by: Brian Bamsch <bbamsch@nvidia.com> Tested-by: Brian Bamsch <bbamsch@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Jon Mayo <jmayo@nvidia.com>
2013-06-11ARM: tegra: USB: Dynamic host load supportKrishna Yarlagadda
Enable platform data to load xhci dynamically when otg cable is connected Bug 1242148 Change-Id: I586f035ceedf49fb321242e7ac2e272620315d7a Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com> Reviewed-on: http://git-master/r/234145 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2013-06-11media: tegra: ad5823: add setting from cal dataJake Park
Added the capability to set pos_high/pos_low from the per unit calibration data for VCM. Bug 1271714 Bug 1270541 Bug 1264961 Change-Id: If459308459523918be153df809f8890b379a797c Signed-off-by: Jake Park <jakep@nvidia.com> Reviewed-on: http://git-master/r/232852 (cherry picked from commit 2c86c26fd86d913980503bd860de4fcfb9b84c73) Reviewed-on: http://git-master/r/222636 Reviewed-by: Riham Haidar <rhaidar@nvidia.com> Tested-by: Riham Haidar <rhaidar@nvidia.com>
2013-06-11input: misc: fix sysfs permissionsErik Lilliebjerg
- Fix sysfs permissions. - Fix raw accelerometer access. - Fix autodetection behind MPU. - Add self-test. Bug 1224709 Bug 1243584 Bug 1291044 Bug 1295651 Bug 1290313 Bug 1298831 Change-Id: I55847fd158abdb9f12dc830218619c6ed7913396 Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com> Reviewed-on: http://git-master/r/236327 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Robert Collins <rcollins@nvidia.com> Tested-by: Robert Collins <rcollins@nvidia.com> Reviewed-by: Jon Mayo <jmayo@nvidia.com>
2013-06-10ARM: dma-mapping: Add new API dma_ops->map_pages()Hiroshi Doyu
Add new API dma_ops->map_pages() for performance bug 1286500 Change-Id: Ib8bbcad53024225173be765358af03d0961f8af0 (cherry picked from commit 1e3b6ee46a5defaa8e1fcc97fc5d9b619c481c41) Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com> Reviewed-on: http://git-master/r/234137 Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
2013-06-10iommu/core: Add new API iommu_map_pages()Hiroshi Doyu
Add new API iommu_map_pages() to call iommu_ops->map_pages() internally. bug 1286500 Change-Id: I37605703def34bba774e480b29506c459d6391bd (cherry picked from commit 11ed57ffcbd908e12c1fd836211beed4fc577833) Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com> Reviewed-on: http://git-master/r/234131 Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
2013-06-06Merge branch 'dev_17' into 'rel_17' Set 3Gary Fitzer
video: tegra: dw9718: enable auto-detect support Bug 1250073. Change-Id: Iabbf3d13e07ce053a74a8b6ff9dca610dfc6e55a Signed-off-by: Gary Fitzer <gfitzer@nvidia.com> media: video: tegra: imx135 flash support enable imx135 on-sensor flash strobe. bug 1277452 Change-Id: I9fb1bc50567d2f2c2e911420104b8350711022d4 Signed-off-by: Charlie Huang <chahuang@nvidia.com> media: video: tegra: max77387: add flash device it is used with imx135 camera sensor. bug 1277452 Change-Id: I94eb413b0594b1abc70d9c9d62114782708678df Signed-off-by: Charlie Huang <chahuang@nvidia.com> media: tegra: dw9718: Fix dw9718 settle time Fix focuser settle time Change-Id: Idab65b6800137d55d04842ff04d721b7847366de Reviewed-on: http://git-master/r/218461 (cherry picked from commit 10b6451fa99afdcfe947df2366116fccac1591cb) Signed-off-by: Michael Lin <mlin@nvidia.com> arm: tegra11: config: enable OV5693 and AD5823 Bug 1250073. Change-Id: Ic8714f22925ab9e6d76c944c33a8fe0d45c5015e Signed-off-by: Gary Fitzer <gfitzer@nvidia.com> arm: tegra: add autodetect imaging sensors Add autodetect check for IMX135, AR0833, and OV5693 Change-Id: I05638424067be1496d0f70e8ee900b721b34bf0e Signed-off-by: Gary Fitzer <gfitzer@nvidia.com> arm: tegra: Add imx132 sensor support for Dalmore The new E1812 camera board for Dalmore has IMX135 and IMX132 sensors. Bug 1250073 Change-Id: Id8691bc219d1bd13b12c4ad49725ed3b706f1f61 Signed-off-by: Frank Chen <frankc@nvidia.com> ARM: tegra: dalmore: update imx135 on sensor flash enable imx135 on sensor flash function. setup max77387 which is used with imx135. bug 1277452 Change-Id: I4e5fea14defbd84f25fac238001e528d5b24dfca Signed-off-by: Charlie Huang <chahuang@nvidia.com> ARM: dalmore: sensor specific focuser settings imx091/imx135 modules use the same vcm driver ad5816 but their actuarator's charactoristics are different. overwrite focuser setting in the ad5816 focuser detect function if the sensor detected is imx135. update dw9718 focuser range. bug 1272352 Change-Id: I8dd7ccc97533e1dd47c341b1aa8660d86fe52baa Signed-off-by: Charlie Huang <chahuang@nvidia.com> video: tegra: ad5816: enable auto-detect support Bug 1250073. Change-Id: I1c30757d0570e9e4d51f3326d2c0fe233f8cf046 Signed-off-by: Gary Fitzer <gfitzer@nvidia.com> (cherry picked from commit c3a21f51fc6c5a9935f8e52aa3149ddb0de66ac6) media: video: tegra: ad5816: customise setting different sensor modules have specific focuser settings like actuator resonance frequency and optimal arc mode. the settings should be carried in the sensor board file. bug 1272352 Change-Id: I6bb086faaf3ccfb62ed2a900befe755010dde0d1 Signed-off-by: Charlie Huang <chahuang@nvidia.com> (cherry picked from commit 52ac0ee51a8fe80379b4c07d21198c1cfc0c80c9) Signed-off-by: Frank Chen <frankc@nvidia.com> ARM: configs: tegra11: defconfig: enable max77387 bug 1277452 Change-Id: I220cddcd7cc856b0906d089a7a5a6e384391ea10 Signed-off-by: Charlie Huang <chahuang@nvidia.com> Signed-off-by: Frank Chen <frankc@nvidia.com>
2013-06-05backlight: pwm_bl: Add support for EDPHayden Du
Added EDP support for pwm backlight bug 1299129 Change-Id: I0164a1b5c79dad36651641720aca0a8b0f715c4c Signed-off-by: Hayden Du <haydend@nvidia.com> Reviewed-on: http://git-master/r/234977 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User
2013-06-04input: maxim: touch: update to v1.2.0David Jung
Maxim Integrated code drop for v1.2.0 which includes eraser functionality Bug 1279288 Change-Id: I3f1aac26c9bed0e74b905e0909a0444f3d373f66 Signed-off-by: David Jung <djung@nvidia.com> Reviewed-on: http://git-master/r/231726 Reviewed-by: Harshada Kale <hkale@nvidia.com> Tested-by: Harshada Kale <hkale@nvidia.com>
2013-06-03power: max17048-battery: remove AC/USB power supply notificationLaxman Dewangan
The MAX17048 battery gauge driver is capable of getting the information about battery only and not able to detect the power supply source for charging whether it is AC or USB. Hence removing the power supply status notification for USB and AC power supply. bug 1286396 Change-Id: I163351b6feb19fca2b32dad4a43f920b00a30a3f Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/234760
2013-06-03power: bq2419x-charger: remove power supply notificationLaxman Dewangan
The BQ2419X charger driver is capable of setting charging current but not able to detect the power supply source whether it is AC or USB. Hence generating the notification from charger driver based on charging current is inaccurate. Removing the power supply change notification code. bug 1286396 Change-Id: I7758c6f36e8c312f79a1ff7cff7fd18858e45de7 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/234759 Reviewed-by: Automatic_Commit_Validation_User
2013-06-03power: max77665-charger: add charging regulatorLaxman Dewangan
Add charging regulator to set the charging current. The client driver call regulator API to set the charging current. Change-Id: Ic0e9b9291f582e6db6ded686770b4c59659791c8 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Xin Xie <xxie@nvidia.com> Reviewed-on: http://git-master/r/234255 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit
2013-06-03usb: xhci: tegra: refactor padctl programmingAjay Gupta
Removes the padctl_data being passed from board file as some of them can be computed inside driver based on active ports on a board. Some padctl datas are platform specific and so have been moved to arch/arm/mach-tegra/xusb.c Bug 1268244 Change-Id: I782768eddbb2a1e240fa798982eb64a3459ba617 Signed-off-by: Ajay Gupta <ajayg@nvidia.com> Reviewed-on: http://git-master/r/229987 Reviewed-by: Harshada Kale <hkale@nvidia.com> Tested-by: Harshada Kale <hkale@nvidia.com>
2013-06-03ARM: tegra: xusb: read usb_calib once in common fileAjay Gupta
Moved usb_calib read part in arch/arm/mach-tegra/xusb.c from Dalmore and Pluto board files. Bug 1268244 Change-Id: I1188499da7138c5b02c8d26d298646ad179226e1 Signed-off-by: Ajay Gupta <ajayg@nvidia.com> Reviewed-on: http://git-master/r/228501 Reviewed-by: Harshada Kale <hkale@nvidia.com> Tested-by: Harshada Kale <hkale@nvidia.com>
2013-05-31misc: nct1008: add id for nct218Roger Hsieh
Add id for nct218 which is compatible with nct1008. Bug 1289749 Change-Id: Ieb50d9119126aa3558ce5809f49970d45a0144fe Signed-off-by: Roger Hsieh <rhsieh@nvidia.com> Reviewed-on: http://git-master/r/232943 Reviewed-by: Riham Haidar <rhaidar@nvidia.com> Tested-by: Riham Haidar <rhaidar@nvidia.com>
2013-05-30Merge remote-tracking branch 'origin/dev/svenkatarama/AOHDR_Merge' into ↵Riham Haidar
promotion_build
2013-05-29power: extcon: detection of power supply through extconLaxman Dewangan
The power supply is detected through the extcon notification from the driver which identify the supply cable type. Add power supply driver to generate power supply type based on identified cable through extcon. Change-Id: Iccf27a3896daf46de6371a136d4f336b2f172aec Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/232987 Reviewed-by: Automatic_Commit_Validation_User
2013-05-23ARM: Tegra: Programming Palmas LongPress registerNaveen Kumar S
Programming the Palmas (TPS65913) LONG_PRESS_KEY register (LPK) used for system hard shutdown. Bug 1241832 Change-Id: Icb3fef877d3b9093572464725c672d2957566e4e Signed-off-by: Naveen Kumar S <nkumars@nvidia.com> Reviewed-on: http://git-master/r/222465 (cherry picked from commit a2245c93317401a8c0ca1def6617448ea5cfc07b) Reviewed-on: http://git-master/r/228797 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2013-05-21Merge branch dev_17 into rel17sivasubramaniam venkataraman
This change adds the camera supoorted changes to bring AOHDR feature in to rel-17. Change-Id: I39929e0644ce0d3e63c8a6960e2a8c3ebd3596ee Signed-off-by: sivasubramaniam venkataraman <svenkatarama@nvidia.com>
2013-05-20arm: tegra: tegratab: support P1640 gyro/compass orientationDavid Yu
Bug 1278403 Bug 1281967 Bug 1275247 Change-Id: Ic8a190db2356ce63e49635503de0a78fe2528515 Signed-off-by: David Yu <davyu@nvidia.com> Reviewed-on: http://git-master/r/224157 Reviewed-by: Harshada Kale <hkale@nvidia.com> Tested-by: Harshada Kale <hkale@nvidia.com>
2013-05-16input: touch: maxim: Add Maxim touch updatesDavid Jung
Maxim Integrated code drop, v1.1.0. Bug 1279288 Change-Id: Ib49e57ac8f05c22121d99b94453eaa500a9f9dfb Signed-off-by: David Jung <djung@nvidia.com> Reviewed-on: http://git-master/r/225301 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
2013-05-16input: touch: maxim: Add Maxim Direct Touch driverRobert Collins
Maxim Integrated code drop to add touch driver. Bug 1270691 Change-Id: I46b18424174624a3d312320dc3f816cea5cb949a Signed-off-by: Robert Collins <rcollins@nvidia.com> Signed-off-by: David Jung <djung@nvidia.com> Reviewed-on: http://git-master/r/224376 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
2013-05-14power: bq2419x: Update charging statusPradeep Goudagunta
-Check and update charging status when we encounter charging faults. -Restart charging after certain timeout in case of charging termination INT. Bug 1261623 Conflicts: drivers/power/bq2419x-charger.c Change-Id: Ia43b598c79b85aa20f70a49312c370b384302333 Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com> Reviewed-on: http://git-master/r/215971 (cherry picked from commit d04051ca119842ec8a3e4bee04a1a90f40c135c9) Reviewed-on: http://git-master/r/228392 Reviewed-by: Riham Haidar <rhaidar@nvidia.com> Tested-by: Riham Haidar <rhaidar@nvidia.com>
2013-05-14power: bq2419x: Smooth charging ramp-upSyed Rafiuddin
Add support to have a smooth charging current ramp-up. Bug 1262682 Change-Id: Ia1987172d416d17fde39ec2d428ca7b28f4a28c4 Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com> Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com> Reviewed-on: http://git-master/r/219614 (cherry picked from commit 54bcefe32147b03ff2ba69a386339867b4eafa03) Reviewed-on: http://git-master/r/228391 Reviewed-by: Riham Haidar <rhaidar@nvidia.com> Tested-by: Riham Haidar <rhaidar@nvidia.com>
2013-05-13regulator: palmas: add config flags to configure regulator behaviorLaxman Dewangan
Add the config variable on regulator init data to configure the rails behavior like force off on suspend etc. bug 1278567 Change-Id: I01f8f5729dfa67ba9f301d2f06825b152ef6857a Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/227077 Reviewed-by: Automatic_Commit_Validation_User
2013-05-08video: tegra: host: host1x clock scaling for viTerje Bergstrom
Implement host1x clock scaling for vi driver. As actmon relies on host1x clocks, we need to readjust the actmon history when host1x clock is changed. Bug 1278248 Change-Id: Ibcd3104c5fb674268d5bd54684874c2bd534a4b1 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/223066 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Arto Merilainen <amerilainen@nvidia.com> Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
2013-05-08EDP: adding power-supply depletion driverSivaram Nair
Power-supply depletion driver. Bug 1274376 Change-Id: I1e18db9bb06a18bb1cc6446fe36ce8422bae67cf Signed-off-by: Sivaram Nair <sivaramn@nvidia.com> Reviewed-on: http://git-master/r/226227 GVS: Gerrit_Virtual_Submit Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
2013-05-08power:max17042: remove battery depletion codeSivaram Nair
Moving this into a separate drive Bug 1274376 Change-Id: Ib9633968aa1b8a10e638b77448916a8384968490 Signed-off-by: Sivaram Nair <sivaramn@nvidia.com> Reviewed-on: http://git-master/r/226226 GVS: Gerrit_Virtual_Submit Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
2013-05-07media: video: tegra: OV7695 sensor kernel driverkkim
Bug 1269275 Change-Id: I2f7b9dded7ed5e06efd5875bc7990afc338ed3ce Signed-off-by: kkim <kkim@nvidia.com> Reviewed-on: http://git-master/r/222047 Reviewed-by: Jake Park <jakep@nvidia.com> Tested-by: Jake Park <jakep@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> GVS: Gerrit_Virtual_Submit
2013-05-06mfd: palmas: add PMU reset to be called from other driver.Hyongbin Kim
In some case, device need to PMU reset instead of PMU power off. Bug 1242042 Change-Id: I4981bcf8aa52e46a6b3a6bcd347aa5d9c0185973 Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com> Reviewed-on: http://git-master/r/221551 Reviewed-by: Riham Haidar <rhaidar@nvidia.com> Tested-by: Riham Haidar <rhaidar@nvidia.com>
2013-05-06power: max77665: Get battery presence from pdataChaitanya Bandi
Battery presence will be obtained from platform data. Removed battery presence detection through reading temperature. Bug 1281739 Change-Id: I6ae449cafccf38f75815374da011cc7ca5aba087 Signed-off-by: Chaitanya Bandi <bandik@nvidia.com> Reviewed-on: http://git-master/r/225219 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2013-05-06power: max17042: Get battery presence from pdataChaitanya Bandi
Battery presence will be obtained from platform data. Removed battery presence detection through reading temperature. Bug 1281739 Change-Id: Ic87fe5a8ba4d183a26c7bec616c08a07714a9de6 Signed-off-by: Chaitanya Bandi <bandik@nvidia.com> Reviewed-on: http://git-master/r/225218 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2013-05-03Thermal: Add thermal events tracing (ftrace)Timo Alho
Following two events in thermal framework are traced: - Call to handle_thermal_trip (thermal_zone_device name and temperature will be printed) - Call to thermal_cdev_update (thermal_cooling_device name and updated cooling state value will be printed) Bug 1050412 Change-Id: If7e685ce26455820408d694fa720105ecae15469 Signed-off-by: Timo Alho <talho@nvidia.com> Reviewed-on: http://git-master/r/207010 (cherry picked from commit c0e030667214f65b0ab49840081ea53d6df24d4a) Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com> Reviewed-on: http://git-master/r/225020 GVS: Gerrit_Virtual_Submit
2013-05-03hwmon: ina230: support inverted polarity for shunt voltageHyungwoo Yang
This change supports the case for polarity of shunt voltage is inverted. Bug 1240043 Change-Id: Idfb87fd80694b61f1ec66be9aa815d7aedc95324 Signed-off-by: Hyungwoo Yang <hyungwooy@nvidia.com> Reviewed-on: http://git-master/r/223682 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2013-05-02Merge branch 'dev_17' into rel17sivasubramaniam venkataraman
Change-Id: I9132ac2b464e795413079ad9c50e2fa14249304c Signed-off-by: sivasubramaniam venkataraman <svenkatarama@nvidia.com>
2013-04-25Arm: tegra: usb_phy: add config for HSSLEW LSB.Shawn Joo
while tuning usb characterization HS slew LSB is required to be adjusted. add a code in usb phy. Bug 1272371 Change-Id: If1b4507e326c25aeac7acdd4817509b9536181af Signed-off-by: Shawn Joo <sjoo@nvidia.com> Reviewed-on: http://git-master/r/220843 Reviewed-by: Riham Haidar <rhaidar@nvidia.com> Tested-by: Riham Haidar <rhaidar@nvidia.com>
2013-04-25EDP: tegra: remove loan from tegra_sysedp_corecapSivaram Nair
loan is exclusively used for the CPU power right now - no need to include it in the tables. This reduces the table length. Bug 1264825 Change-Id: I6c563d0b02e11cd72a40bc6f645b29fe816274d9 Signed-off-by: Sivaram Nair <sivaramn@nvidia.com> Reviewed-on: http://git-master/r/222569 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
2013-04-25EDP: tegra: add initial request to core clientSivaram Nair
This patch contains changes to let the core client specify an initial E-state (rather than assuming the highest possible state). Bug 1264825 Change-Id: If3b44c0f411d8c2b69762c26761f807b073b6345 Signed-off-by: Sivaram Nair <sivaramn@nvidia.com> Reviewed-on: http://git-master/r/222566 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Krishnan Geeyarpuram <kgeeyarpuram@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
2013-04-24ARM: tegra: tegratab: disable vbus while going to lp0Rohith Seelaboyina
disable vbus while going to lp0 Bug 1274508 Change-Id: Id8fc118dffafdeac2117b1788c575ec3f966efee Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com> Signed-off-by: Simon Je <sje@nvidia.com> Reviewed-on: http://git-master/r/221577 Reviewed-by: Riham Haidar <rhaidar@nvidia.com> Tested-by: Riham Haidar <rhaidar@nvidia.com>
2013-04-24power: max77665: fix temperature readingXin Xie
We are using 0xFF as error code for temperature reading, but 0xFF is also 25.5c which is a legal temperature reading. Fix this issue by using dedicated error code return value. bug 1236790 Change-Id: Ic0be2909ec10ce5763f77dc6ec30a7c6bc5d9d03 Signed-off-by: Xin Xie <xxie@nvidia.com> Reviewed-on: http://git-master/r/220786 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Syed Rafiuddin <srafiuddin@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2013-04-24power: max77665: enable high current chargingXin Xie
This patch enables the high power charging (>500mA) on max77665. Not all of wall charger or CDP port can support 1.5A charging. We need dynamically detect the charger current capability in order to have the maximum output efficiency. This can be done by detect max77665 is in the 'regulation loop' mode. During the high power charging, VBUS out can get cut off if input VBUS is below VCHIN_UVLO, and AP wll turn off the charging. We will detect this condition and only turn off the charging when USB cable is indeed unplugged. bug 1236790 bug 1272664 Change-Id: I1a23d3e2bba066a48dc392055d7347bab956dda0 Signed-off-by: Xin Xie <xxie@nvidia.com> Reviewed-on: http://git-master/r/220785 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Syed Rafiuddin <srafiuddin@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2013-04-22media:video:tegra: aohdr implementation for ov5693.Lihui Cui
For bug 1236935. Change-Id: I9cfb94685d47375ad8ef9106980be18bde51156c Signed-off-by: Lihui Cui <lcui@nvidia.com> Reviewed-on: http://git-master/r/218626 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Philip Breczinski <pbreczinski@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Jon Mayo <jmayo@nvidia.com> Reviewed-by: John Sasinowski <jsasinowski@nvidia.com>
2013-04-22regulator: palmas: add support for ext power reqGaurav Batra
Bug 1242520 Change-Id: I0911977291a8fa0eccff3cba0d7fdedafbc91a36 Signed-off-by: Gaurav Batra <gbatra@nvidia.com> Reviewed-on: http://git-master/r/215721 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User
2013-04-19regulator: palmas: do not disable smps10 in suspend if is enabled by clientMallikarjun Kasoju
Do not disable the smps10 in suspend as part of boost suspend if client have enabled it through regulator call and has not called regulator_disable. bug 1266948 Change-Id: I27e5dfbd4a55b07ef5214ce2fd57eaa7e78dff5a Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com> Reviewed-on: http://git-master/r/220551
2013-04-19Cpufreq: create/remove percpu sysfs nodes oncePuneet Saxena
On cpu hotplug on/off, percpu "cpufreq" sysfs node and it's sub nodes are freshly created and removed. This increases cpu up/down latency. Create percpu "cpufreq" sysfs node and it's sub nodes in driver registration and remove it in unregistration. This decreases cpu up/down latency significantly. Bug 1040355 Change-Id: I5c2b02e74de0ae4fe08dedc959bd7402cd9b7aa5 Signed-off-by: Puneet Saxena <puneets@nvidia.com> Reviewed-on: http://git-master/r/146812 (cherry picked from commit 298382285677fa791098d117ccc0a0a3d9ab0f9a) Reviewed-on: http://git-master/r/219379 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2013-04-18power: max77665: reducing open printsSivaram Nair
To reduce the amount of open prints, following changes are made. - moving dev_info to dev_dbg. - print charger status only if there was a charger interrupt Change-Id: Ib31ddf1ce05abae738e794edbe248b2707010f60 Signed-off-by: Sivaram Nair <sivaramn@nvidia.com> Reviewed-on: http://git-master/r/220165 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2013-04-17power: max77665-charger: get irq number through platform_get_irq()Laxman Dewangan
Get the max77665 charger submodule interrupt number through platform_get_irq() rather than getting it through platform data. bug 1216535 Change-Id: I32314086dbfe3a1a435fcd7012b7cae73d081eb5 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/219790 Reviewed-by: Sivaram Nair <sivaramn@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit
2013-04-17mfd: max77665: add top sys interrupt supportLaxman Dewangan
The top system interrupt of max77665 enables the interrupt for thermal and low system voltage. Add support for enabling this interrupt. bug 1216535 Change-Id: Ifea7ecae3367497f7cff283b44bba013d1b8415d Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/219789 Reviewed-by: Sivaram Nair <sivaramn@nvidia.com> GVS: Gerrit_Virtual_Submit