sh: i2c: Add support I2C controller of SH7734
PATCH 1/1 sh: i2c: Add support I2C controller of SH7734
Renesas SH7734 has two I2C interfaceis.
This supports these I2C.
V5: - include i2c.h.
- Add check of icsr bit polling logic.
- Implement i2c_probe.
V4: - Remove sh_i2c_dump_reg function.
- Use puts() when there's no format.
- Chnage check for I2C bus number.
- Remove space before the semi-colon.
V3: - Fix error for whitespace.
V2: - Changed bit control to use the clr|set|clrsetbits_* functions.
- Fix wrong comment style.
- Add new line before for loop in i2c_read.
--- drivers/i2c/Makefile | 1 + drivers/i2c/sh_sh7734_i2c.c | 387 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 388 insertions(+), 0 deletions(-) create mode 100644 drivers/i2c/sh_sh7734_i2c.c
drivers/i2c/Makefile +1 -0
@@ -44,6 +44,7 @@ COBJS-$(CONFIG_SPEAR_I2C) += spr_i2c.o COBJS-$(CONFIG_TSI108_I2C) += tsi108_i2c.o COBJS-$(CONFIG_U8500_I2C) += u8500_i2c.o COBJS-$(CONFIG_SH_I2C) += sh_i2c.o +COBJS-$(CONFIG_SH_SH7734_I2C) += sh_sh7734_i2c.o COBJS := $(COBJS-y) SRCS := $(COBJS:.o=.c)
drivers/i2c/sh_sh7734_i2c.c new file +387 -0
387 lines not on this page · raw message
Signature · 1 line
1.7.9.1
PATCH 1/1 sh: i2c: Add support I2C controller of SH7734
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120301/7f45ebc4/attachment.pgp>
PATCH 1/1 sh: i2c: Add support I2C controller of SH7734
In reply to Nobuhiro IwamatsuHello Nobuhiro,
Quoted 15 lines · Nobuhiro Iwamatsu
Renesas SH7734 has two I2C interfaceis.
This supports these I2C.V5: - include
i2c.h.
- Add check of icsr bit polling logic.
- Implementi2c_probe.
V4: - Removesh_i2c_dump_regfunction.
- Useputs()when there's no format.
- Chnage check for I2C bus number.
- Remove space before the semi-colon.
V3: - Fix error for whitespace.
V2: - Changed bit control to use the clr|set|clrsetbits_* functions.
- Fix wrong comment style.
- Add new line before for loop ini2c_read.
Quoted 8 lines
Signed-off-by Nobuhiro Iwamatsu <[email protected]>Acked-by Heiko Schocher <[email protected]>Signed-off-by Nobuhiro Iwamatsu <[email protected]>--- drivers/i2c/Makefile | 1 + drivers/i2c/sh_sh7734_i2c.c | 387 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 388 insertions(+), 0 deletions(-) create mode 100644 drivers/i2c/sh_sh7734_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