Hi,

I think some of the information that you are looking for might be
proprietary.
For almost anything MSM related, a good place to start is codeaurora.

Some platforms do use the standalone ICs (bq27xxx)
https://www.codeaurora.org/gitweb/quic/le/?p=kernel/msm.git;a=commitdiff;h=339f30bc1ad4adaf3a05fae0abd21cc3afab6c44
You can check your defconfig to see which of the "CONFIG_BATTERY_XXX"
are being used.

For the battery related RPC, you can check the code here:
https://www.codeaurora.org/gitweb/quic/le/?p=kernel/msm.git;a=blob;f=drivers/power/msm_battery.c;h=055539934e4ea247b56bec7b70c28fa04d37ff57;hb=98f5fd413f051db8407a53f583a46a1c3fb99657

As for the RPC operation itself, you can see the code on linux side
from arch/arm/mach-msm.
It's a bit hard to parse..

On Dec 27 2011, 2:34 pm, Pei Wang <uraj...@gmail.com> wrote:
> Hi,
>
> I am now trying to do something to make the kernel be better at
> tracking energy consumption, and I am using HTC Incredible 2 as my
> development device. However, I got confused when dealing with MSM
> platform. I just cannot understand how MSM chipsets implement battery
> fuel gauge. It seems that phones based on MSM processors do not use
> any individual fuel gauge IC such as MAX17042 or DS2784. I guess that
> MSM processors have their own fuel gauge IC integrated in the
> chipsets, and communicate with these IC via MSM RPC, but I am not sure
> for this. In fact, I don't know what MSM RPC is and how it works
> either.
>
> So in sum my question is how MSM based phone sense battery voltage and
> current? Besides that, materials introducing MSM RPC will also be
> helpful. Can anybody give me some instructions on how to get the
> answer? Thanks in advance.
>
> Best Regards,
> Pei Wang

-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel

Reply via email to