summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-kai-sensors.c
AgeCommit message (Collapse)Author
2013-02-18ARM: tegra11: Include temperature offset to CPU EDP managementDiwakar Tundlam
Fixed setting of DOWN threshold by adjusting hysteresis correctly for precision. Made temperatures array be at 4 degree intervals above 70C because of 2C rounding required for soctherm temperature thresholds. Bug 1233302 Change-Id: I2dc0966fdc3ba81d6e29b8dd0095b165bf2ae7bc Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com> Reviewed-on: http://git-master/r/200216 Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com> Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>
2013-02-05ARM: tegra: fix balanced throttling behaviourHyungwoo Yang
This change enables balanced throttling to throttle frequencies of components individually. Reviewed-on: http://git-master/r/195368 (cherry picked from commit aa2e22edbbecf8621ab2c0d56a05c967101aae12) Change-Id: If260229387127d29aba6bfd02cd505597f992921 Signed-off-by: Hyungwoo Yang <hyungwooy@nvidia.com> Reviewed-on: http://git-master/r/197152 Reviewed-by: Riham Haidar <rhaidar@nvidia.com> Tested-by: Riham Haidar <rhaidar@nvidia.com>
2013-01-23arm: tegra: board changes due to thermal_trip_info use in driverDiwakar Tundlam
Bug 1200075 Change-Id: I5feae9296aae7a88585bbfc4a49478bb33602b40 Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com> Reviewed-on: http://git-master/r/192129 Reviewed-by: Automatic_Commit_Validation_User
2013-01-15arm: tegra: move common edp cdev init to edp codeDiwakar Tundlam
Moved repetitive platform initalization of edp features to common areas in preparation for handling these cdevs from soc_therm. Bug 1200075 Change-Id: I8f7fe45d8f0797c72272e5ee1db3707493ec90a5 Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com> Reviewed-on: http://git-master/r/190765 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
2013-01-11ARM: tegra: thermal: Refactor struct balanced_throttleJinyoung Park
Change struct throttle_table type in struct balanced_throttle from array to pointer. Bug 1174096 Bug 1200111 Change-Id: I8e2344835546b613d81ec9f608085939f2b47270 Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com> Reviewed-on: http://git-master/r/190304 Reviewed-by: Riham Haidar <rhaidar@nvidia.com> Tested-by: Riham Haidar <rhaidar@nvidia.com>
2013-01-09ARM: tegra: Rename cooling device typeJinyoung Park
Rename cooling device type to the generic name for balanced throttle. Change-Id: Ie975d5806530cf252baa5152b82cf7cb7822b8a0 Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com> Reviewed-on: http://git-master/r/172181 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Matthew Longnecker <mlongnecker@nvidia.com> Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com> Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>
2013-01-04ARM: tegra: fix out-of-bounds writeDeepak Nibade
Fix Coverity issue Coverity id : 21342 Coverity id : 21343 Coverity id : 21344 Bug 1046331 Change-Id: I7a990f4cf36020a416f5cf029a8874fe07dbf389 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/169387 (cherry picked from commit 5a9fcd2218f7751b77e73246aaa9e5840c4ae2b5) Reviewed-on: http://git-master/r/188449 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-12-04ARM: tegra: nct: Use new nct platform dataJoshua Primero
Utilize the updated nct platform data structure. Multiple active cooling devices can also be used now. Change-Id: I009b34d0156c679882040c86b9e583261617071a Signed-off-by: Joshua Primero <jprimero@nvidia.com> Reviewed-on: http://git-master/r/165189 Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com> Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>
2012-12-04ARM: tegra: Use new nct interface for cdev bindJoshua Primero
Remove the create_cdev function pointers from nct platform data and just utilize cdev type name to bind with nct driver. Change-Id: I7be429a8b8e0deb485c24e3d3c779d3ca1f09d2b Signed-off-by: Joshua Primero <jprimero@nvidia.com> Reviewed-on: http://git-master/r/165187 Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com> Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>
2012-12-04ARM: tegra: throttle: Expose name to throttle APIJoshua Primero
Allow the function caller to name the type of the cooling device. Change-Id: I26f69d0e7d0de9e58f0ffa65b97cd92b0cb0fd12 Signed-off-by: Joshua Primero <jprimero@nvidia.com> Reviewed-on: http://git-master/r/160075 Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com> Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>
2012-11-15ARM: tegra: edp: Edp as single active cooling devJoshua Primero
With the new Linux Thermal API we can implement EDP thermals as a single active cooling device instead of the multiple cooling devices we had before which was messy. bug 1059470 Change-Id: Iecc338a5ae7749d19017d7b30229017c35f76f1c Signed-off-by: Joshua Primero <jprimero@nvidia.com> Reviewed-on: http://git-master/r/159981 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-10-25ARM: tegra: Fix temperature trend control logicDiwakar Tundlam
Set tc2 correctly for thermal layer to assess trend Bug 1057977 Change-Id: If92788d2b9438e5ff932407720d42d4a777b4279 Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com> Reviewed-on: http://git-master/r/142133 (cherry picked from commit 42f2e06818613e19a526c94646007d9919cecf6f) Signed-off-by: Gaurav Batra <gbatra@nvidia.com> Reviewed-on: http://git-master/r/146690 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-10-25ARM: tegra: thermal: Utilize hysteresis on nctJoshua Primero
Added 1 degree hysteresis to edp thermal management trip points. bug 1057977 Change-Id: I8a278cc3e4288ccc5f7cb7896382cb98e3c9b2a3 Signed-off-by: Joshua Primero <jprimero@nvidia.com> Reviewed-on: http://git-master/r/141776 (cherry picked from commit b0d89dd8c9488edf6c0e513606dc8cc3b24ac35d) Signed-off-by: Gaurav Batra <gbatra@nvidia.com> Reviewed-on: http://git-master/r/146687 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-10-25ARM: tegra: thermal: Thermals in kai/enterpriseJoshua Primero
Enabled edp thermal capping, thermal throttling, and thermal shutdown on the Kai and Enterprise platforms which got lost in the previous refactor. Change-Id: I5b65058fd94162f256fdc40006db32d1e2dbde28 Signed-off-by: Joshua Primero <jprimero@nvidia.com> Reviewed-on: http://git-master/r/132884 (cherry picked from commit f6d6f30e07d679a74342bb5e5d599993414a9d56) Signed-off-by: Gaurav Batra <gbatra@nvidia.com> Reviewed-on: http://git-master/r/130366 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com> Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>
2012-10-25ARM: tegra: thermal: Remove tegra therm dependencyJoshua Primero
Removed the use of the Tegra thermal layer. All management is now done via Linux thermal framework via thermal_zone_devices and thermal_cooling_zones. Change-Id: I87de8a7dd8ff8e338d3c18db1518b5acfc18faee Signed-off-by: Joshua Primero <jprimero@nvidia.com> Reviewed-on: http://git-master/r/132883 (cherry picked from commit cb9e0dbe41d7419d6152f02ea10f13faa7448e81) Signed-off-by: Gaurav Batra <gbatra@nvidia.com> Reviewed-on: http://git-master/r/130289 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-10-15media: video: tegra: pass device as argument in power_onMallikarjun Kasoju
modify power_on api to pass device as argument so that from board files it can be used to get the regulator in place of NULL Bug 1154495 Change-Id: I5164fa04a14ef0d405e6c9d51f42efc8e6ce14bf Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com> Reviewed-on: http://git-master/r/143748 Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com> Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>
2012-10-12arch: arm: board support for Invensense MPUGraziano Misuraca
Add board support for Invensense MPU Change-Id: Iefabb4e01f9d0772a3a037696fe82417a51f78fd Signed-off-by: Xiaohui Tao <xtao@nvidia.com> Signed-off-by: Robert Collins <rcollins@nvidia.com> Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com> Reviewed-on: http://git-master/r/132404 (cherry picked from commit baea2bfc5696f2f044efc80f5b7a88dda061e3d8) Reviewed-on: http://git-master/r/138746 Reviewed-by: Automatic_Commit_Validation_User Tested-by: Gaurav Batra <gbatra@nvidia.com> Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
2012-09-21ARM: tegra: kai: adjust ov2710 power sequenceSang-Hun Lee
Update the power sequence to match the specification Bug 1031318 Reviewed-on: http://git-master/r/128945 (cherry picked from commit 5c13235fdd38404b3b785aa5c2d7e6f51e4bfb53) Change-Id: I60e57f3c662c6775e6ced9c4084e530d64fe1ed7 Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com> Reviewed-on: http://git-master/r/133395 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-09-13ARM: tegra: thermal: Refactored thermalsJoshua Primero
1) Removed skin thermals from tegra_thermal layer 2) Removed throttle initialization from tegra_thermal layer 3) Simplified thermal device interface 4) Create a therm estimator device as a platform device Change-Id: Ic8ffd111817f03f7aadc89d6185eb749b274b830 Signed-off-by: Joshua Primero <jprimero@nvidia.com> Reviewed-on: http://git-master/r/130282 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-07-12drivers: skin: Skin prediction algorithmJoshua Primero
Added skin prediction algorithm. bug 1007726 Change-Id: Ia76f73cb818aa02e608e1fc69ab4d8277a5825eb Signed-off-by: Joshua Primero <jprimero@nvidia.com> Reviewed-on: http://git-master/r/104814 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2012-06-07ARM: tegra: kai: Remove tegra_gpio_enable/disableAshwini Ghuge
Removing tegra_gpio_enable and disable calls from board files as they are supported thorugh set direction calls in the driver Bug 984439 Change-Id: I4ec51c8eb68c373b7cec6903bf52539cd520b227 Reviewed-on: http://git-master/r/102813 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-06-06arm: tegra: board-files: remove usage of TEGRA_GPIO_TO_IRQDan Willemsen
we've moved to IRQ domains, and need to use gpio_to_irq instead of TEGRA_GPIO_TO_IRQ to get correct results. See commit 6f74dc9bc8de41f3de474a7269a70921e773c40f Change-Id: Ieb7c3e5d2a9bd0f4c83881b16fbd617babf41950 Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com> Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Reviewed-on: http://git-master/r/106362 Tested-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
2012-05-30arm: tegra: kai: change thermal sensor to nct72Chandler Zhang
Kai board uses OnSemi NCT72 thermal sensor. NCT72 is pin and register compatible to NCT1008. Change the i2c device id from "nct1008" to "nct72" to avoid confusion. Bug 961970 Reviewed-on: http://git-master/r/100466 Signed-off-by: Chandler Zhang <chazhang@nvidia.com> (cherry picked from commit 07ed4a320ff7e18e615270e0e15bd4212e6a7c9f) Change-Id: I6ef858d27b1b1f35ddd071542bb22caed2e776ab Reviewed-on: http://git-master/r/103582 Tested-by: Daniel Fu <danifu@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Chandler Zhang <chazhang@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-05-14ARM: tegra: kai: change NCT72 conversion rateDaniel Fu
Bug 961829 NCT72 thermal sensor consumes ~3mW at 16Hz conversion rate. At 32Hz, the power consumption ~1.5mW. Change conversion rate to 32Hz to reduce power consumption. LP0 power consumption will not reduce, because the sensor will enter standby mode. Signed-off-by: Daniel Fu <danifu@nvidia.com> Change-Id: If584c57b4d6e0b3068d9a1210a977ef5cd347984 Reviewed-on: http://git-master/r/101217 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-05-14arm: tegra: kai: Switch to external temperature sensorKerwin Wan
Disable internal temperature sensor and enable external temperature sensor. This is a modified version of change 74db6e22d316a95630d3059644fbc55e2620cb9b Bug 954134 Change-Id: Id64bb93a09e1701165ad1f82e08bb92e61425873 Signed-off-by: Daniel Solomon <daniels@nvidia.com> Reviewed-on: http://git-master/r/96285 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Conflicts: arch/arm/mach-tegra/board-kai-sensors.c
2012-04-23arm: tegra: resolve compilation time warningsSanjay Singh Rawat
Bug 949219 Change-Id: I875f8688a272c415ebf345b8f30e4afdf7551b29 Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-on: http://git-master/r/91523 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Conflicts: arch/arm/mach-tegra/common.c arch/arm/mach-tegra/usb_phy.c Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
2012-03-25fixup: gpio includes (board-kai-sensors.c)Dan Willemsen
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
2012-03-23arm: tegra: kai: Add Invensense MPU sensorsRakesh Iyer
Bug 825602 Change-Id: Id3f4db74f2d0d1aebc8aa1f6e1da865171af9b49 Signed-off-by: Johnny Qiu <joqiu@nvidia.com> Reviewed-on: http://git-master/r/82763 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Rebase-Id: R5c74d6c609f25ed42c6e9862ce338ecc9e9f8ceb
2012-03-23arm: tegra: kai: Integrate CM3217 ALS driverJohnny Qiu
Bug 937953 Change-Id: I202677abe4738e84224cbfd53fec5319392a8cc4 Signed-off-by: Johnny Qiu <joqiu@nvidia.com> Reviewed-on: http://git-master/r/83370 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Rebase-Id: R326271af21e17c4b5786d6988fc2b9cd2e72e12f
2012-03-23arm: tegra: kai: add ov2710 front cameraJohnny Qiu
Bug 913259 Change-Id: Idc26f500390b476942819289949f042bc25ae4a6 Signed-off-by: Peter Zu <pzu@nvidia.com> Signed-off-by: Johnny Qiu <joqiu@nvidia.com> Signed-off-by: Hao Tang <htang@nvidia.com> Reviewed-on: http://git-master/r/82762 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com> Rebase-Id: R514fc2949dfe5814353fdc3d2fb253c85eac78a8