Skip to contentSkip to conversation

i2c: Add support for Renesas rcar

PATCH New Nobuhiro Iwamatsu 2 participants 2 messages Sep 27, 2013 – Oct 17, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 i2c: Add support for Renesas rcar

This supports i2c controller for Renesas rcar.

---
v2:
- Add infomation about rcar_i2c to README.
- Remove empty line.
- Fix space.
- Keep list sorted in Makefile

 README                 |  14 +++
 drivers/i2c/Makefile   |   1 +
 drivers/i2c/rcar_i2c.c | 288 +++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 303 insertions(+)
 create mode 100644 drivers/i2c/rcar_i2c.c
README +14 -0
index ccd47fa..98c385a 100644
@@ -1995,6 +1995,20 @@ CBFS (Coreboot Filesystem) support
 		  - CONFIG_SYS_I2C_PPC4XX_CH0 activate hardware channel 0
 		  - CONFIG_SYS_I2C_PPC4XX_CH1 activate hardware channel 1
 
+		- drivers/i2c/rcar_i2c.c:
+		  - activate this driver with CONFIG_SYS_I2C_RCAR
+		  - This driver adds 4 i2c buses
+
+		  - CONFIG_SYS_RCAR_I2C0_BASE for setting the register channel 0
+		  - CONFIG_SYS_RCAR_I2C0_SPEED for for the speed channel 0
+		  - CONFIG_SYS_RCAR_I2C1_BASE for setting the register channel 1
+		  - CONFIG_SYS_RCAR_I2C1_SPEED for for the speed channel 1
+		  - CONFIG_SYS_RCAR_I2C2_BASE for setting the register channel 2
+		  - CONFIG_SYS_RCAR_I2C2_SPEED for for the speed channel 2
+		  - CONFIG_SYS_RCAR_I2C3_BASE for setting the register channel 3
+		  - CONFIG_SYS_RCAR_I2C3_SPEED for for the speed channel 3
+		  - CONFIF_SYS_RCAR_I2C_NUM_CONTROLLERS for nummber of i2c buses
+
 		additional defines:
 
 		CONFIG_SYS_NUM_I2C_BUSES
drivers/i2c/Makefile +1 -0
index 37ccbd1..e028534 100644
@@ -30,6 +30,7 @@ COBJS-$(CONFIG_SYS_I2C) += i2c_core.o
 COBJS-$(CONFIG_SYS_I2C_FSL) += fsl_i2c.o
 COBJS-$(CONFIG_SYS_I2C_FTI2C010) += fti2c010.o
 COBJS-$(CONFIG_SYS_I2C_PPC4XX) += ppc4xx_i2c.o
+COBJS-$(CONFIG_SYS_I2C_RCAR) += rcar_i2c.o
 COBJS-$(CONFIG_SYS_I2C_SOFT) += soft_i2c.o
 COBJS-$(CONFIG_SYS_I2C_TEGRA) += tegra_i2c.o
 COBJS-$(CONFIG_ZYNQ_I2C) += zynq_i2c.o
drivers/i2c/rcar_i2c.c new file +288 -0

288 lines not on this page · raw message

Signature · 1 line
1.8.4.rc3
#1 lore raw

PATCH v2 1/1 i2c: Add support for Renesas rcar

Hello Nobuhiro,

Am 27.09.2013 09:58, schrieb Nobuhiro Iwamatsu:

Quoted 11 lines

This supports i2c controller for Renesas rcar.

---
v2:
- Add infomation about rcar_i2c to README.
- Remove empty line.
- Fix space.
- Keep list sorted in Makefile

Quoted 5 lines
  README                 |  14 +++
  drivers/i2c/Makefile   |   1 +
  drivers/i2c/rcar_i2c.c | 288 +++++++++++++++++++++++++++++++++++++++++++++++++
  3 files changed, 303 insertions(+)

create mode 100644 drivers/i2c/rcar_i2c.c

Applied to u-boot-i2c.git

Thanks!

bye,
Heiko

Signature · 2 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany