1. 16 12月, 2010 5 次提交
  2. 11 12月, 2010 26 次提交
  3. 10 12月, 2010 9 次提交
    • H
      arm: OMAP4430: musb: Configure musb to OTG mode · 09e72002
      Hema HK 提交于
      Enabling the musb OTG mode for SDP and PANDA boards.
      Signed-off-by: NHema HK <hemahk@ti.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      09e72002
    • H
      usb: musb: Adding musb support for OMAP4430 · 594632ef
      Hema HK 提交于
      OMAP4430 supports UTMI and ULPI types of transceiver interface.
      
      In UTMI mode: The PHY is embedded within OMAP4430. The transceiver functionality
      is split between the twl6030 PMIC chip and OMAP4430. The VBUS, ID pin
      sensing and OTG SRP generation part is integrated in TWL6030 and UTMI PHY
      functionality is embedded within the OMAP4430.
      
      There is no direct interactions between the MUSB controller and TWL6030
      chip to communicate the session-valid, session-end and ID-GND events.
      It has to be done through a software by setting/resetting bits in
      one of the control module register of OMAP4430 which in turn toggles
      the appropriate signals to MUSB controller.
      
      musb driver is register for blocking notifications from the transceiver
      driver to get the event notifications for connect/disconnect and ID-GND.
      Based on these events call the transceiver init/shutdown function to
      configure the transceiver to toggle the VBUS valid, session end and ID_GND
      signals to musb and power on/off the internal PHY.
      
      For ID_GND event notifications, toggle the ID_GND signal and then wait for
      musb to be configured as "A" device, and then call the transceiver function
      to set the VBUS.
      
      In OTG mode and musb as a host, When the Micro A connector used, VBUS is turned on
      and session bit set. When the device is connected, enumeration goes through.
      When the device disconnected from the other end of the connector(ID is still grounded),
      link will detect the disconnect and end the session. When the device is connected back,
      there are no events generated in the TWL6030-usb, and link is already down.
      So the device is not detected. Removed the session bit disable code which
      will recognize the connect of the device.
      
      Limitation: In OTG host mode, if device is connected during boot, it does not get
      detected. If disconnect and connect it back or connect after boot only it works.
      Fix for this, I will submit seperate patch later.
      Signed-off-by: NHema HK <hemahk@ti.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      594632ef
    • H
      usb: otg: TWL6030: Add twl6030_usb file for compilation · 221946d0
      Hema HK 提交于
      Add the twl6030_usb transceiver file for compilation.
      Signed-off-by: NHema HK <hemahk@ti.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      221946d0
    • H
      mfd: TWL6030: OMAP4: Registering the TWL6030-usb device · e70357e3
      Hema HK 提交于
      Registering the twl6030-usb transceiver device as a child to twl6030 core.
      Removed the NOP transceiver init call from board file.
      
      Populated twl4030_usb_data platform data structure with the function
      pointers for OMAP4430 internal PHY operation to be used by twl630-usb driver.
      Signed-off-by: NHema HK <hemahk@ti.com>
      Cc: Samuel Ortiz <sameo@linux.intel.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      e70357e3
    • H
      usb: musb: TWL6030: Selecting TWL6030_USB transceiver · 4c42fbc9
      Hema HK 提交于
      Selecting the twl6030-usb for OMAP4430SDP and OMAP4PANDA boards and
      adding OMAP4 internal phy code for compilation
      Signed-off-by: NHema HK <hemahk@ti.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      4c42fbc9
    • H
      usb: otg: Kconfig: Add Kconfig option for TWL6030 transceiver. · 6b296123
      Hema HK 提交于
      Added the TWL6030-usb transceiver option in the Kconfig
      Signed-off-by: NHema HK <hemahk@ti.com>
      Cc: David Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      6b296123
    • H
      usb: otg: Adding twl6030-usb transceiver driver for OMAP4430 · c33fad0c
      Hema HK 提交于
      Adding the twl6030-usb transceiver support for OMAP4 musb driver.
      
      OMAP4 supports 2 types of transceiver interface.
      
      1. UTMI: The PHY is embedded within OMAP4. The transceiver functionality
      is split between the twl6030 PMIC chip and OMAP4430. The VBUS, ID pin
      sensing and OTG SRP generation part is integrated in TWL6030 and UTMI PHY
      functionality is embedded within the OMAP4430.
      
      There is no direct interactions between the MUSB controller and TWL6030
      chip to communicate the session-valid, session-end and ID-GND events.
      It has to be done through a software by setting/resetting bits in
      one of the control module register of OMAP4430 which in turn toggles
      the appropriate signals to MUSB controller.
      
      The internal transceiver has functional clocks and
      powerdown bits to powerdown the PHY for power saving.
      
      Since there is no option available for having 2 transceiver drivers
      for one USB controller, internal PHY specific APIs are passed through
      plaform_data function pointers to use in the twl6030-usb transceiver
      driver.
      
      2. ULPI interface is provided for off-chip transceivers.
      Signed-off-by: NHema HK <hemahk@ti.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: David Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      c33fad0c
    • H
      mfd: TWL6030: USBOTG VBUS event generation on · 77b1d3fa
      Hema HK 提交于
      With TWL6030-usb, VBUS SESS_VLD and SESS_END events are not generated
      as expected. When these interrupts are enabled, charger VBUS detection
      interrupt does not get generated. So USBOTG has to be dependent on charger
      VBUS interrupts.
      So added one bit for USBOTG and changed the handler to call the
      USBOTG handler whenever there is a charger VBUS interrpt.
      
      VBUS SESS_VLD and SESS_END event generation issue is under debug with
      HW team. This fix might not be required once after fixing the issue.
      Signed-off-by: NBalaji TK <balajitk@ti.com>
      Signed-off-by: NHema HK <hemahk@ti.com>
      Cc: Samuel Ortiz <sameo@linux.intel.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      77b1d3fa
    • M
      usb: musb: add support for ux500 platform · 4bc36fd3
      Mian Yousaf Kaukab 提交于
      Initial support for u8500 and u5500 platform.
      Signed-off-by: NMian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>
      Acked-by: NLinus Walleij <linus.walleij@stericsson.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      4bc36fd3