properties which exposed in sysfs
Signed-off-by: Jenny TC
---
include/linux/power_supply.h | 28
1 file changed, 28 insertions(+)
diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h
index 30145d8e..a80a3ef 100644
--- a/include/linux/power_supply.h
either using power supply
interface or with regulator interface. The charging is setup
based on battery parameters received through the battery info
handlers.
Signed-off-by: Jenny TC
---
drivers/power/charger-manager.c | 486 +
include/linux/power/charger
functions to manager the battery
specification.
Signed-off-by: Jonghwa Lee
Signed-off-by: Jenny TC
---
drivers/power/power_supply_core.c | 86 +
include/linux/power_supply.h | 12 ++
2 files changed, 98 insertions(+)
diff --git a/drivers/power
Charging current (CC) and charging voltage (CV) may vary based on
battery temperature. To support CC and CV for different temperature
zones, defined a charging object which holds the properties related
to battery charging.
Signed-off-by: Jenny TC
---
include/linux/power_supply.h | 27
introduced in
https://lkml.org/lkml/2014/8/13/355 to charger manager.
Jenny TC (4):
power_supply: Introduce charging object table
power: core: Add generic interface to get battery specification.
power_supply: Introduce charger control interface
charger-manager: Enable psy based charge control
introduced in
https://lkml.org/lkml/2014/8/13/355 to charger manager.
Jenny TC (4):
power_supply: Introduce charging object table
power: core: Add generic interface to get battery specification.
power_supply: Introduce charger control interface
charger-manager: Enable psy based charge control
properties which exposed in sysfs
Signed-off-by: Jenny TC jenny...@intel.com
---
include/linux/power_supply.h | 28
1 file changed, 28 insertions(+)
diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h
index 30145d8e..a80a3ef 100644
--- a/include
either using power supply
interface or with regulator interface. The charging is setup
based on battery parameters received through the battery info
handlers.
Signed-off-by: Jenny TC jenny...@intel.com
---
drivers/power/charger-manager.c | 486 +
include
functions to manager the battery
specification.
Signed-off-by: Jonghwa Lee jonghwa3@samsung.com
Signed-off-by: Jenny TC jenny...@intel.com
---
drivers/power/power_supply_core.c | 86 +
include/linux/power_supply.h | 12 ++
2 files changed, 98
Charging current (CC) and charging voltage (CV) may vary based on
battery temperature. To support CC and CV for different temperature
zones, defined a charging object which holds the properties related
to battery charging.
Signed-off-by: Jenny TC jenny...@intel.com
---
include/linux
the charging logic out of the charger chip driver
and the charger chip driver can just listen to the request from the power
supply charging driver to set the charger properties. This can be implemented
by exposing get_property and set_property callbacks.
Signed-off-by: Jenny TC
---
Documentation
by the power supply
charging driver based on the type of the battery charging profile.
Signed-off-by: Jenny TC
---
drivers/power/Kconfig | 15 ++
drivers/power/Makefile |1 +
drivers/power/charging_algo_pse.c | 216
is supported in charger-manager as
suggested by Sebastian. Fixed review comments from Sebastian and Pavel
Jenny TC (3):
power_supply: Introduce generic psy charging driver
power_supply: Introduce PSE compliant algorithm
power_supply: bq24261 charger driver
Documentation/power
This patch introduces BQ24261 charger driver. The driver makes use of power
supply charging driver to setup charging. So the driver does hardware
abstraction and handles h/w specific corner cases. The charging logic resides
with power supply charging driver
Signed-off-by: Jenny TC
---
drivers
is supported in charger-manager as
suggested by Sebastian. Fixed review comments from Sebastian and Pavel
Jenny TC (3):
power_supply: Introduce generic psy charging driver
power_supply: Introduce PSE compliant algorithm
power_supply: bq24261 charger driver
Documentation/power
the charging logic out of the charger chip driver
and the charger chip driver can just listen to the request from the power
supply charging driver to set the charger properties. This can be implemented
by exposing get_property and set_property callbacks.
Signed-off-by: Jenny TC jenny...@intel.com
This patch introduces BQ24261 charger driver. The driver makes use of power
supply charging driver to setup charging. So the driver does hardware
abstraction and handles h/w specific corner cases. The charging logic resides
with power supply charging driver
Signed-off-by: Jenny TC jenny
by the power supply
charging driver based on the type of the battery charging profile.
Signed-off-by: Jenny TC jenny...@intel.com
---
drivers/power/Kconfig | 15 ++
drivers/power/Makefile |1 +
drivers/power/charging_algo_pse.c | 216
by the power supply
charging driver based on the type of the battery charging profile.
Signed-off-by: Jenny TC
---
drivers/power/Kconfig | 15 ++
drivers/power/Makefile |1 +
drivers/power/charging_algo_pse.c | 203
by charger. Indicates the input current for a charging source.
POWER_SUPPLY_PROP_CHARGE_TERM_CURRENT - Charge termination current used
to detect the end of charge condition
Signed-off-by: Jenny TC
---
Documentation/power/power_supply_class.txt |6 ++
drivers/power/power_supply_sysfs.c
: used msecs_to_jiffies instead of HZ directly, modified Kconfig help text
for POWER_SUPPLY_CHARGING_ALGO_PSE
v9: Removed string lookups, static cable initialization
v10: Fixed bug in algorithm lookup
v11: Few variable name changes for better readability
Jenny TC (4):
power_supply: Add inlmt
This patch introduces BQ24261 charger driver. The driver makes use of power
supply charging driver to setup charging. So the driver does hardware
abstraction and handles h/w specific corner cases. The charging logic resides
with power supply charging driver
Signed-off-by: Jenny TC
---
drivers
This patch introduces BQ24261 charger driver. The driver makes use of power
supply charging driver to setup charging. So the driver does hardware
abstraction and handles h/w specific corner cases. The charging logic resides
with power supply charging driver
Signed-off-by: Jenny TC jenny
by charger. Indicates the input current for a charging source.
POWER_SUPPLY_PROP_CHARGE_TERM_CURRENT - Charge termination current used
to detect the end of charge condition
Signed-off-by: Jenny TC jenny...@intel.com
---
Documentation/power/power_supply_class.txt |6 ++
drivers/power
: used msecs_to_jiffies instead of HZ directly, modified Kconfig help text
for POWER_SUPPLY_CHARGING_ALGO_PSE
v9: Removed string lookups, static cable initialization
v10: Fixed bug in algorithm lookup
v11: Few variable name changes for better readability
Jenny TC (4):
power_supply: Add inlmt
by the power supply
charging driver based on the type of the battery charging profile.
Signed-off-by: Jenny TC jenny...@intel.com
---
drivers/power/Kconfig | 15 ++
drivers/power/Makefile |1 +
drivers/power/charging_algo_pse.c | 203
:26:46PM +0200, Belisko Marek wrote:
> Same on my side (some pending patches) but there was already
> discussion: https://lkml.org/lkml/2014/5/16/504
>
> On Mon, Jun 30, 2014 at 1:16 PM, Jenny Tc wrote:
> > Hi all,
> >
> > I have few pending patches on power supply su
:26:46PM +0200, Belisko Marek wrote:
Same on my side (some pending patches) but there was already
discussion: https://lkml.org/lkml/2014/5/16/504
On Mon, Jun 30, 2014 at 1:16 PM, Jenny Tc jenny...@intel.com wrote:
Hi all,
I have few pending patches on power supply subsystem. So far I
Hi all,
I have few pending patches on power supply subsystem. So far I haven't seen any
response from the power supply maintainers. As per the MAINTAINERS entry, the
susbsystem is owned by "Dmitry Eremin-Solenikov ". But
not sure he still maintains the susbsystem, as I don't see any response
by the power supply
charging driver based on the type of the battery charging profile.
Signed-off-by: Jenny TC
---
drivers/power/Kconfig | 15 +++
drivers/power/Makefile |1 +
drivers/power/charging_algo_pse.c | 202
This patch introduces BQ24261 charger driver. The driver makes use of power
supply charging driver to setup charging. So the driver does hardware
abstraction and handles h/w specific corner cases. The charging logic resides
with power supply charging driver
Signed-off-by: Jenny TC
---
drivers
. Indicates
the input current for a charging source.
POWER_SUPPLY_PROP_CHARGE_TERM_CUR - Charge termination current used to detect
the end of charge condition
Signed-off-by: Jenny TC
---
Documentation/power/power_supply_class.txt |6 ++
drivers/power/power_supply_sysfs.c |4
: used msecs_to_jiffies instead of HZ directly, modified Kconfig help text
for POWER_SUPPLY_CHARGING_ALGO_PSE
v9: Removed string lookups, static cable initialization
v10: Fixed bug in algorithm lookup
Jenny TC (4):
power_supply: Add inlmt,iterm, min/max temp props
power_supply: Introduce
. Indicates
the input current for a charging source.
POWER_SUPPLY_PROP_CHARGE_TERM_CUR - Charge termination current used to detect
the end of charge condition
Signed-off-by: Jenny TC jenny...@intel.com
---
Documentation/power/power_supply_class.txt |6 ++
drivers/power/power_supply_sysfs.c
: used msecs_to_jiffies instead of HZ directly, modified Kconfig help text
for POWER_SUPPLY_CHARGING_ALGO_PSE
v9: Removed string lookups, static cable initialization
v10: Fixed bug in algorithm lookup
Jenny TC (4):
power_supply: Add inlmt,iterm, min/max temp props
power_supply: Introduce
This patch introduces BQ24261 charger driver. The driver makes use of power
supply charging driver to setup charging. So the driver does hardware
abstraction and handles h/w specific corner cases. The charging logic resides
with power supply charging driver
Signed-off-by: Jenny TC jenny
by the power supply
charging driver based on the type of the battery charging profile.
Signed-off-by: Jenny TC jenny...@intel.com
---
drivers/power/Kconfig | 15 +++
drivers/power/Makefile |1 +
drivers/power/charging_algo_pse.c | 202
Hi all,
I have few pending patches on power supply subsystem. So far I haven't seen any
response from the power supply maintainers. As per the MAINTAINERS entry, the
susbsystem is owned by Dmitry Eremin-Solenikov dbarysh...@gmail.com. But
not sure he still maintains the susbsystem, as I don't
This patch introduces BQ24261 charger driver. The driver makes use of power
supply charging driver to setup charging. So the driver does hardware
abstraction and handles h/w specific corner cases. The charging logic resides
with power supply charging driver
Signed-off-by: Jenny TC
---
drivers
by the power supply
charging driver based on the type of the battery charging profile.
Signed-off-by: Jenny TC
---
drivers/power/Kconfig | 15 ++
drivers/power/Makefile |1 +
drivers/power/charging_algo_pse.c | 211
. Indicates
the input current for a charging source.
POWER_SUPPLY_PROP_CHARGE_TERM_CUR - Charge termination current used to detect
the end of charge condition
Signed-off-by: Jenny TC
---
Documentation/power/power_supply_class.txt |6 ++
drivers/power/power_supply_sysfs.c |4
: used msecs_to_jiffies instead of HZ directly, modified Kconfig help text
for POWER_SUPPLY_CHARGING_ALGO_PSE
v9: Removed string lookups, static cable initialization
Jenny TC (4):
power_supply: Add inlmt,iterm, min/max temp props
power_supply: Introduce generic psy charging driver
: used msecs_to_jiffies instead of HZ directly, modified Kconfig help text
for POWER_SUPPLY_CHARGING_ALGO_PSE
v9: Removed string lookups, static cable initialization
Jenny TC (4):
power_supply: Add inlmt,iterm, min/max temp props
power_supply: Introduce generic psy charging driver
by the power supply
charging driver based on the type of the battery charging profile.
Signed-off-by: Jenny TC jenny...@intel.com
---
drivers/power/Kconfig | 15 ++
drivers/power/Makefile |1 +
drivers/power/charging_algo_pse.c | 211
. Indicates
the input current for a charging source.
POWER_SUPPLY_PROP_CHARGE_TERM_CUR - Charge termination current used to detect
the end of charge condition
Signed-off-by: Jenny TC jenny...@intel.com
---
Documentation/power/power_supply_class.txt |6 ++
drivers/power/power_supply_sysfs.c
This patch introduces BQ24261 charger driver. The driver makes use of power
supply charging driver to setup charging. So the driver does hardware
abstraction and handles h/w specific corner cases. The charging logic resides
with power supply charging driver
Signed-off-by: Jenny TC jenny
> > +static struct charger_cable cable_list[] = {
> > + {
> > +.psy_cable_type = PSY_CHARGER_CABLE_TYPE_USB_SDP,
> > +},
> > + {
> > +.psy_cable_type = PSY_CHARGER_CABLE_TYPE_USB_CDP,
> > +},
> > + {
> > +.psy_cable_type = PSY_CHARGER_CABLE_TYPE_USB_DCP,
> > +},
> > +
+static struct charger_cable cable_list[] = {
+ {
+.psy_cable_type = PSY_CHARGER_CABLE_TYPE_USB_SDP,
+},
+ {
+.psy_cable_type = PSY_CHARGER_CABLE_TYPE_USB_CDP,
+},
+ {
+.psy_cable_type = PSY_CHARGER_CABLE_TYPE_USB_DCP,
+},
+ {
+
On Mon, Apr 28, 2014 at 07:56:06PM +0200, Pavel Machek wrote:
> On Mon 2014-04-28 22:24:36, Jenny Tc wrote:
> > Dmitry/Pavel,
> >
> > Request your feedback on this. Fixed the comments from Pavel and waiting
> > for
> > your feedback on the changes
&
On Mon, Apr 28, 2014 at 07:56:06PM +0200, Pavel Machek wrote:
On Mon 2014-04-28 22:24:36, Jenny Tc wrote:
Dmitry/Pavel,
Request your feedback on this. Fixed the comments from Pavel and waiting
for
your feedback on the changes
IIRC, my latest comments were this is completely
On Fri, Mar 07, 2014 at 09:25:20PM +0100, Pavel Machek wrote:
Hi,
> > The Power Supply charging driver connects multiple subsystems
> > to do charging in a generic way. The subsystems involves power_supply,
> > thermal and battery communication subsystems (1wire).With this the charging
> > is
>
On Fri, Mar 07, 2014 at 09:12:40PM +0100, Pavel Machek wrote:
> On Fri 2014-03-07 10:59:31, Jenny TC wrote:
> > Add new power supply properties for input current, charge termination
> > current, min and max temperature
> >
> > POWER_SUPPLY_PROP_TEMP_MIN - min
On Fri, Mar 07, 2014 at 09:12:40PM +0100, Pavel Machek wrote:
On Fri 2014-03-07 10:59:31, Jenny TC wrote:
Add new power supply properties for input current, charge termination
current, min and max temperature
POWER_SUPPLY_PROP_TEMP_MIN - minimum operatable temperature
On Fri, Mar 07, 2014 at 09:25:20PM +0100, Pavel Machek wrote:
Hi,
The Power Supply charging driver connects multiple subsystems
to do charging in a generic way. The subsystems involves power_supply,
thermal and battery communication subsystems (1wire).With this the charging
is
handled
On Sat, Feb 01, 2014 at 09:06:48AM -0700, Dmitry Eremin-Solenikov wrote:
> Hello,
>
> On Thu, Jan 30, 2014 at 10:46 PM, Jenny Tc wrote:
> >
> > Do we have any mailing list for power_supply subsystem? If not what about
> > having
> > one - linux-power-sup...@v
This patch introduces BQ24261 charger driver. The driver makes use of power
supply charging driver to setup charging. So the driver does hardware
abstraction and handles h/w specific corner cases. The charging logic resides
with power supply charging driver
Signed-off-by: Jenny TC
---
drivers
. Indicates
the input current for a charging source.
POWER_SUPPLY_PROP_CHARGE_TERM_CUR - Charge termination current used to detect
the end of charge condition
Signed-off-by: Jenny TC
---
Documentation/power/power_supply_class.txt |6 ++
drivers/power/power_supply_sysfs.c |4
be implemented
by exposing get_property and set property callbacks.
Jenny TC (4):
power_supply: Add inlmt,iterm, min/max temp props
power_supply: Introduce generic psy charging driver
power_supply: Introduce PSE compliant algorithm
power_supply: bq24261 charger driver
Documentation/power
by the power supply
charging driver based on the type of the battery charging profile.
Signed-off-by: Jenny TC
---
drivers/power/Kconfig | 15 ++
drivers/power/Makefile |1 +
drivers/power/charging_algo_pse.c | 204
On Fri, Mar 07, 2014 at 11:03:02AM +0800, Linus Walleij wrote:
> On Fri, Feb 28, 2014 at 12:27 PM, Jenny Tc wrote:
> > On Thu, Feb 27, 2014 at 09:08:01PM +0100, Linus Walleij wrote:
> >> On Thu, Feb 20, 2014 at 6:53 AM, Jenny TC wrote:
> >>
> >> > +++ b/inc
On Fri, Mar 07, 2014 at 11:34:14AM +0800, Linus Walleij wrote:
> On Fri, Feb 28, 2014 at 11:07 AM, Jenny Tc wrote:
> > On Thu, Feb 27, 2014 at 09:18:57PM +0100, Linus Walleij wrote:
> >> On Tue, Feb 4, 2014 at 6:12 AM, Jenny TC wrote:
> >>
> >> >
On Fri, Mar 07, 2014 at 11:34:14AM +0800, Linus Walleij wrote:
On Fri, Feb 28, 2014 at 11:07 AM, Jenny Tc jenny...@intel.com wrote:
On Thu, Feb 27, 2014 at 09:18:57PM +0100, Linus Walleij wrote:
On Tue, Feb 4, 2014 at 6:12 AM, Jenny TC jenny...@intel.com wrote:
+static inline bool
On Fri, Mar 07, 2014 at 11:03:02AM +0800, Linus Walleij wrote:
On Fri, Feb 28, 2014 at 12:27 PM, Jenny Tc jenny...@intel.com wrote:
On Thu, Feb 27, 2014 at 09:08:01PM +0100, Linus Walleij wrote:
On Thu, Feb 20, 2014 at 6:53 AM, Jenny TC jenny...@intel.com wrote:
+++ b/include/linux/power
by the power supply
charging driver based on the type of the battery charging profile.
Signed-off-by: Jenny TC jenny...@intel.com
---
drivers/power/Kconfig | 15 ++
drivers/power/Makefile |1 +
drivers/power/charging_algo_pse.c | 204
. Indicates
the input current for a charging source.
POWER_SUPPLY_PROP_CHARGE_TERM_CUR - Charge termination current used to detect
the end of charge condition
Signed-off-by: Jenny TC jenny...@intel.com
---
Documentation/power/power_supply_class.txt |6 ++
drivers/power/power_supply_sysfs.c
be implemented
by exposing get_property and set property callbacks.
Jenny TC (4):
power_supply: Add inlmt,iterm, min/max temp props
power_supply: Introduce generic psy charging driver
power_supply: Introduce PSE compliant algorithm
power_supply: bq24261 charger driver
Documentation/power
This patch introduces BQ24261 charger driver. The driver makes use of power
supply charging driver to setup charging. So the driver does hardware
abstraction and handles h/w specific corner cases. The charging logic resides
with power supply charging driver
Signed-off-by: Jenny TC jenny
On Sat, Feb 01, 2014 at 09:06:48AM -0700, Dmitry Eremin-Solenikov wrote:
Hello,
On Thu, Jan 30, 2014 at 10:46 PM, Jenny Tc jenny...@intel.com wrote:
Do we have any mailing list for power_supply subsystem? If not what about
having
one - linux-power-sup...@vger.kernel.org?
I'm
This patch introduces BQ24261 charger driver. The driver makes use of power
supply charging driver to setup charging. So the driver does hardware
abstraction and handles h/w specific corner cases. The charging logic resides
with power supply charging driver
Signed-off-by: Jenny TC
---
drivers
by the power supply
charging driver based on the type of the battery charging profile.
Signed-off-by: Jenny TC
---
drivers/power/Kconfig | 13 ++
drivers/power/Makefile |1 +
drivers/power/charging_algo_pse.c | 204
. Indicates
the input current for a charging source.
POWER_SUPPLY_PROP_CHARGE_TERM_CUR - Charge termination current used to detect
the end of charge condition
Signed-off-by: Jenny TC
---
Documentation/power/power_supply_class.txt |6 ++
drivers/power/power_supply_sysfs.c |4
logic out of the charger chip driver
and the charger chip driver can just listen to the request from the power
supply charging driver to set the charger properties. This can be implemented
by exposing get_property and set property callbacks.
Jenny TC (4):
power_supply: Add inlmt,iterm, min/max
. Indicates
the input current for a charging source.
POWER_SUPPLY_PROP_CHARGE_TERM_CUR - Charge termination current used to detect
the end of charge condition
Signed-off-by: Jenny TC jenny...@intel.com
---
Documentation/power/power_supply_class.txt |6 ++
drivers/power/power_supply_sysfs.c
logic out of the charger chip driver
and the charger chip driver can just listen to the request from the power
supply charging driver to set the charger properties. This can be implemented
by exposing get_property and set property callbacks.
Jenny TC (4):
power_supply: Add inlmt,iterm, min/max
by the power supply
charging driver based on the type of the battery charging profile.
Signed-off-by: Jenny TC jenny...@intel.com
---
drivers/power/Kconfig | 13 ++
drivers/power/Makefile |1 +
drivers/power/charging_algo_pse.c | 204
This patch introduces BQ24261 charger driver. The driver makes use of power
supply charging driver to setup charging. So the driver does hardware
abstraction and handles h/w specific corner cases. The charging logic resides
with power supply charging driver
Signed-off-by: Jenny TC jenny
On Fri, Feb 28, 2014 at 11:08:16AM +0100, Pavel Machek wrote:
> On Fri 2014-02-28 08:37:27, Jenny Tc wrote:
> > On Thu, Feb 27, 2014 at 09:18:57PM +0100, Linus Walleij wrote:
> > > On Tue, Feb 4, 2014 at 6:12 AM, Jenny TC wrote:
> > >
> > > >
On Fri, Feb 28, 2014 at 11:08:16AM +0100, Pavel Machek wrote:
On Fri 2014-02-28 08:37:27, Jenny Tc wrote:
On Thu, Feb 27, 2014 at 09:18:57PM +0100, Linus Walleij wrote:
On Tue, Feb 4, 2014 at 6:12 AM, Jenny TC jenny...@intel.com wrote:
+static inline bool __is_battery_full
On Thu, Feb 27, 2014 at 09:08:01PM +0100, Linus Walleij wrote:
> On Thu, Feb 20, 2014 at 6:53 AM, Jenny TC wrote:
>
> > +++ b/include/linux/power/power_supply_charger.h
>
> > +#define MAX_CUR_VOLT_SAMPLES 3
> > +#define DEF_CUR_VOLT_SAMPLE_JIFF (30*HZ)
>
>
On Thu, Feb 27, 2014 at 09:18:57PM +0100, Linus Walleij wrote:
> On Tue, Feb 4, 2014 at 6:12 AM, Jenny TC wrote:
>
> > +static inline bool __is_battery_full
> > + (long volt, long cur, long iterm, unsigned long cv)
>
> Overall I wonder if you've run checkpatch o
On Thu, Feb 27, 2014 at 08:47:07PM +0100, Linus Walleij wrote:
> On Wed, Feb 26, 2014 at 3:54 AM, Jenny Tc wrote:
>
> > The idea is to allow pluggable charging algorithms. Currently we have only
> > one
> > charging algorithm proposed, but can have other charging alg
On Thu, Feb 27, 2014 at 08:47:07PM +0100, Linus Walleij wrote:
On Wed, Feb 26, 2014 at 3:54 AM, Jenny Tc jenny...@intel.com wrote:
The idea is to allow pluggable charging algorithms. Currently we have only
one
charging algorithm proposed, but can have other charging algorithms (like
On Thu, Feb 27, 2014 at 09:18:57PM +0100, Linus Walleij wrote:
On Tue, Feb 4, 2014 at 6:12 AM, Jenny TC jenny...@intel.com wrote:
+static inline bool __is_battery_full
+ (long volt, long cur, long iterm, unsigned long cv)
Overall I wonder if you've run checkpatch on these patches
On Thu, Feb 27, 2014 at 09:08:01PM +0100, Linus Walleij wrote:
On Thu, Feb 20, 2014 at 6:53 AM, Jenny TC jenny...@intel.com wrote:
+++ b/include/linux/power/power_supply_charger.h
+#define MAX_CUR_VOLT_SAMPLES 3
+#define DEF_CUR_VOLT_SAMPLE_JIFF (30*HZ)
Why are things defined
On Fri, Feb 21, 2014 at 03:45:29PM +0100, Pavel Machek wrote:
> On Thu 2014-02-20 10:46:55, Jenny Tc wrote:
> > On Tue, Feb 04, 2014 at 12:36:40PM +0100, Pavel Machek wrote:
> > > > --- a/drivers/power/Kconfig
> > > > +++ b/drivers/power/Kconfig
On Fri, Feb 21, 2014 at 03:44:00PM +0100, Pavel Machek wrote:
> Hi!
>
> > > > +static inline int bq24261_set_cv(struct bq24261_charger *chip, int cv)
> > > > +{
> > > > + int bat_volt;
> > > > + int ret;
> > > > + u8 reg_val;
> > > > + u8 vindpm_val = 0x0;
> > > > +
> > >
On Fri, Feb 21, 2014 at 02:19:28PM +0100, Johannes Berg wrote:
> From: Johannes Berg
>
> Since there are registration/unregistration functions and the
> invocation is in the core code, there's no need to export the
> notifier chain head, make it static instead.
This is a generic notifier which
On Fri, Feb 21, 2014 at 02:19:28PM +0100, Johannes Berg wrote:
From: Johannes Berg johannes.b...@intel.com
Since there are registration/unregistration functions and the
invocation is in the core code, there's no need to export the
notifier chain head, make it static instead.
This is a
On Fri, Feb 21, 2014 at 03:44:00PM +0100, Pavel Machek wrote:
Hi!
+static inline int bq24261_set_cv(struct bq24261_charger *chip, int cv)
+{
+ int bat_volt;
+ int ret;
+ u8 reg_val;
+ u8 vindpm_val = 0x0;
+
+ /*
+ * Setting
On Fri, Feb 21, 2014 at 03:45:29PM +0100, Pavel Machek wrote:
On Thu 2014-02-20 10:46:55, Jenny Tc wrote:
On Tue, Feb 04, 2014 at 12:36:40PM +0100, Pavel Machek wrote:
--- a/drivers/power/Kconfig
+++ b/drivers/power/Kconfig
@@ -22,6 +22,19 @@ config POWER_SUPPLY_CHARGER
On Mon, Feb 17, 2014 at 10:05:49AM +0100, Krzysztof Kozlowski wrote:
> +static inline int max14577_init_eoc(struct max14577_charger *chg,
> + unsigned int uamp)
> +{
> + unsigned int current_bits = 0xf;
> + u8 reg_data;
> +
> + switch (chg->maxim_core->dev_type) {
> +
This patch introduces BQ24261 charger driver. The driver makes use of power
supply charging driver to setup charging. So the driver does hardware
abstraction and handles h/w specific corner cases. The charging logic resides
with power supply charging driver
Signed-off-by: Jenny TC
---
drivers
by the power supply
charging driver based on the type of the battery charging profile.
Signed-off-by: Jenny TC
---
drivers/power/Kconfig | 13 ++
drivers/power/Makefile |1 +
drivers/power/charging_algo_pse.c | 204
. Indicates
the input current for a charging source.
POWER_SUPPLY_PROP_CHARGE_TERM_CUR - Charge termination current used to detect
the end of charge condition
Signed-off-by: Jenny TC
---
Documentation/power/power_supply_class.txt |6 ++
drivers/power/power_supply_sysfs.c |4
and the charger chip driver can just listen to the request from the power
supply charging driver to set the charger properties. This can be implemented
by exposing get_property and set property callbacks.
Jenny TC (4):
power_supply: Add inlmt,iterm, min/max temp props
power_supply: Introduce generic psy
On Tue, Feb 04, 2014 at 12:36:40PM +0100, Pavel Machek wrote:
> > --- a/drivers/power/Kconfig
> > +++ b/drivers/power/Kconfig
> > @@ -22,6 +22,19 @@ config POWER_SUPPLY_CHARGER
> > drivers to keep the charging logic outside and the charger driver
> > just need to abstract the charger
On Tue, Feb 04, 2014 at 12:36:21PM +0100, Pavel Machek wrote:
> > +#define BQ24261_MIN_CV 3500
> > +#define BQ24261_MAX_CV 4440
>
> Other defines use uV as an unit :-(.
uV is used if the value is read from psy class. For register configurations
uses mV. Will change the name to reflect mV
> > +
On Tue, Feb 04, 2014 at 12:36:21PM +0100, Pavel Machek wrote:
+#define BQ24261_MIN_CV 3500
+#define BQ24261_MAX_CV 4440
Other defines use uV as an unit :-(.
uV is used if the value is read from psy class. For register configurations
uses mV. Will change the name to reflect mV
+ /* If
On Tue, Feb 04, 2014 at 12:36:40PM +0100, Pavel Machek wrote:
--- a/drivers/power/Kconfig
+++ b/drivers/power/Kconfig
@@ -22,6 +22,19 @@ config POWER_SUPPLY_CHARGER
drivers to keep the charging logic outside and the charger driver
just need to abstract the charger hardware.
. Indicates
the input current for a charging source.
POWER_SUPPLY_PROP_CHARGE_TERM_CUR - Charge termination current used to detect
the end of charge condition
Signed-off-by: Jenny TC jenny...@intel.com
---
Documentation/power/power_supply_class.txt |6 ++
drivers/power/power_supply_sysfs.c
1 - 100 of 202 matches
Mail list logo