summaryrefslogtreecommitdiffstats
path: root/drivers/sound/Makefile
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-12-10 10:37:39 -0700
committerSimon Glass <sjg@chromium.org>2018-12-13 16:36:29 -0700
commitd6cadd591879ba9d2d8a4375bb65f5032b5fb987 (patch)
treeae5061c9c7affa9759e1707966eff298d0fce538 /drivers/sound/Makefile
parent6c986cfef4a104ad39faf381014b7c315984cab8 (diff)
downloadu-boot-d6cadd591879ba9d2d8a4375bb65f5032b5fb987.tar.gz
u-boot-d6cadd591879ba9d2d8a4375bb65f5032b5fb987.tar.xz
u-boot-d6cadd591879ba9d2d8a4375bb65f5032b5fb987.zip
dm: sound: Add conversion to driver model
Move the existing hardware drivers over to use driver model. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/sound/Makefile')
-rw-r--r--drivers/sound/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/sound/Makefile b/drivers/sound/Makefile
index 70d32c6d6f..75fa31ec53 100644
--- a/drivers/sound/Makefile
+++ b/drivers/sound/Makefile
@@ -6,9 +6,13 @@
obj-$(CONFIG_SOUND) += sound.o
obj-$(CONFIG_DM_SOUND) += codec-uclass.o
obj-$(CONFIG_DM_SOUND) += i2s-uclass.o
-obj-$(CONFIG_I2S) += sound-i2s.o
obj-$(CONFIG_DM_SOUND) += sound-uclass.o
obj-$(CONFIG_I2S_SAMSUNG) += samsung-i2s.o
obj-$(CONFIG_SOUND_SANDBOX) += sandbox.o
+ifdef CONFIG_DM_SOUND
+obj-$(CONFIG_I2S_SAMSUNG) += samsung_sound.o
+else
+obj-$(CONFIG_I2S) += sound-i2s.o
+endif
obj-$(CONFIG_SOUND_WM8994) += wm8994.o
obj-$(CONFIG_SOUND_MAX98095) += max98095.o