Skip to content

Commit f6505fb

Browse files
apmswWolfram Sang
authored andcommitted
i2c: add SLIMpro I2C device driver on APM X-Gene platform
Add SLIMpro I2C device driver on APM X-Gene platform. This I2C device driver use the SLIMpro Mailbox driver to tunnel message to the SLIMpro coprocessor to do the work of accessing I2C components. Signed-off-by: Feng Kan <[email protected]> Signed-off-by: Hieu Le <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 9dcb0e7 commit f6505fb

File tree

4 files changed

+494
-0
lines changed

4 files changed

+494
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
APM X-Gene SLIMpro Mailbox I2C Driver
2+
3+
An I2C controller accessed over the "SLIMpro" mailbox.
4+
5+
Required properties :
6+
7+
- compatible : should be "apm,xgene-slimpro-i2c"
8+
- mboxes : use the label reference for the mailbox as the first parameter.
9+
The second parameter is the channel number.
10+
11+
Example :
12+
i2cslimpro {
13+
compatible = "apm,xgene-slimpro-i2c";
14+
mboxes = <&mailbox 0>;
15+
};

drivers/i2c/busses/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,6 +1110,15 @@ config I2C_CROS_EC_TUNNEL
11101110
connected there. This will work whatever the interface used to
11111111
talk to the EC (SPI, I2C or LPC).
11121112

1113+
config I2C_XGENE_SLIMPRO
1114+
tristate "APM X-Gene SoC I2C SLIMpro devices support"
1115+
depends on ARCH_XGENE && MAILBOX
1116+
help
1117+
Enable I2C bus access using the APM X-Gene SoC SLIMpro
1118+
co-processor. The I2C device access the I2C bus via the X-Gene
1119+
to SLIMpro (On chip coprocessor) mailbox mechanism.
1120+
If unsure, say N.
1121+
11131122
config SCx200_ACB
11141123
tristate "Geode ACCESS.bus support"
11151124
depends on X86_32 && PCI

drivers/i2c/busses/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ obj-$(CONFIG_I2C_ELEKTOR) += i2c-elektor.o
110110
obj-$(CONFIG_I2C_OPAL) += i2c-opal.o
111111
obj-$(CONFIG_I2C_PCA_ISA) += i2c-pca-isa.o
112112
obj-$(CONFIG_I2C_SIBYTE) += i2c-sibyte.o
113+
obj-$(CONFIG_I2C_XGENE_SLIMPRO) += i2c-xgene-slimpro.o
113114
obj-$(CONFIG_SCx200_ACB) += scx200_acb.o
114115

115116
ccflags-$(CONFIG_I2C_DEBUG_BUS) := -DDEBUG

0 commit comments

Comments
 (0)