summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorManuel Lauss <mano@roarinelk.homelinux.net>2008-04-22 22:16:47 +0200
committerJean Delvare <khali@hyperion.delvare>2008-04-22 22:16:47 +0200
commita26c20b1fa6d16fd3c402785b943a5e915eda30a (patch)
treeb02bf7183098c1dbf3cc51114a7bbbea22561765 /include
parentdba7997a87cd12b815c0d58b2a0522a8bb0cf5ec (diff)
downloadlwn-a26c20b1fa6d16fd3c402785b943a5e915eda30a.tar.gz
lwn-a26c20b1fa6d16fd3c402785b943a5e915eda30a.zip
i2c: Renesas SH7760 I2C master driver
Driver for I2C interfaces in master mode on SH7760. Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net> Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'include')
-rw-r--r--include/asm-sh/i2c-sh7760.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/asm-sh/i2c-sh7760.h b/include/asm-sh/i2c-sh7760.h
new file mode 100644
index 000000000000..24182116711f
--- /dev/null
+++ b/include/asm-sh/i2c-sh7760.h
@@ -0,0 +1,22 @@
+/*
+ * MMIO/IRQ and platform data for SH7760 I2C channels
+ */
+
+#ifndef _I2C_SH7760_H_
+#define _I2C_SH7760_H_
+
+#define SH7760_I2C_DEVNAME "sh7760-i2c"
+
+#define SH7760_I2C0_MMIO 0xFE140000
+#define SH7760_I2C0_MMIOEND 0xFE14003B
+#define SH7760_I2C0_IRQ 62
+
+#define SH7760_I2C1_MMIO 0xFE150000
+#define SH7760_I2C1_MMIOEND 0xFE15003B
+#define SH7760_I2C1_IRQ 63
+
+struct sh7760_i2c_platdata {
+ unsigned int speed_khz;
+};
+
+#endif