summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/toradex/common/Makefile2
-rw-r--r--board/toradex/common/mmc.c13
2 files changed, 14 insertions, 1 deletions
diff --git a/board/toradex/common/Makefile b/board/toradex/common/Makefile
index 6b9fccb6b9..fc4dd4b6c3 100644
--- a/board/toradex/common/Makefile
+++ b/board/toradex/common/Makefile
@@ -7,5 +7,5 @@ ifeq ($(CONFIG_SPL_BUILD),y)
obj- := __dummy__.o
else
obj-$(CONFIG_TDX_CFG_BLOCK) += tdx-cfg-block.o
-obj-y += tdx-common.o
+obj-y += mmc.o tdx-common.o
endif
diff --git a/board/toradex/common/mmc.c b/board/toradex/common/mmc.c
new file mode 100644
index 0000000000..5fe8026ed1
--- /dev/null
+++ b/board/toradex/common/mmc.c
@@ -0,0 +1,13 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (c) 2016-2019 Toradex, Inc.
+ */
+
+#include <common.h>
+#include <mmc.h>
+
+/* provide a default implementation */
+__weak int mmc_map_to_kernel_blk(int dev_no)
+{
+ return dev_no;
+}