summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-enterprise-baseband.c
AgeCommit message (Collapse)Author
2012-06-27arm: tegra: baseband: add sysfs file for modem boot, etc.Steve Lin
1. Add sysfs file so the fild can load/unload host controller before modem power cycle. 2. Move modem boot irq to modem PM driver. 3. Add short autosuspend to optimize power consumption if the wake source of system resume is not modem. 4. Avoid LP0 abort if remote wakeup happens during L0/L2 -> L3 transition. 5. Fix deadlock in pm_notifier function. Bug 975990 Signed-off-by: Steve Lin <stlin@nvidia.com> Reviewed-on: http://git-master/r/109079 (cherry picked from commit 0b60aade303a022ff3335b4a238ba2dbae4da4b5) Change-Id: I9bcac40e2f93f95c702b42a2eb5e4e9aa7a9d721 Reviewed-on: http://git-master/r/103981 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Uday Raval <uraval@nvidia.com> Tested-by: Steve Lin <stlin@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Steve Lin <stlin@nvidia.com>
2012-06-22arm: tegra: usb: restore the AP/modem handshakingSteve Lin
Restore the AP/modem handshaking functions and clean up the null phy driver. Bug 996035 Signed-off-by: Steve Lin <stlin@nvidia.com> Reviewed-on: http://git-master/r/109044 (cherry picked from commit ff27e8a48a53fe70949d95915f62dd2e03c73df7) Change-Id: I12a2401a7fcc540a657ab15378d440ef85561001 Reviewed-on: http://git-master/r/110145 Reviewed-by: Automatic_Commit_Validation_User Tested-by: Steve Lin <stlin@nvidia.com> Reviewed-by: Steve Lin <stlin@nvidia.com>
2012-06-13ARM: tegra: enterprise: enable auto hotplugRakesh Bodla
Enabling hotplug detection support for baseband when it is crashed. Bug 995784 Change-Id: I75b7a3b79fb8f9e7c6d58b14090637f794e38bad Signed-off-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-on: http://git-master/r/108284 Reviewed-by: Automatic_Commit_Validation_User Tested-by: Alexandre Berdery <aberdery@nvidia.com> Reviewed-by: Alexandre Berdery <aberdery@nvidia.com> Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2012-06-07ARM: tegra: enterprise: Remove tegra_gpio_enb/disAshwini Ghuge
Removing tegra_gpio_enable and disable calls from board files as they are supported through set direction calls in the driver Bug 984439 Change-Id: I011fc1ec52b31b1b0602d577f02a6d20f37e402d Signed-off-by: Ashwini Ghuge <aghuge@nvidia.com> Reviewed-on: http://git-master/r/102773 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com> Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2012-05-31arm: tegra: usb: fix suspend resume issues of ULPI phyVenu Byravarasu
Fixing suspend resume issues observed with ULPI phy during entering/exiting LP0 on enterprise. bug 989510 Change-Id: Iaf5da7597281b5e1a78df7bdf32c46422cb5c6ef Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com> Reviewed-on: http://git-master/r/104959 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-05-24usb: tegra: modify USB platform data structuresRakesh Bodla
Modify USB structures of platform data. Based on the new platform data structures modifying the initialization in board files. Bug 887361 Change-Id: Ie6347a078c9a596a4debe21a353e127ddde35220 Signed-off-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-on: http://git-master/r/103597 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-03-29arm: tegra: baseband: wake lock on both BB_RST_OUT polFrederic Bossy
bug 947710 Change-Id: If06de72d3880055c219e5ded892bb8cf956d774a Signed-off-by: Frederic Bossy <fbossy@nvidia.com> Reviewed-on: http://git-master/r/92066 Reviewed-by: Steve Lin <stlin@nvidia.com> Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
2011-12-21arm: tegra: usb: Support tegra2 null ULPI phy restore functionSteve Lin
Adding tegra2 null ULPI phy restore function and clean up code in usb_phy. Bug 907350 Bug 912407 Change-Id: I93aa191cd7f9fdace7f80a66fedbf034728e2fe9 Signed-off-by: Steve Lin <stlin@nvidia.com> Reviewed-on: http://git-master/r/67189 Reviewed-by: Martin Chabot <mchabot@nvidia.com> Tested-by: Martin Chabot <mchabot@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Tested-by: Jonathan Roux <jroux@nvidia.com> Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
2011-11-30arm: tegra: usb: enable ULPI CLK after STP is asserted in LP0 resumeSteve Lin
1) Enabling ULPI CLK after MDM2AP_ACK is asserted 2) Driving linestate by GPIO before removing the ULPI data tristate Bug 889484 Reviewed-on: http://git-master/r/60104 (cherry picked from commit 795b9ddcedf3f6465c6a352005c8d8615a36e739) Change-Id: Idde92fec46cdb26bc336ffd2d12a2cfb65b3f2e9 Reviewed-on: http://git-master/r/66995 Reviewed-by: Steve Lin <stlin@nvidia.com> Tested-by: Steve Lin <stlin@nvidia.com> Rebase-Id: Rac02c10771adfb5927b1bc300e2de7f6cff4d34d
2011-11-30arm: tegra: baseband: Fix modem enumeration for single flashSteve Lin
Bug 891706 Reviewed-on: http://git-master/r/59663 (cherry picked from commit 5f1b12179c239674741a3a93dbcecd66cdd665be) Change-Id: Iae03a27e330e8076c905d5e49c80fbe87ed065cb Reviewed-on: http://git-master/r/60709 Reviewed-by: Sheshagiri Shenoy <sshenoy@nvidia.com> Reviewed-by: Steve Lin <stlin@nvidia.com> Tested-by: Steve Lin <stlin@nvidia.com> Rebase-Id: R557d7667dd2d01ddb17a1e7654a4476fcebfef97
2011-11-30arm: tegra: baseband: Adding phy restore callback functionsSteve Lin
Adding phy restore callback functions due to the modem handshaking change during LP0 resume. Bug 863224 Reviewed-on: http://git-master/r/58516 (cherry picked from commit e718eac448660ec8844d9f97e8c307d845f6063a) Change-Id: I918ae4d6fb6e5da1d3507f306a9972872d6c8e04 Reviewed-on: http://git-master/r/60704 Reviewed-by: Sheshagiri Shenoy <sshenoy@nvidia.com> Reviewed-by: Steve Lin <stlin@nvidia.com> Tested-by: Steve Lin <stlin@nvidia.com> Rebase-Id: R3ec780781b4e453acf71b7ddf7fa5f25a92ad8d5
2011-11-30ARM: tegra: enterprise: BB pwr ctrl handover to user spaceSteve Lin
The Icera baseband on Enterprise is powered ON by FIL from user space. There is no need to power ON the baseband from kernel space and it is preferable to not do it as FIL initiates a power cycle of the baseband anyway. Remove reference to ph450. bug 875299 Reviewed-on: http://git-master/r/54916 (cherry picked from commit a4bfbcdde94834e39318efe79f952ed077e96f63) Change-Id: I39789c00fc6994144a89db901e0f2faadff9d330 Reviewed-on: http://git-master/r/60350 Reviewed-by: Sheshagiri Shenoy <sshenoy@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: R027546eb2ca76afdd85486981e5a937611215572
2011-11-30arm: tegra: baseband: Decouple modem operation and power managementSteve Lin
Enabling the tegra usb modem power management and decoupling the modem operation and power management functions. Bug 854339 Reviewed-on: http://git-master/r/53247 (cherry picked from commit 6e605c46d10ae729d3de069052ee4fe33b88ad55) Change-Id: Ida1c3657dff91859c07cb30d7d3b870264f692d0 Reviewed-on: http://git-master/r/60349 Reviewed-by: Sheshagiri Shenoy <sshenoy@nvidia.com> Reviewed-by: Steve Lin <stlin@nvidia.com> Tested-by: Steve Lin <stlin@nvidia.com> Rebase-Id: Rbc8fdd1991e8058031e237ab8ff037aa09478f55
2011-11-30arm: tegra: baseband: Change modem BB_RST_OUT polaritySteve Lin
This change contains the following changes due to e450 modem FW change: 1) Change modem BB_RST_OUT polarity and move the wake_lock_timeout where BB_RST_OUT is low. 2) Disable the AP pullup on BB_RST_OUT. 3) To increase the wake lock timeout to ensure the modem enumeration is complete before system suspend. Bug 867501 Original-Change-Id: I8e6638fa8dd8c7af0893ad31693959794e8a4afe Reviewed-on: http://git-master/r/49743 Reviewed-by: Steve Lin <stlin@nvidia.com> Reviewed-by: Sheshagiri Shenoy <sshenoy@nvidia.com> Reviewed-by: Frederic Bossy <fbossy@nvidia.com> Tested-by: Frederic Bossy <fbossy@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: R1bce23be02c4f98131bfbde7b339b383dcdbbf3f
2011-11-30ARM: tegra: baseband: modem flashless boot and remote wakeupSteve Lin
Support modem reboot and re-enumeration. Support modem remote wakeup. Bug 814261 Bug 814271 Bug 846135 Original-Change-Id: I103722d0248bcb1565d5f5799a2e4317c2579a95 Reviewed-on: http://git-master/r/31441 Tested-by: Szming Lin <stlin@nvidia.com> Reviewed-by: Udaykumar Rameshchan Raval <uraval@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Rebase-Id: Re5069bff49f5b7ed327030993de385b2c014b131
2011-11-30ARM: tegra: Fix file permissionsScott Williams
Change-Id: I4668077a85d82e08db0fee537712a2e4b949007a Reviewed-on: http://git-master/r/57426 Reviewed-by: Scott Williams <scwilliams@nvidia.com> Tested-by: Scott Williams <scwilliams@nvidia.com> Rebase-Id: R04eea53de492e784958a1c386d78646406f4d957
2011-11-30ARM:tegra:enterprise: Configure I_MDM_RST as input.Frederic Bossy
I_MDM_RST (gpio33) is connected to PMIC VMON_OUT. It shouldn't be driven high, only low when reset is performed. Modem reset relies on power cycle (PON low->high) today. Bug 866051 Reviewed-on: http://git-master/r/52593 (cherry picked from commit d1800dacc1d106ef81b3b4ef98d6dbc7c8b723b4) Reviewed-on: http://git-master/r/56575 (cherry picked from commit b76e5af29d838025946e57655603181fbd414c74) Change-Id: Ieab0a8bc6b1818cc39cdd1a5563c5fee4bf5ed65 Reviewed-on: http://git-master/r/56957 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Frederic Bossy <fbossy@nvidia.com> Rebase-Id: R0ee7d598d02448ee1376ad852126cd41598a9d2f
2011-11-30arm: tegra: baseband: Change modem BB_RST_OUT polaritySteve Lin
This change contains the following changes due to e450 modem FW change: 1) Change modem BB_RST_OUT polarity and move the wake_lock_timeout where BB_RST_OUT is low. 2) Disable the AP pullup on BB_RST_OUT. 3) To increase the wake lock timeout to ensure the modem enumeration is complete before system suspend. Bug 867501 Original-Change-Id: I8e6638fa8dd8c7af0893ad31693959794e8a4afe Reviewed-on: http://git-master/r/49743 Reviewed-by: Steve Lin <stlin@nvidia.com> Reviewed-by: Sheshagiri Shenoy <sshenoy@nvidia.com> Reviewed-by: Frederic Bossy <fbossy@nvidia.com> Tested-by: Frederic Bossy <fbossy@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: R27a4bb115eccd5ee78fa0c326f864d9aec44f15e
2011-11-30arm:tegra:enterprise: Export MODEM_PWR_ON & MODEM_RESET GPIOsAlexandre Berdery
RIL and FIL require GPIOs access from user space. This is possible with this change using sysfs. Bug 866051 Original-Change-Id: Ie6ee4e305ae709a4eae467e27b269b9327031a17 Reviewed-on: http://git-master/r/49206 Tested-by: Alexandre Berdery <aberdery@nvidia.com> Reviewed-by: Frederic Bossy <fbossy@nvidia.com> Reviewed-by: Szming Lin <stlin@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: R4caebc5f37892608bb30a2521901d56053583f0e
2011-11-30arm: tegra: baseband: Enable pull-up for ULPI STPSteve Lin
The ULPI spec mandates that there's a pullup on ULPI_STP when the link is not driving it. Bug 862561 Original-Change-Id: I9bfa720f19fb776fea8d2fe19bef9755bcaf51a3 Reviewed-on: http://git-master/r/46411 Tested-by: Szming Lin <stlin@nvidia.com> Reviewed-by: Sheshagiri Shenoy <sshenoy@nvidia.com> Reviewed-by: Udaykumar Rameshchan Raval <uraval@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: Re173c250ab33199cc5e9f36476463b8380f4ad52
2011-11-30arm: tegra: baseband: add callback functions for null phy power offSteve Lin
Adding pre_phy_off and post_phy_off callback functions in null_phy_power_off function. So that the modem handshaking GPIO is set to reflect the real phy status. Bug 856096 Bug 854339 Original-Change-Id: Ia39a84d3958b9dd078f93ab5be20387fb1ed9103 Reviewed-on: http://git-master/r/44840 Tested-by: Szming Lin <stlin@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: R77bcdb38dc78c01dd8dc517d28e3a45fd0237170
2011-11-30ARM: tegra: baseband: modem flashless boot and remote wakeupSteve Lin
Support modem reboot and re-enumeration. Support modem remote wakeup. Bug 814261 Bug 814271 Bug 846135 Original-Change-Id: I103722d0248bcb1565d5f5799a2e4317c2579a95 Reviewed-on: http://git-master/r/31441 Tested-by: Szming Lin <stlin@nvidia.com> Reviewed-by: Udaykumar Rameshchan Raval <uraval@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Rebase-Id: Rd1a0b91d4708fc039648df0cd491c9a382b5fcb2
2011-11-30arm: tegra: enterprise: init modem according to modem_idSteve Lin
Init baseband modems according to the modem_id passed from the bootloader. Bug 842870 Original-Change-Id: Ib8cd37877eb50ac67a337ef20dd6c6f631169578 Reviewed-on: http://git-master/r/39273 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: R12d2b58e46d8962858394ba0328d3d0c43fa8bc9
2011-11-30ARM: tegra: baseband: Add PH450 modem init and reset functionsSteve Lin
Add PH450 modem init and reset functions for Tegra Enterprise. Bug 800301 Change-Id: I7068fa87118c2388badb664da3d1a83a3eb49dae Reviewed-on: http://git-master/r/30920 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: R5c93eca6b9fd9d45afbc5d42b49d779f6a027a9a