5a7aeb9439
Add an interrupt driven i2c driver for gd32 i2c peripheral. The transmit and reception method refer from GD32 SoCs user manual. Particularly, reception method choose the solution B. There have some wait for state ready logic in the driver. It cause by i2c device internal state change slower than i2c driver. Signed-off-by: HaiLong Yang <cameledyang@pm.me>
12 lines
309 B
Plaintext
12 lines
309 B
Plaintext
# Copyright (c) 2021 BrainCo Inc.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
DT_COMPAT_GD32_I2C := gd,gd32-i2c
|
|
|
|
config I2C_GD32
|
|
bool "GigaDevice GD32 I2C driver"
|
|
depends on (SOC_FAMILY_GD32 || SOC_SERIES_GD32VF103)
|
|
default $(dt_compat_enabled,$(DT_COMPAT_GD32_I2C))
|
|
help
|
|
Enables GigaDevice GD32 I2C driver
|