Skip to content

Commit 0f8d12d

Browse files
wtlee1995carlescufi
authored andcommitted
drivers: i2c: add Andes atciic100 driver
Add I2C driver for Andes atciic100. Driver supports I2C target mode and tested on adp_xc7k_ae350 in runtime. Signed-off-by: Wei-Tai Lee <[email protected]>
1 parent adffca1 commit 0f8d12d

File tree

5 files changed

+1042
-0
lines changed

5 files changed

+1042
-0
lines changed

drivers/i2c/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ zephyr_library_sources_ifdef(CONFIG_I2C_RCAR i2c_rcar.c)
3838
zephyr_library_sources_ifdef(CONFIG_I2C_TCA954X i2c_tca954x.c)
3939
zephyr_library_sources_ifdef(CONFIG_I2C_XEC_V2 i2c_mchp_xec_v2.c)
4040
zephyr_library_sources_ifdef(CONFIG_I2C_GD32 i2c_gd32.c)
41+
zephyr_library_sources_ifdef(CONFIG_I2C_ANDES_ATCIIC100 i2c_andes_atciic100.c)
4142

4243
zephyr_library_sources_ifdef(CONFIG_I2C_STM32_V1
4344
i2c_ll_stm32_v1.c

drivers/i2c/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ source "drivers/i2c/Kconfig.test"
5656
source "drivers/i2c/Kconfig.rcar"
5757
source "drivers/i2c/Kconfig.tca954x"
5858
source "drivers/i2c/Kconfig.gd32"
59+
source "drivers/i2c/Kconfig.andes_atciic100"
5960

6061
config I2C_INIT_PRIORITY
6162
int "Init priority"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Kconfig Andes ATCIIC100 configuration option
2+
#
3+
# Copyright (c) 2022 Andes Technology Corporation.
4+
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
#
7+
8+
config I2C_ANDES_ATCIIC100
9+
bool "Andes ATCIIC100 I2C driver"
10+
default y
11+
depends on DT_HAS_ANDESTECH_ATCIIC100_ENABLED
12+
help
13+
Enable driver for the Andes ATCIIC100 I2C controller.

0 commit comments

Comments
 (0)