• P
    USB: OTG: msm: Implement charger detection · d860852e
    Pavankumar Kondeti 提交于
    Implement good battery algorithm defined in the battery charging V1.2 spec
    for detecting different charging ports.  USB hardware is put into low power
    mode when connected to a dedicated charging port.  vbus_draw and set_power
    methods are implemented for determining the allowed current from Host in
    different states (un-configured/suspend/configured).
    
    The charger block is implemented using vendor specific registers and the
    PHY used in MSM8960(28nm PHY) different from older targets like MSM8x60
    and MSM7x30(45nm PHY).  The PHY vendor and product id registers are not
    implemented in the above chipsets.  Hence PHY type is passed via platform
    data.
    Signed-off-by: NPavankumar Kondeti <pkondeti@codeaurora.org>
    Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
    d860852e
msm_otg.c 35.9 KB