mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-11-20 02:22:19 +00:00
lib: utils/i2c: Use kconfig for enabling/disabling drivers
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>
This commit is contained in:
1 parent
0b1cf2f645
commit
b126ce4a8f
4 files changed
+31
-5
No files matched your search
@@ -0,0 +1,22 @@
|
||||
# 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
|
||||
Reference in new issue
Block a user