1. 01 3月, 2011 13 次提交
  2. 26 2月, 2011 17 次提交
  3. 21 2月, 2011 1 次提交
  4. 18 2月, 2011 9 次提交
    • F
      usb: otg: notifier: switch to atomic notifier · cccad6d4
      Felipe Balbi 提交于
      most of our notifications, will be called from IRQ
      context, so an atomic notifier suits the job better.
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      cccad6d4
    • H
      usb: musb: OMAP4430: Fix usb device detection if connected during boot · 002eda13
      Hema HK 提交于
      OMAP4430 is embedded with UTMI PHY. This PHY does not support the
      OTG features like ID pin detection and VBUS detection. This function
      is exported to an external companion chip TWL6030. Software must retrieve
      the OTG HNP and SRP status from the TWL6030 and configure the bits inside
      the control module that drive the related USBOTGHS UTMI interface signals.
      It must also read back the UTMI signals needed to configure the TWL6030
      OTG module.
      
      Can find more details in the TRM[1].
      [1]:http://focus.ti.com/pdfs/wtbu/OMAP4430_ES2.0_Public_TRM_vJ.pdf
      
      In OMAP4430 musb driver VBUS and ID notifications are received from the
      transceiver driver. If the cable/device is connected during boot,
      notifications from transceiver driver will be missed till musb driver
      is loaded.
      Patch to configure the transceiver in the platform_enable/disable
      functions and enable the vbus in the gadget driver based on the
      last_event of the otg_transceiver.
      Signed-off-by: NHema HK <hemahk@ti.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Paul Walmsley <paul@pwsan.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      002eda13
    • H
      usb: otg: TWL6030 Save the last event in otg_transceiver · 647b2d9c
      Hema HK 提交于
      Save the last event in the otg_transceiver so that it can used in the
      musb driver and gadget driver to configure the musb and enable the
      vbus for host mode and OTG mode, if the device is connected during boot.
      Signed-off-by: NHema HK <hemahk@ti.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Paul Walmsley <paul@pwsan.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      647b2d9c
    • H
      usb: otg: TWL6030: Introduce the twl6030_phy_suspend function. · 070b8ed9
      Hema HK 提交于
      Introduce the twl6030_phy_suspend function and assign to otg.set_suspend
      function pointer.
      This function is used by the musb-omap2430 platform driver
      during suspend/resume.
      Signed-off-by: NHema HK <hemahk@ti.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Paul Walmsley <paul@pwsan.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      070b8ed9
    • H
      usb: otg: OMAP4430: Introducing suspend function for power management · ee896e34
      Hema HK 提交于
      Introduced the suspend/resume function for the OMAP4430 internal PHY.
      This will be used by the twl6030-usb transceiver driver.
      Moved the clock enable/disable function calls and power on/off of the PHY
      code from power on/off functions to suspend/resume function.
      
      Pass the suspend function through board data for OMAP4430sdp and OMAP4panda.
      This will be used by the twl6030-usb transceiver driver.
      Signed-off-by: NHema HK <hemahk@ti.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Paul Walmsley <paul@pwsan.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      ee896e34
    • H
      usb: otg: OMAP4430: Add phy_suspend function pointer to twl4030_usb_data · d8692748
      Hema HK 提交于
      Declare the .phy_suspend function pointer to twl4030_usb_data structure.
      OMAP internal phy suspend function will be hooked though this function
      pointer to use in the transceiver driver.
      Signed-off-by: NHema HK <hemahk@ti.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Paul Walmsley <paul@pwsan.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      d8692748
    • H
      usb: otg: Remove one unnecessary I2C read request. · 31e9992a
      Hema HK 提交于
      To get the ID status there was an I2C read transfer. Removed this I2C
      read transfer as this info can be used from existing variable(linkstat).
      Signed-off-by: NHema HK <hemahk@ti.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Paul Walmsley <paul@pwsan.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      31e9992a
    • H
      usb: otg: enable regulator only on cable/device connect · 6dc2503b
      Hema HK 提交于
      Remove the regulator enable while driver loading and enable it only when
      the cable/device is connected and disable it when disconnected.
      
      Remove the configuration of config_state and config_trans register
      configuration as these registers are programmed when regulator
      enable/disable is called.
      Signed-off-by: NHema HK <hemahk@ti.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Paul Walmsley <paul@pwsan.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      6dc2503b
    • H
      usb: musb: Using runtime pm APIs for musb. · 207b0e1f
      Hema HK 提交于
      Calling runtime pm APIs pm_runtime_put_sync() and pm_runtime_get_sync()
      for enabling/disabling the clocks, sysconfig settings.
      
      Enable clock, configure no-idle/standby when active and configure force idle/standby
      and disable clock when idled. This is taken care by the runtime framework when
      driver calls the pm_runtime_get_sync and pm_runtime_put_sync APIs.
      Need to configure MUSB into force standby and force idle mode when usb not used
      Signed-off-by: NHema HK <hemahk@ti.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Kevin Hilman <khilman@deeprootsystems.com>
      Cc: Cousson, Benoit <b-cousson@ti.com>
      Cc: Paul Walmsley <paul@pwsan.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      207b0e1f