Skip to content

Commit d62fbdb

Browse files
Yicong Yangwsakernel
authored andcommitted
i2c: add support for HiSilicon I2C controller
Add HiSilicon I2C controller driver for the Kunpeng SoC. It provides the access to the i2c busses, which connects to the eeprom, rtc, etc. The driver works with IRQ mode, and supports basic I2C features and 10bit address. The DMA is not supported. Reviewed-by: Andy Shevchenko <[email protected]> Reviewed-by: Dmitry Osipenko <[email protected]> Signed-off-by: Yicong Yang <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 3b4c747 commit d62fbdb

File tree

4 files changed

+522
-0
lines changed

4 files changed

+522
-0
lines changed

MAINTAINERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8044,6 +8044,13 @@ F: drivers/crypto/hisilicon/hpre/hpre.h
80448044
F: drivers/crypto/hisilicon/hpre/hpre_crypto.c
80458045
F: drivers/crypto/hisilicon/hpre/hpre_main.c
80468046

8047+
HISILICON I2C CONTROLLER DRIVER
8048+
M: Yicong Yang <[email protected]>
8049+
8050+
S: Maintained
8051+
W: https://www.hisilicon.com
8052+
F: drivers/i2c/busses/i2c-hisi.c
8053+
80478054
HISILICON LPC BUS DRIVER
80488055
80498056
S: Maintained

drivers/i2c/busses/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,16 @@ config I2C_HIGHLANDER
645645
This driver can also be built as a module. If so, the module
646646
will be called i2c-highlander.
647647

648+
config I2C_HISI
649+
tristate "HiSilicon I2C controller"
650+
depends on ARM64 || COMPILE_TEST
651+
help
652+
Say Y here if you want to have Hisilicon I2C controller support
653+
available on the Kunpeng Server.
654+
655+
This driver can also be built as a module. If so, the module
656+
will be called i2c-hisi.
657+
648658
config I2C_IBM_IIC
649659
tristate "IBM PPC 4xx on-chip I2C interface"
650660
depends on 4xx

drivers/i2c/busses/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ obj-$(CONFIG_I2C_EMEV2) += i2c-emev2.o
6363
obj-$(CONFIG_I2C_EXYNOS5) += i2c-exynos5.o
6464
obj-$(CONFIG_I2C_GPIO) += i2c-gpio.o
6565
obj-$(CONFIG_I2C_HIGHLANDER) += i2c-highlander.o
66+
obj-$(CONFIG_I2C_HISI) += i2c-hisi.o
6667
obj-$(CONFIG_I2C_HIX5HD2) += i2c-hix5hd2.o
6768
obj-$(CONFIG_I2C_IBM_IIC) += i2c-ibm_iic.o
6869
obj-$(CONFIG_I2C_IMG) += i2c-img-scb.o

0 commit comments

Comments
 (0)