Skip to contentSkip to conversation

PATCH I2C new adm9240 driver port

PATCH Grant Coady 1 participant 3 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

Greetings,

Completing port of adm9240 Michiel Rool started. Much testing of automatic fan clock divider operation, fan_div no longer writable from user-space. fan_div read accessor left in for now so it does not break libsensors tools.

Development on 2.6.11.7 with Intel SE440BX-2 mainboard.

Compile test on 2.6.12-rc2-mm3.

drivers/i2c/chips/Kconfig +12 -0
diff -ruN -X dontdiff-osdl linux-2.6.12-rc2-mm3/drivers/i2c/chips/Kconfig linux-2.6.12-rc2-mm3g/drivers/i2c/chips/Kconfig
@@ -51,6 +51,18 @@
 	  This driver can also be built as a module.  If so, the module
 	  will be called adm1031.
 
+config SENSORS_ADM9240
+	tristate "Analog Devices ADM9240, Dallas DS1780 and NatSemi LM81"
+	depends on I2C && EXPERIMENTAL
+	select I2C_SENSOR
+	help
+	  If you say yes here you get support for Analog Devices ADM9240,
+	  and compatible Dallas DS1780 and National Semiconductor LM81
+	  sensor chips.
+
+	  This driver can also be built as a module.  If so, the module
+	  will be called adm9240.
+
 config SENSORS_ASB100
 	tristate "Asus ASB100 Bach"
 	depends on I2C && EXPERIMENTAL
drivers/i2c/chips/Makefile +1 -0
diff -ruN -X dontdiff-osdl linux-2.6.12-rc2-mm3/drivers/i2c/chips/Makefile linux-2.6.12-rc2-mm3g/drivers/i2c/chips/Makefile
@@ -11,6 +11,7 @@
 obj-$(CONFIG_SENSORS_ADM1025)	+= adm1025.o
 obj-$(CONFIG_SENSORS_ADM1026)	+= adm1026.o
 obj-$(CONFIG_SENSORS_ADM1031)	+= adm1031.o
+obj-$(CONFIG_SENSORS_ADM9240)	+= adm9240.o
 obj-$(CONFIG_SENSORS_DS1337)	+= ds1337.o
 obj-$(CONFIG_SENSORS_DS1621)	+= ds1621.o
 obj-$(CONFIG_SENSORS_EEPROM)	+= eeprom.o
drivers/i2c/chips/adm9240.c +740 -0

740 lines not on this page · raw message

#1 lore raw

Hi Greg, Khali,

Quoted 10 lines · Grant Coady

Greetings,

Completing port of adm9240 Michiel Rool started. Much testing of automatic fan clock divider operation, fan_div no longer writable from user-space. fan_div read accessor left in for now so it does not break libsensors tools.

Development on 2.6.11.7 with Intel SE440BX-2 mainboard.

Compile test on 2.6.12-rc2-mm3.

It is yet another test version, please don't take this one :)

Cheers,
Grant.

#2 lore raw
In reply to Grant Coady
Quoted 6 lines · Grant Coady

Greetings,

Completing port of adm9240 Michiel Rook started. Much testing of automatic fan clock divider operation, fan_div no longer writable from user-space. fan_div read accessor left in for now so it does not break libsensors tools.

Development on 2.6.11.7 with Intel SE440BX-2 mainboard.

Compile test on 2.6.12-rc2-mm3.

Left it alone for a while, removed ci_clear function, replaced with config, which may also be used to init chip and set temperature interrupt mode, no access to 'dangerous' commands such as enabling hardware /int output or asserting /reset output.

This patch replaces any prior patches for adm9240 port I posted.

# Kconfig   |   12 
# Makefile  |    1 
# adm9240.c |  755 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

# 3 files changed, 768 insertions(+)

drivers/i2c/chips/Kconfig +12 -0
diff -Nru -X dontdiff-osdl linux-2.6.12-rc2-mm3/drivers/i2c/chips/Kconfig linux-2.6.12-rc2-mm3h/drivers/i2c/chips/Kconfig
@@ -51,6 +51,18 @@
 	  This driver can also be built as a module.  If so, the module
 	  will be called adm1031.
 
+config SENSORS_ADM9240
+	tristate "Analog Devices ADM9240, Dallas DS1780 and NatSemi LM81"
+	depends on I2C && EXPERIMENTAL
+	select I2C_SENSOR
+	help
+	  If you say yes here you get support for Analog Devices ADM9240,
+	  and compatible Dallas DS1780 and National Semiconductor LM81
+	  sensor chips.
+
+	  This driver can also be built as a module.  If so, the module
+	  will be called adm9240.
+
 config SENSORS_ASB100
 	tristate "Asus ASB100 Bach"
 	depends on I2C && EXPERIMENTAL
drivers/i2c/chips/Makefile +1 -0
diff -Nru -X dontdiff-osdl linux-2.6.12-rc2-mm3/drivers/i2c/chips/Makefile linux-2.6.12-rc2-mm3h/drivers/i2c/chips/Makefile
@@ -11,6 +11,7 @@
 obj-$(CONFIG_SENSORS_ADM1025)	+= adm1025.o
 obj-$(CONFIG_SENSORS_ADM1026)	+= adm1026.o
 obj-$(CONFIG_SENSORS_ADM1031)	+= adm1031.o
+obj-$(CONFIG_SENSORS_ADM9240)	+= adm9240.o
 obj-$(CONFIG_SENSORS_DS1337)	+= ds1337.o
 obj-$(CONFIG_SENSORS_DS1621)	+= ds1621.o
 obj-$(CONFIG_SENSORS_EEPROM)	+= eeprom.o
drivers/i2c/chips/adm9240.c +755 -0

755 lines not on this page · raw message