Skip to contentSkip to conversation

Introduce INT33B1 I2C controller driver

RFC PATCH In review Zhang Rui 1 participant 1 message Sep 28, 2012

Subsystems (2)
lore
Share & tools
lore

Zhang Rui

author
#0 lore raw

RFC PATCH 6/6 Introduce INT33B1 I2C controller driver

Quoted 1 line

From 817d814ecae91862f42a0447f455dae7f74cba27 Mon Sep 17 00:00:00 2001

From: Zhang Rui <[email protected]>
Date: Fri, 24 Aug 2012 15:20:38 +0800
Subject: [RFC PATCH 6/6] Introduce INT33B1 I2C controller driver

This is a dummy platform device driver to illustrate my idea about how a really I2C controller should work on ACPI 5 platforms. It just probes the INT33B1 I2C controller which is enumerated by ACPI.

---
 drivers/i2c/busses/Kconfig    |    8 +++
 drivers/i2c/busses/Makefile   |    1 +
 drivers/i2c/busses/i2c-33b1.c |  117 +++++++++++++++++++++++++++++++++++++++++
 3 files changed, 126 insertions(+), 0 deletions(-)
 create mode 100644 drivers/i2c/busses/i2c-33b1.c
drivers/i2c/busses/Kconfig +8 -0
index b4aaa1b..536a19c 100644
@@ -257,6 +257,14 @@ config I2C_SCMI
 	  To compile this driver as a module, choose M here:
 	  the module will be called i2c-scmi.
 
+config I2C_33B1
+	tristate "INT33B1 I2C controller"
+	help
+	  This driver supports the ACPI enumerated INT33B1 I2C controller.
+
+	  To compile this driver as a module, choose M here:
+	  the module will be called i2c-scmi.
+
 endif # ACPI
 
 comment "Mac SMBus host controller drivers"
drivers/i2c/busses/Makefile +1 -0
index ce3c2be..8e478bd 100644
@@ -4,6 +4,7 @@
 
 # ACPI drivers
 obj-$(CONFIG_I2C_SCMI)		+= i2c-scmi.o
+obj-$(CONFIG_I2C_33B1)		+= i2c-33b1.o
 
 # PC SMBus host controller drivers
 obj-$(CONFIG_I2C_ALI1535)	+= i2c-ali1535.o
drivers/i2c/busses/i2c-33b1.c new file +117 -0

117 lines not on this page · raw message

Signature · 1 line
1.7.7.6