Skip to contentSkip to conversation

i2c: nuvoton: Add NPCM7xx i2c driver

PATCH In review Jim Liu 2 participants 3 messages Jun 23, 2022 – Jul 19, 2022

Subsystems (2)
lore
Share & tools
lore

Jim Liu

author
#0 lore raw

PATCH v4 1/1 i2c: nuvoton: Add NPCM7xx i2c driver

Add Nuvoton BMC NPCM750 i2c driver

---
changes for v4:
- remove i2c doc
changes for v3:
- add i2c doc
Changes for v2:
- use debug output in reset function
- use clr/setbits_8

---
 drivers/i2c/Kconfig    |   5 +
 drivers/i2c/Makefile   |   1 +
 drivers/i2c/npcm-i2c.c | 631 +++++++++++++++++++++++++++++++++++++++++
 3 files changed, 637 insertions(+)
 create mode 100644 drivers/i2c/npcm-i2c.c
drivers/i2c/Kconfig +5 -0
index d25c5736ef..7e113b289e 100644
@@ -447,6 +447,11 @@ config SYS_I2C_NEXELL
 	  have several I2C ports and all are provided, controlled by the
 	  device tree.
 
+config SYS_I2C_NPCM
+	bool "Nuvoton NPCM I2C driver"
+	help
+	  Support for Nuvoton I2C controller driver.
+
 config SYS_I2C_OCORES
 	bool "ocores I2C driver"
 	depends on DM_I2C
drivers/i2c/Makefile +1 -0
index 9d41f379bb..7e046f809a 100644
@@ -33,6 +33,7 @@ obj-$(CONFIG_SYS_I2C_MV) += mv_i2c.o
 obj-$(CONFIG_SYS_I2C_MVTWSI) += mvtwsi.o
 obj-$(CONFIG_SYS_I2C_MXC) += mxc_i2c.o
 obj-$(CONFIG_SYS_I2C_NEXELL) += nx_i2c.o
+obj-$(CONFIG_SYS_I2C_NPCM) += npcm_i2c.o
 obj-$(CONFIG_SYS_I2C_OCORES) += ocores_i2c.o
 obj-$(CONFIG_SYS_I2C_OCTEON) += octeon_i2c.o
 obj-$(CONFIG_SYS_I2C_OMAP24XX) += omap24xx_i2c.o
drivers/i2c/npcm-i2c.c new file +631 -0

631 lines not on this page · raw message

Signature · 1 line
2.17.1
Reviewed-by on v4 1/1
#1 lore raw

Hello Jim,

Quoted 11 lines · Jim Liu

Add Nuvoton BMC NPCM750 i2c driver

---
changes for v4:
- remove i2c doc
changes for v3:
- add i2c doc
Changes for v2:
- use debug output in reset function
- use clr/setbits_8

Quoted 6 lines
---
 drivers/i2c/Kconfig    |   5 +
 drivers/i2c/Makefile   |   1 +
 drivers/i2c/npcm-i2c.c | 631 +++++++++++++++++++++++++++++++++++++++++
 3 files changed, 637 insertions(+)
 create mode 100644 drivers/i2c/npcm-i2c.c

bye,
Heiko

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: [email protected]
#2 lore raw
In reply to Jim Liu

Hello Jim,

Quoted 11 lines · Jim Liu

Add Nuvoton BMC NPCM750 i2c driver

---
changes for v4:
- remove i2c doc
changes for v3:
- add i2c doc
Changes for v2:
- use debug output in reset function
- use clr/setbits_8

Quoted 6 lines
---
 drivers/i2c/Kconfig    |   5 +
 drivers/i2c/Makefile   |   1 +
 drivers/i2c/npcm-i2c.c | 631 +++++++++++++++++++++++++++++++++++++++++
 3 files changed, 637 insertions(+)
 create mode 100644 drivers/i2c/npcm-i2c.c

Applied to u-boot-i2c master

Thanks!

bye,
Heiko

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: [email protected]