Skip to contentSkip to conversation

i2c: pxa: add pxa910 platform for i2c bus

PATCH In review Leilei Shang 1 participant 1 message Aug 9, 2013 I2C subsystem host drivers

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 i2c: pxa: add pxa910 platform for i2c bus

From: Leilei Shang <[email protected]>

Support pxa910 i2c bus.

---
 drivers/i2c/busses/i2c-pxa.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
drivers/i2c/busses/i2c-pxa.c +9 -0
index ea6d45d..6b84f16 100644
@@ -53,6 +53,7 @@ enum pxa_i2c_types {
 	REGS_PXA2XX,
 	REGS_PXA3XX,
 	REGS_CE4100,
+	REGS_PXA910,
 };
 
 /*
@@ -80,12 +81,20 @@ static struct pxa_reg_layout pxa_reg_layout[] = {
 		.isr =	0x04,
 		/* no isar register */
 	},
+	[REGS_PXA910] = {
+		.ibmr =	0x00,
+		.idbr =	0x08,
+		.icr =	0x10,
+		.isr =	0x18,
+		.isar =	0x20,
+	},
 };
 
 static const struct platform_device_id i2c_pxa_id_table[] = {
 	{ "pxa2xx-i2c",		REGS_PXA2XX },
 	{ "pxa3xx-pwri2c",	REGS_PXA3XX },
 	{ "ce4100-i2c",		REGS_CE4100 },
+	{ "pxa910-i2c",		REGS_PXA910 },
 	{ },
 };
 MODULE_DEVICE_TABLE(platform, i2c_pxa_id_table);
Signature · 1 line
1.7.4.1