]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/spi/Makefile
dm: spi: Add a uclass for SPI
[karo-tx-uboot.git] / drivers / spi / Makefile
index f02c35a52c0cd5100804342ca0e05a915151fd7d..d1f1dd066600628887ed4ff22acde684a6d59c99 100644 (file)
@@ -6,7 +6,11 @@
 #
 
 # There are many options which enable SPI, so make this library available
+ifdef CONFIG_DM_SPI
+obj-y += spi-uclass.o
+else
 obj-y += spi.o
+endif
 
 obj-$(CONFIG_EP93XX_SPI) += ep93xx_spi.o
 obj-$(CONFIG_ALTERA_SPI) += altera_spi.o