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 <kumar.gala@linaro.org>
This commit is contained in:
parent
4f714d3822
commit
03259dba90
2 changed files with 13 additions and 0 deletions
12
boards/nios2/altera_max10/dts_fixup.h
Normal file
12
boards/nios2/altera_max10/dts_fixup.h
Normal file
|
@ -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
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue