All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.6] i2c-parport: support the ADM1031 evaluation board
@ 2005-05-19  6:24 Jean Delvare
  2005-05-19  6:25 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Jean Delvare @ 2005-05-19  6:24 UTC (permalink / raw)
  To: lm-sensors

Hi Greg,

The following patch adds support for the ADM1030 and ADM1031 evaluation
boards to the i2c-parport and i2c-parport-light drivers. They are almost
compatible with the already supported ADM1025 and ADM1032 boards, except
that the ADM1032 board needs some pins to be set high to draw its power,
while the same pins power up heating resistors on the ADM1031 board. I
considered it was a bit dangerous to do that by default, so I ended up
with two different device definitions, one with powering pins set, and
one with these pins cleared.

Please apply,
thanks.

--- linux-2.6.6-rc3/drivers/i2c/busses/i2c-parport.h.orig	Thu Feb  5 22:24:55 2004
+++ linux-2.6.6-rc3/drivers/i2c/busses/i2c-parport.h	Sat May  1 18:01:02 2004
@@ -67,13 +67,18 @@
 		.getsda	= { 0x40, STAT, 1 },
 		.getscl	= { 0x08, STAT, 1 },
 	},
-	/* type 4: ADM1025 and ADM1032 evaluation boards */
+	/* type 4: ADM1032 evaluation board */
+	{
+		.setsda	= { 0x02, DATA, 1 },
+		.setscl	= { 0x01, DATA, 1 },
+		.getsda	= { 0x10, STAT, 1 },
+		.init	= { 0xf0, DATA, 0 },
+	},
+	/* type 5: ADM1025, ADM1030 and ADM1031 evaluation boards */
 	{
 		.setsda	= { 0x02, DATA, 1 },
 		.setscl	= { 0x01, DATA, 1 },
 		.getsda	= { 0x10, STAT, 1 },
-		.init	= { 0xf0, DATA, 0 }, /* ADM1025 doesn't need this,
-						but it doesn't hurt */
 	},
 };
 
@@ -85,4 +90,5 @@
 	" 1 = home brew teletext adapter\n"
 	" 2 = Velleman K8000 adapter\n"
 	" 3 = ELV adapter\n"
-	" 4 = ADM1025 and ADM1032 evaluation boards\n");
+	" 4 = ADM1032 evaluation board\n"
+	" 5 = ADM1025, ADM1030 and ADM1031 evaluation boards\n");


-- 
Jean Delvare
http://khali.linux-fr.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 2.6] i2c-parport: support the ADM1031 evaluation board
  2005-05-19  6:24 [PATCH 2.6] i2c-parport: support the ADM1031 evaluation board Jean Delvare
@ 2005-05-19  6:25 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

On Sat, May 22, 2004 at 10:53:24PM +0200, Jean Delvare wrote:
> Hi Greg,
> 
> The following patch adds support for the ADM1030 and ADM1031 evaluation
> boards to the i2c-parport and i2c-parport-light drivers. They are almost
> compatible with the already supported ADM1025 and ADM1032 boards, except
> that the ADM1032 board needs some pins to be set high to draw its power,
> while the same pins power up heating resistors on the ADM1031 board. I
> considered it was a bit dangerous to do that by default, so I ended up
> with two different device definitions, one with powering pins set, and
> one with these pins cleared.
> 
> Please apply,

Applied, thanks.

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-05-19  6:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-19  6:24 [PATCH 2.6] i2c-parport: support the ADM1031 evaluation board Jean Delvare
2005-05-19  6:25 ` Greg KH

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.