From: "Westerberg, Mika" <mika.westerberg@intel.com>
To: "Pallala, Ramakrishna" <ramakrishna.pallala@intel.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"Zhang, Rui" <rui.zhang@intel.com>
Subject: Re: How to populate Battery information through ACPI tables
Date: Tue, 19 Feb 2013 19:42:10 +0200 [thread overview]
Message-ID: <20130219174210.GH2439@intel.com> (raw)
In-Reply-To: <D854C92F57B1B347B57E531E78D05EAD2466175B@BGSMSX102.gar.corp.intel.com>
On Tue, Feb 19, 2013 at 07:11:52PM +0200, Pallala, Ramakrishna wrote:
>
> > On Tue, Feb 19, 2013 at 03:07:57PM +0000, Pallala, Ramakrishna wrote:
> > > I am trying to populate battery related information through ACPI
> > > tables and do battery management through non acpi drivers. Can you
> > > tell or point me on how to populate the ACPI tables in FW/BIOS and get
> > > them in OS? I am new to ACPI world.
> >
> > You should start by reading Documentation/acpi/enumeration.txt.
> >
> > Also can you describe with bit more details, what you are trying to do? A new
> > battery driver that is enumerated from ACPI namespace, perhaps?
> >
> > Do you have a DSDT table in hand which we could take a peek?
>
> Thanks Mika for the pointers. I have looked at the documentation.
>
> we already have i2c driver for battery monitoring but the chip needs initialized with
> characterization data. We wanted to populate/pass this data through ACPI table to the
> i2c slave driver.
>
> How can I do that? Can I pass characterization data through ACPI table to
> the i2c slave device?
Is the characterization data available in DSDT (or SSDT) table? If yes,
then you can just use the fact that ACPI_HANDLE(&i2c_client->dev) returns a
valid ACPI handle for your device. You can use this handle to call some
ACPI method or whaterver is needed to extract that information.
next prev parent reply other threads:[~2013-02-19 17:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-19 15:07 How to populate Battery information through ACPI tables Pallala, Ramakrishna
2013-02-19 15:20 ` Westerberg, Mika
2013-02-19 17:11 ` Pallala, Ramakrishna
2013-02-19 17:42 ` Westerberg, Mika [this message]
2013-02-19 17:45 ` Pallala, Ramakrishna
2013-02-19 18:04 ` Westerberg, Mika
2013-02-19 18:22 ` Pallala, Ramakrishna
2013-02-19 18:38 ` Westerberg, Mika
2013-02-19 18:59 ` Pallala, Ramakrishna
2013-02-19 19:20 ` Westerberg, Mika
2013-02-19 19:39 ` Pallala, Ramakrishna
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=20130219174210.GH2439@intel.com \
--to=mika.westerberg@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ramakrishna.pallala@intel.com \
--cc=rui.zhang@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.