summaryrefslogtreecommitdiffstats
path: root/drivers/memory/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/memory/Makefile')
-rw-r--r--drivers/memory/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/memory/Makefile b/drivers/memory/Makefile
index 42b3ce9d80fc..9cce5d70ed52 100644
--- a/drivers/memory/Makefile
+++ b/drivers/memory/Makefile
@@ -2,6 +2,9 @@
# Makefile for memory devices
#
+ifeq ($(CONFIG_DDR),y)
+obj-$(CONFIG_OF) += of_memory.o
+endif
obj-$(CONFIG_TI_EMIF) += emif.o
obj-$(CONFIG_TEGRA20_MC) += tegra20-mc.o
obj-$(CONFIG_TEGRA30_MC) += tegra30-mc.o