* How to pass board specific info to I2C driver module
@ 2008-10-27 2:00 Hu Mingkai-B21284
[not found] ` <CF6163088BDE8747873ADAA4AF922BF258D734-6lxYB4K41cniD3AT8lUqWFjVikpgYyvb5NbjCUgZEJk@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Hu Mingkai-B21284 @ 2008-10-27 2:00 UTC (permalink / raw)
To: i2c-GZX6beZjE8VD60Wz+7aTrA
[-- Attachment #1.1: Type: text/plain, Size: 802 bytes --]
Hi All,
I'm working on an ADC chip (MCP3021) driver under Linux 2.6.27.
We used these two chips to monitor the CPU core current and
platform current individually, which is converted to voltage as
the ADC chip's input.
As you know, the driver shouldn't contain the board specific info,
such as, the chip's work voltage, the ratio of voltage and current.
So how to pass these info to the driver module?
Here is the way I can think of:
1. to use dts file to pass the info to the module.
This way make the driver is bound to OF implement.
2. to use the module parameter.
For different chips, the work voltage and the ratio may be
different,
but the chip uses the same driver.
Any other idea? Please give me some advice. Thanks a lot.
Best Regards,
Vincent
[-- Attachment #1.2: Type: text/html, Size: 3437 bytes --]
[-- Attachment #2: Type: text/plain, Size: 157 bytes --]
_______________________________________________
i2c mailing list
i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
http://lists.lm-sensors.org/mailman/listinfo/i2c
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to pass board specific info to I2C driver module
[not found] ` <CF6163088BDE8747873ADAA4AF922BF258D734-6lxYB4K41cniD3AT8lUqWFjVikpgYyvb5NbjCUgZEJk@public.gmane.org>
@ 2008-10-27 8:21 ` Jean Delvare
[not found] ` <20081027092125.0192b81c-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Jean Delvare @ 2008-10-27 8:21 UTC (permalink / raw)
To: Hu Mingkai-B21284; +Cc: i2c-GZX6beZjE8VD60Wz+7aTrA
Hi Vincent,
On Mon, 27 Oct 2008 10:00:44 +0800, Hu Mingkai-B21284 wrote:
> I'm working on an ADC chip (MCP3021) driver under Linux 2.6.27.
> We used these two chips to monitor the CPU core current and
> platform current individually, which is converted to voltage as
> the ADC chip's input.
> As you know, the driver shouldn't contain the board specific info,
> such as, the chip's work voltage, the ratio of voltage and current.
> So how to pass these info to the driver module?
>
> Here is the way I can think of:
> 1. to use dts file to pass the info to the module.
> This way make the driver is bound to OF implement.
>
> 2. to use the module parameter.
> For different chips, the work voltage and the ratio may be
> different,
> but the chip uses the same driver.
>
> Any other idea? Please give me some advice. Thanks a lot.
Once again this question has nothing to do with I2C, so this is the
wrong mailing list. So, once again, please ask on the lm-sensors list
instead.
--
Jean Delvare
_______________________________________________
i2c mailing list
i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
http://lists.lm-sensors.org/mailman/listinfo/i2c
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to pass board specific info to I2C driver module
[not found] ` <20081027092125.0192b81c-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
@ 2008-10-27 8:49 ` Hu Mingkai-B21284
0 siblings, 0 replies; 3+ messages in thread
From: Hu Mingkai-B21284 @ 2008-10-27 8:49 UTC (permalink / raw)
To: Jean Delvare; +Cc: i2c-GZX6beZjE8VD60Wz+7aTrA
I feel so sorry for the inconvenience this mail brought to you all.
Sorry again.
Br,
Vincent
-----Original Message-----
From: Jean Delvare [mailto:khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org]
Sent: Monday, October 27, 2008 4:21 PM
To: Hu Mingkai-B21284
Cc: i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
Subject: Re: [i2c] How to pass board specific info to I2C driver module
Hi Vincent,
On Mon, 27 Oct 2008 10:00:44 +0800, Hu Mingkai-B21284 wrote:
> I'm working on an ADC chip (MCP3021) driver under Linux 2.6.27.
> We used these two chips to monitor the CPU core current and platform
> current individually, which is converted to voltage as the ADC chip's
> input.
> As you know, the driver shouldn't contain the board specific info,
> such as, the chip's work voltage, the ratio of voltage and current.
> So how to pass these info to the driver module?
>
> Here is the way I can think of:
> 1. to use dts file to pass the info to the module.
> This way make the driver is bound to OF implement.
>
> 2. to use the module parameter.
> For different chips, the work voltage and the ratio may be
> different,
> but the chip uses the same driver.
>
> Any other idea? Please give me some advice. Thanks a lot.
Once again this question has nothing to do with I2C, so this is the
wrong mailing list. So, once again, please ask on the lm-sensors list
instead.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-10-27 8:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-27 2:00 How to pass board specific info to I2C driver module Hu Mingkai-B21284
[not found] ` <CF6163088BDE8747873ADAA4AF922BF258D734-6lxYB4K41cniD3AT8lUqWFjVikpgYyvb5NbjCUgZEJk@public.gmane.org>
2008-10-27 8:21 ` Jean Delvare
[not found] ` <20081027092125.0192b81c-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2008-10-27 8:49 ` Hu Mingkai-B21284
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.