Skip to content
Permalink
Browse files

drivers: i2c: mchp: Add I2C driver for MEC family

Add i2c_mchp_xec byte-to-byte driver to support I2C instances
for MEC family

Signed-off-by: Jose Alberto Meza <jose.a.meza.arellano@intel.com>
  • Loading branch information...
Jose Alberto Meza authored and andrewboie committed May 7, 2019
1 parent 291e128 commit a94f1718ce91aba05ed6a2169cfd5860529ab3ab
Showing with 435 additions and 0 deletions.
  1. +1 −0 drivers/i2c/CMakeLists.txt
  2. +1 −0 drivers/i2c/Kconfig
  3. +35 −0 drivers/i2c/Kconfig.xec
  4. +398 −0 drivers/i2c/i2c_mchp_xec.c
@@ -8,6 +8,7 @@ zephyr_library_sources_ifdef(CONFIG_I2C_DW i2c_dw.c)
zephyr_library_sources_ifdef(CONFIG_I2C_ESP32 i2c_esp32.c)
zephyr_library_sources_ifdef(CONFIG_I2C_GPIO i2c_gpio.c)
zephyr_library_sources_ifdef(CONFIG_I2C_IMX i2c_imx.c)
zephyr_library_sources_ifdef(CONFIG_I2C_XEC i2c_mchp_xec.c)
zephyr_library_sources_ifdef(CONFIG_I2C_MCUX i2c_mcux.c)
zephyr_library_sources_ifdef(CONFIG_I2C_MCUX_LPI2C i2c_mcux_lpi2c.c)
zephyr_library_sources_ifdef(CONFIG_NRFX_TWI i2c_nrfx_twi.c)
@@ -22,6 +22,7 @@ source "drivers/i2c/Kconfig.dw"
source "drivers/i2c/Kconfig.esp32"
source "drivers/i2c/slave/Kconfig"
source "drivers/i2c/Kconfig.gpio"
source "drivers/i2c/Kconfig.xec"
source "drivers/i2c/Kconfig.nrfx"
source "drivers/i2c/Kconfig.qmsi"
source "drivers/i2c/Kconfig.sbcon"
@@ -0,0 +1,35 @@
# Kconfig.xec - Microchip XEC I2C configuration options
#
# Copyright (c) 2019 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#

menuconfig I2C_XEC
bool "XEC Microchip I2C driver"
depends on SOC_FAMILY_MEC
select HAS_DTS_I2C
help
Enable the Microchip XEC I2C driver.

if I2C_XEC

config I2C_XEC_0
bool "Enable I2C XEC device 0"
help
This tells the driver to configure the I2C device at boot, depending
on the additional configuration options below.

config I2C_XEC_1
bool "Enable I2C XEC device 1"
help
This tells the driver to configure the I2C device at boot, depending
on the additional configuration options below.

config I2C_XEC_2
bool "Enable I2C XEC device 2"
help
This tells the driver to configure the I2C device at boot, depending
on the additional configuration options below.

endif #I2C_XEC

0 comments on commit a94f171

Please sign in to comment.
You can’t perform that action at this time.