Skip to contentSkip to conversation

PATCH - s3c2410 clock control patch

lm-sensors Ben Dooks 1 participant 1 message Mar 21, 2006

Subsystems (2)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

This patch makes it possible for the I2C unit to disable the clock fed into it whilst it is not being used. This should reduce the power consumption, with only minimal extra time during the start and end of a transfer.

This patch also ensures that the clock is in the right state when going in and out of suspend.

Also included is a minor bugfix to place a minor delay if going to next part of a write, the controller can generate incorrect bus data if a small number of register reads inserted before returning from the IRQ handler

Signed-off-by: Ben Dooks <ben-linux at fluff.org> -------------- next part --------------

drivers/i2c/busses/Kconfig +8 -0
diff -urpN -X ../dontdiff linux-2.6.16-rmk/drivers/i2c/busses/Kconfig linux-2.6.16-rmk-bjd1/drivers/i2c/busses/Kconfig
@@ -343,6 +343,14 @@ config I2C_S3C2410
 	  Say Y here to include support for I2C controller in the
 	  Samsung S3C2410 based System-on-Chip devices.
 
+config I2C_S3C2410_CLKIDLE
+	bool "Stop I2C clock during IDLE"
+	depends on I2C_S3C2410
+	help
+	  Say Y here to enable support for disabling the I2C unit
+	  clock when the bus is idle. This is useful to save power
+	  if not using the unit as a bus slave.
+
 config I2C_SAVAGE4
 	tristate "S3 Savage 4"
 	depends on I2C && PCI && EXPERIMENTAL
drivers/i2c/busses/i2c-s3c2410.c +45 -4

112 lines not on this page · raw message