Skip to content

Commit 0560ad5

Browse files
tthayer-intelWolfram Sang
authored andcommitted
i2c: altera: Add Altera I2C Controller driver
Add driver support for the Altera I2C Controller. The I2C controller is soft IP for use in FPGAs. Signed-off-by: Thor Thayer <thor.thayer@linux.intel.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
1 parent 8f73681 commit 0560ad5

File tree

4 files changed

+527
-0
lines changed

4 files changed

+527
-0
lines changed

MAINTAINERS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,11 @@ ALPS PS/2 TOUCHPAD DRIVER
644644
R: Pali Rohár <pali.rohar@gmail.com>
645645
F: drivers/input/mouse/alps.*
646646

647+
ALTERA I2C CONTROLLER DRIVER
648+
M: Thor Thayer <thor.thayer@linux.intel.com>
649+
S: Maintained
650+
F: drivers/i2c/busses/i2c-altera.c
651+
647652
ALTERA MAILBOX DRIVER
648653
M: Ley Foon Tan <lftan@altera.com>
649654
L: nios2-dev@lists.rocketboards.org (moderated for non-subscribers)

drivers/i2c/busses/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,16 @@ config I2C_POWERMAC
336336

337337
comment "I2C system bus drivers (mostly embedded / system-on-chip)"
338338

339+
config I2C_ALTERA
340+
tristate "Altera Soft IP I2C"
341+
depends on (ARCH_SOCFPGA || NIOS2) && OF
342+
help
343+
If you say yes to this option, support will be included for the
344+
Altera Soft IP I2C interfaces on SoCFPGA and Nios2 architectures.
345+
346+
This driver can also be built as a module. If so, the module
347+
will be called i2c-altera.
348+
339349
config I2C_ASPEED
340350
tristate "Aspeed I2C Controller"
341351
depends on ARCH_ASPEED || COMPILE_TEST

drivers/i2c/busses/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ obj-$(CONFIG_I2C_HYDRA) += i2c-hydra.o
3030
obj-$(CONFIG_I2C_POWERMAC) += i2c-powermac.o
3131

3232
# Embedded system I2C/SMBus host controller drivers
33+
obj-$(CONFIG_I2C_ALTERA) += i2c-altera.o
3334
obj-$(CONFIG_I2C_ASPEED) += i2c-aspeed.o
3435
obj-$(CONFIG_I2C_AT91) += i2c-at91.o
3536
obj-$(CONFIG_I2C_AU1550) += i2c-au1550.o

0 commit comments

Comments
 (0)