Boot OF_I2C || O2_SPI dependency

This commit is contained in:
Martin Kennedy 2021-02-16 03:38:33 +00:00
parent 34ee966cba
commit ad6a039808

View File

@ -20,13 +20,12 @@ Signed-off-by: Leonid Rosenboim <lrosenboim@caviumnetworks.com>
Signed-off-by: Abhishek Paliwal <abhishek.paliwal@aricent.com>
--- a/drivers/of/Kconfig
+++ b/drivers/of/Kconfig
@@ -107,5 +107,12 @@
@@ -107,4 +107,10 @@
# arches should select this if DMA is coherent by default for OF devices
bool
+config OF_MEMORY_ACCESSOR
+ def_bool y
+ depends on OF_I2C || OF_SPI
+ help
+ OpenFirmware memory accessor support for accessing devices like
+ i2c and SPI eeproms.