[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-id: <1392044761.24553.2.camel@AMDC1943>
Date: Mon, 10 Feb 2014 16:06:01 +0100
From: Krzysztof Kozlowski <k.kozlowski@...sung.com>
To: Lee Jones <lee.jones@...aro.org>
Cc: MyungJoo Ham <myungjoo.ham@...sung.com>,
Chanwoo Choi <cw00.choi@...sung.com>,
Samuel Ortiz <sameo@...ux.intel.com>,
Mark Brown <broonie@...nel.org>, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
Marek Szyprowski <m.szyprowski@...sung.com>,
Bartlomiej Zolnierkiewicz <b.zolnierkie@...sung.com>,
Kyungmin Park <kyungmin.park@...sung.com>,
Dmitry Eremin-Solenikov <dbaryshkov@...il.com>,
David Woodhouse <dwmw2@...radead.org>,
Jenny Tc <jenny.tc@...el.com>
Subject: Re: [PATCH v2 14/15] charger: max14577: Configure battery-dependent
settings from DTS
On Mon, 2014-02-10 at 12:14 +0000, Lee Jones wrote:
> > Remove hard-coded values for:
> > - Fast Charge current,
> > - End Of Charge current,
> > - Fast Charge timer,
> > - Overvoltage Protection Threshold,
> > - Battery Constant Voltage,
> > and use DTS to configure them. This allows using the max14577 charger
> > driver with different batteries.
> >
> > Now the charger driver requires valid configuration data from DTS. In
> > case of wrong configuration data it fails during probe. Patch adds
> > of_compatible to the charger mfd cell in MFD driver core.
> >
> > Signed-off-by: Krzysztof Kozlowski <k.kozlowski@...sung.com>
> > Cc: Kyungmin Park <kyungmin.park@...sung.com>
> > Cc: Marek Szyprowski <m.szyprowski@...sung.com>
> > Cc: Dmitry Eremin-Solenikov <dbaryshkov@...il.com>
> > Cc: David Woodhouse <dwmw2@...radead.org>
> > Cc: Jenny Tc <jenny.tc@...el.com>
> > ---
> > drivers/mfd/max14577.c | 5 +-
> > drivers/power/max14577_charger.c | 234 +++++++++++++++++++++++++++++-----
> > include/linux/mfd/max14577-private.h | 10 ++
> > include/linux/mfd/max14577.h | 8 ++
> > 4 files changed, 227 insertions(+), 30 deletions(-)
>
> <snip>
>
> > diff --git a/include/linux/mfd/max14577-private.h b/include/linux/mfd/max14577-private.h
> > index a8cd7de3526a..50cf70bec4d4 100644
> > --- a/include/linux/mfd/max14577-private.h
> > +++ b/include/linux/mfd/max14577-private.h
> > @@ -269,6 +269,16 @@ enum maxim_muic_charger_type {
> > #define MAX77836_CHARGER_CURRENT_LIMIT_HIGH_STEP 25000U
> > #define MAX77836_CHARGER_CURRENT_LIMIT_MAX 475000U
> >
> > +/* MAX14577 charger End-Of-Charge current limits (as in MAXIM_CHGCTRL5 register), uA */
>
> Too many chars. Didn't checkpatch.pl complain about this?
I'll fix this.
>
> > +#define MAX14577_CHARGER_EOC_CURRENT_LIMIT_MIN 50000U
> > +#define MAX14577_CHARGER_EOC_CURRENT_LIMIT_STEP 10000U
> > +#define MAX14577_CHARGER_EOC_CURRENT_LIMIT_MAX 200000U
> > +
> > +/* MAX14577/MAX77836 Battery Constant Voltage (as in MAXIM_CHGCTRL3
> > register), uV */
>
> Same here
OK
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists