forked from Mirrors/opensbi

We update i2c drivers makefile to use kconfig for enabling/disabling drivers. To avoid compile errors, we also enable appropriate i2c drivers for each platform. Signed-off-by: Anup Patel <apatel@ventanamicro.com> Tested-by: Andrew Jones <ajones@ventanamicro.com> Acked-by: Atish Patra <atishp@rivosinc.com> Tested-by: Atish Patra <atishp@rivosinc.com>
23 lines
264 B
Plaintext
23 lines
264 B
Plaintext
# SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
menu "I2C Support"
|
|
|
|
config FDT_I2C
|
|
bool "FDT based I2C drivers"
|
|
select I2C
|
|
default n
|
|
|
|
if FDT_I2C
|
|
|
|
config FDT_I2C_SIFIVE
|
|
bool "SiFive I2C FDT driver"
|
|
default n
|
|
|
|
endif
|
|
|
|
config I2C
|
|
bool "I2C support"
|
|
default n
|
|
|
|
endmenu
|