From patchwork Mon Nov 19 00:00:06 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anton Vorontsov X-Patchwork-Id: 1761671 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id D95B13FC64 for ; Mon, 19 Nov 2012 00:03:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752716Ab2KSADY (ORCPT ); Sun, 18 Nov 2012 19:03:24 -0500 Received: from mail-pa0-f46.google.com ([209.85.220.46]:59253 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752688Ab2KSADX (ORCPT ); Sun, 18 Nov 2012 19:03:23 -0500 Received: by mail-pa0-f46.google.com with SMTP id bh2so33068pad.19 for ; Sun, 18 Nov 2012 16:03:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=Xs/iiat0h4qUkiUn14a8W3ZeRvt3gv9hyrp4LZs/HMg=; b=oNCltckwYwk15PTOnMecFDwbIWfyArWqwOpN/YnmI7cWxgQC68szzZg+9dzpunIVs3 QHQgF15mcUTJXphUHZXSNarGYQbg0OCEFFg5/hbhxQlXzTkktUs437w0q8QmWhjkRWh5 XE90XWRl1n1Pixmou1wNjy2inE1Qtcwwh1JfvLjfISVCmdtmgc2gKO+8K6orapmXyMDe cyyRn3dX3BKL2veAk5nDAiEqLxijn+zmIIl4NApAmBIdYBmF6GR7wh7Bk0x7rT5NBzcW EtxWLaPfH0lMbjkirSsH2ES0qzHIUYTnvuWOq9XAzCm3OrXmGcTzdkIiXspZ1OswF82n dXjg== Received: by 10.68.193.167 with SMTP id hp7mr34746261pbc.124.1353283403360; Sun, 18 Nov 2012 16:03:23 -0800 (PST) Received: from localhost (ip-64-134-232-154.public.wayport.net. [64.134.232.154]) by mx.google.com with ESMTPS id sz6sm5145581pbc.52.2012.11.18.16.03.16 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 18 Nov 2012 16:03:21 -0800 (PST) Date: Sun, 18 Nov 2012 16:00:06 -0800 From: Anton Vorontsov To: Pali =?utf-8?B?Um9ow6Fy?= Cc: linux-main , linux-omap , Sebastian Reichel , Felipe Contreras , Joerg Reisenweber , =?utf-8?B?0JjQstCw0LnQu9C+INCU0LjQvNC40YLRgNC+0LI=?= , David Woodhouse , Aliaksei Katovich Subject: Re: [PATCH] bq2415x charger driver Message-ID: <20121119000006.GD29066@lizard.sbx05977.paloaca.wayport.net> References: <1391088.VOCN5mxOBg@pali> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1391088.VOCN5mxOBg@pali> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org On Fri, Nov 02, 2012 at 08:18:11PM +0100, Pali Rohár wrote: > Hello, > > I'm sending new version of bq2415x charger driver which is needed > for example on Nokia N900 for charging battery. Driver is part of > open source project to replace proprietary battery management. > Driver is based on old RFC version which I sent months ago. > > power_supply: Add bq2415x charger driver > > This patch implements driver for bq2415x charging chips. > > Signed-off-by: Pali Rohár Applied, thanks! Note that I had to add the Makefile/Kconfig entries and fix some style issues... commit 7ad85830736f3e0d854becf7621eba3a0c926d13 Author: Anton Vorontsov Date: Sun Nov 18 15:48:52 2012 -0800 bq2415x_charger: Add Kconfig/Makefile entries This commit adds Kconfig and Makefile entries so that we could actually build the driver. Signed-off-by: Anton Vorontsov --- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/power/Kconfig b/drivers/power/Kconfig index 5c3237f..523a580 100644 --- a/drivers/power/Kconfig +++ b/drivers/power/Kconfig @@ -322,6 +322,16 @@ config CHARGER_MAX8998 Say Y to enable support for the battery charger control sysfs and platform data of MAX8998/LP3974 PMICs. +config CHARGER_BQ2415X + tristate "TI BQ2415x battery charger driver" + depends on I2C + help + Say Y to enable support for the TI BQ2415x battery charger + PMICs. + + You'll need this driver to charge batteries on e.g. Nokia + RX-51/N900. + config CHARGER_SMB347 tristate "Summit Microelectronics SMB347 Battery Charger" depends on I2C diff --git a/drivers/power/Makefile b/drivers/power/Makefile index bc81fe2..74dfd95 100644 --- a/drivers/power/Makefile +++ b/drivers/power/Makefile @@ -48,5 +48,6 @@ obj-$(CONFIG_CHARGER_GPIO) += gpio-charger.o obj-$(CONFIG_CHARGER_MANAGER) += charger-manager.o obj-$(CONFIG_CHARGER_MAX8997) += max8997_charger.o obj-$(CONFIG_CHARGER_MAX8998) += max8998_charger.o +obj-$(CONFIG_CHARGER_BQ2415X) += bq2415x_charger.o obj-$(CONFIG_POWER_AVS) += avs/ obj-$(CONFIG_CHARGER_SMB347) += smb347-charger.o