1. 25 6月, 2012 2 次提交
  2. 13 2月, 2012 2 次提交
  3. 04 1月, 2012 1 次提交
  4. 23 8月, 2011 1 次提交
    • A
      pda_power: Fix build error if !CONFIG_USB_OTG_UTILS · 1c74529d
      Axel Lin 提交于
      commit 9ad63986
      "pda_power: Add support for using otg transceiver events"
      introduces below build error if !CONFIG_USB_OTG_UTILS.
      
        CC      drivers/power/pda_power.o
      drivers/power/pda_power.c: In function 'pda_power_probe':
      drivers/power/pda_power.c:322: error: 'otg_is_usb_online' undeclared (first use in this function)
      drivers/power/pda_power.c:322: error: (Each undeclared identifier is reported only once
      drivers/power/pda_power.c:322: error: for each function it appears in.)
      drivers/power/pda_power.c:325: error: 'otg_is_ac_online' undeclared (first use in this function)
      drivers/power/pda_power.c:371: error: 'otg_handle_notification' undeclared (first use in this function)
      make[2]: *** [drivers/power/pda_power.o] Error 1
      make[1]: *** [drivers/power] Error 2
      make: *** [drivers] Error 2
      
      This patch adds #ifdef CONFIG_USB_OTG_UTILS guards at necessary places to fix
      build errors.
      Signed-off-by: NAxel Lin <axel.lin@gmail.com>
      Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
      1c74529d
  5. 20 8月, 2011 1 次提交
  6. 16 4月, 2010 1 次提交
  7. 03 2月, 2009 1 次提交
    • P
      pda_power: Add optional OTG transceiver and voltage regulator support · 5bf2b994
      Philipp Zabel 提交于
      This patch allows machines to use an OTG transceiver driver instead of
      supplying a custom is_usb_online callback to check USB power.
      Also, in the case that the OTG transceiver handles charger control when
      connected to USB, a regulator named "ac_draw" can be supplied instead of
      the custom set_charge callback to control the charger when connected to
      AC.
      
      The check for (transceiver->state == OTG_STATE_B_PERIPHERAL) in
      otg_is_usb_online is probably too simple, I'm just using this with a
      peripheral only device and gpio_vbus + bq24022. I'm not sure which other
      OTG states can supply power.
      Signed-off-by: NPhilipp Zabel <philipp.zabel@gmail.com>
      Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
      5bf2b994
  8. 26 1月, 2009 1 次提交
  9. 01 9月, 2008 1 次提交
  10. 26 7月, 2008 1 次提交
  11. 03 5月, 2008 1 次提交
  12. 02 2月, 2008 4 次提交
  13. 16 7月, 2007 2 次提交
  14. 10 7月, 2007 1 次提交
    • A
      [BATTERY] pda_power platform driver · b2998049
      Anton Vorontsov 提交于
      Common power driver for PDAs and phones with one or two external
      power supplies (AC/USB) connected to main and backup batteries,
      and optional builtin charger.
      
      It's used to stop logic duplication through different embedded
      devices. So, power supply *logic* is here. pda_power register
      power supplies, and will take care about notifying batteries
      about power changes through external power interface.
      
      Currently, power consumption legal limits (including USB power
      consumption) should be handled by platform code, inside set_charge
      function.
      Signed-off-by: NAnton Vorontsov <cbou@mail.ru>
      Signed-off-by: NRoman Moravcik <roman.moravcik@gmail.com>
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      b2998049