mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jenny TC <jenny.tc@intel.com>
To: Anton Vorontsov <anton.vorontsov@linaro.org>,
	Anton Vorontsov <cbouatmailru@gmail.com>,
	linux-kernel@vger.kernel.org
Cc: Pallala Ramakrishna <ramakrishna.pallala@intel.com>,
	Chanwoo Choi <cw00.choi@samsung.com>,
	myungjoo.ham@samsung.com, Jenny TC <jenny.tc@intel.com>
Subject: [PATCH 0/7] power_supply: Introduce charging Framework
Date: Thu, 18 Oct 2012 22:13:59 +0530	[thread overview]
Message-ID: <1350578646-3315-1-git-send-email-jenny.tc@intel.com> (raw)

The Power Supply charging framework connects multiple subsystems
to do charging in a generic way. The subsystems involves power_supply,
extcon, and thermal. With this the charging is handled in a generic way.

The framework makes use of different new features - Battery Identification
framework, pluggable charging algorithms, charger cable arbitrations.
PSE compliant charging algorithm also enabled as part of this patchset.

With this framework the charging logic can be kept outside the charger driver.
The charger driver just need to expose th get_property and set_property functions
to get and set a specific set of power supply properties. The driver can
convert these values to the hardware configurations to setup charging.


Jenny TC (7):
  power_supply : Introduce battery identification framework
  power_supply: Add charger control properties
  power_supply : add supported charger cable  feature
  power_supply: add throttle state
  power_supply: Introduce Power Supply charging framework
  power_supply: enable charger framework callbacks
  power_supply: Introduce PSE compliant algorithm

 drivers/power/Kconfig                |   28 ++
 drivers/power/Makefile               |    3 +
 drivers/power/battery_id.c           |   94 +++++
 drivers/power/charging_algo_pse.c    |   79 +++++
 drivers/power/power_supply.h         |   20 ++
 drivers/power/power_supply_charger.c |  634 ++++++++++++++++++++++++++++++++++
 drivers/power/power_supply_charger.h |  165 +++++++++
 drivers/power/power_supply_core.c    |   12 +
 drivers/power/power_supply_sysfs.c   |   16 +-
 include/linux/power/battery_id.h     |   97 ++++++
 include/linux/power_supply.h         |   53 ++-
 11 files changed, 1189 insertions(+), 12 deletions(-)
 create mode 100644 drivers/power/battery_id.c
 create mode 100644 drivers/power/charging_algo_pse.c
 create mode 100644 drivers/power/power_supply_charger.c
 create mode 100644 drivers/power/power_supply_charger.h
 create mode 100644 include/linux/power/battery_id.h

-- 
1.7.9.5


             reply	other threads:[~2012-10-18 11:12 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-18 16:43 Jenny TC [this message]
2012-10-18 16:44 ` [PATCH 1/7] power_supply : Introduce battery identification framework Jenny TC
2012-10-18 16:44 ` [PATCH 2/7] power_supply: Add charger control properties Jenny TC
2012-11-19  0:50   ` Anton Vorontsov
2012-10-18 16:44 ` [PATCH 3/7] power_supply : add supported charger cable feature Jenny TC
2012-11-19  0:52   ` Anton Vorontsov
2012-10-18 16:44 ` [PATCH 4/7] power_supply: add throttle state Jenny TC
2012-11-19  2:39   ` Anton Vorontsov
2012-10-18 16:44 ` [PATCH 5/7] power_supply: Introduce Power Supply charging framework Jenny TC
2012-11-19  2:39   ` Anton Vorontsov
2012-10-18 16:44 ` [PATCH 6/7] power_supply: enable charger framework callbacks Jenny TC
2012-10-18 16:44 ` [PATCH 7/7] power_supply: Introduce PSE compliant algorithm Jenny TC

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1350578646-3315-1-git-send-email-jenny.tc@intel.com \
    --to=jenny.tc@intel.com \
    --cc=anton.vorontsov@linaro.org \
    --cc=cbouatmailru@gmail.com \
    --cc=cw00.choi@samsung.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=myungjoo.ham@samsung.com \
    --cc=ramakrishna.pallala@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®