Hi MyungJoo Am Donnerstag, 25. August 2011, 08:55:29 schrieb MyungJoo Ham: > On Thu, Aug 25, 2011 at 3:48 AM, Heiko Stübner <heiko@xxxxxxxxx> wrote: > > This driver controls a TI bq2407x charger attached via GPIOs. > > The provided current regulator can enable/disable charging and > > select between 100 mA, 500 mA and a machine specific current limit. > > > > Signed-off-by: Heiko Stuebner <heiko@xxxxxxxxx> > > This looks like a bq24022 driver + max-current-mode ("USB standby" > seems not implemented in the driver). Wouldn't it be possible to patch > bq24022 driver so that the bq24022 driver becomes compatible with this > bq2407x? > > 2407x's EN1 = 24022's iset2 > 2407x's nce = 24022's nce > > I think you may simply let the driver ignore EN2 (and max-current > mode) if the supplied EN2 in pdata is NULL, then, the driver will be > compatible for both. Thanks for adding a new perspective on this. The way you put it, it seems quite easy to do it this way and integrate it into the bq24022 driver. So I will give it shot this evening and will see were it leads me. Thanks Heiko _______________________________________________ linux-pm mailing list linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/linux-pm