From 03259dba901354edb942acd2f461b8829ee4bc5b Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Thu, 13 Jun 2019 11:14:47 -0500 Subject: [PATCH] drivers/i2c: Add missing HAS_DTS_I2C to nios The NIOS I2C driver supported DTS, but missed HAS_DTS_I2C in Kconfig for it. Signed-off-by: Kumar Gala --- boards/nios2/altera_max10/dts_fixup.h | 12 ++++++++++++ drivers/i2c/Kconfig | 1 + 2 files changed, 13 insertions(+) create mode 100644 boards/nios2/altera_max10/dts_fixup.h diff --git a/boards/nios2/altera_max10/dts_fixup.h b/boards/nios2/altera_max10/dts_fixup.h new file mode 100644 index 00000000000000..c0076cd7c85101 --- /dev/null +++ b/boards/nios2/altera_max10/dts_fixup.h @@ -0,0 +1,12 @@ +/* + * Copyright (c) 2019 Linaro Ltd. + * + * SPDX-License-Identifier: Apache-2.0 + * + * This file is a temporary workaround for mapping of the generated information + * to the current driver definitions. This will be removed when the drivers + * are modified to handle the generated information, or the mapping of + * generated data matches the driver definitions. + */ + +#define CONFIG_I2C_0_NAME DT_NIOS2_I2C_100200_LABEL diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig index 83c5013f0c4c3f..234b7feba975eb 100644 --- a/drivers/i2c/Kconfig +++ b/drivers/i2c/Kconfig @@ -300,6 +300,7 @@ config I2C_BITBANG config I2C_NIOS2 bool "Nios-II I2C driver" depends on HAS_ALTERA_HAL + select HAS_DTS_I2C help Enable the Nios-II I2C driver.