bugix/risc-v/esp32c6: Fix build error of LP_I2C

Fix build error of LP_I2C for esp32c6

Signed-off-by: Eren Terzioglu <eren.terzioglu@espressif.com>
This commit is contained in:
Eren Terzioglu
2025-08-04 13:26:45 +02:00
committed by Alan C. Assis
parent 85923c1797
commit 1c0e1698cd
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -390,7 +390,7 @@ config ESPRESSIF_LPI2C
config ESPRESSIF_I2C_PERIPH_MASTER_MODE
bool
depends on (ESPRESSIF_I2C0_MASTER_MODE || ESPRESSIF_I2C1_MASTER_MODE)
depends on (ESPRESSIF_I2C0_MASTER_MODE || ESPRESSIF_I2C1_MASTER_MODE || ESPRESSIF_LP_I2C0)
default n
config ESPRESSIF_I2C_PERIPH_SLAVE_MODE
@@ -417,6 +417,7 @@ config ESPRESSIF_LP_I2C0
depends on ARCH_CHIP_ESP32C6
select ESPRESSIF_I2C
select ESPRESSIF_LPI2C
select ESPRESSIF_I2C_PERIPH_MASTER_MODE
select I2C
choice ESPRESSIF_I2C0_MODE
@@ -148,7 +148,8 @@ int board_i2c_init(void)
{
int ret = OK;
#ifdef CONFIG_ESPRESSIF_I2C_PERIPH_MASTER_MODE
#if defined(CONFIG_ESPRESSIF_I2C_PERIPH_MASTER_MODE) && \
defined(CONFIG_ESPRESSIF_I2C0)
ret = i2c_driver_init(ESPRESSIF_I2C0);
#endif