diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2020-02-21 14:56:39 +0100 |
---|---|---|
committer | Andrejs Cainikovs <andrejs.cainikovs@toradex.com> | 2022-09-05 17:51:05 +0200 |
commit | b0eb96cf020ec3e4c094cd6f32c031f9cd3892a1 (patch) | |
tree | b5b5b947119f323d2fcfd2756e20facf819e115b /board/toradex | |
parent | 0e3c8aa8eefdc31dd1c20bf446f9011acbb5eceb (diff) |
mmc board code: add a weak common implementation
NXP common code now calls a board function mmc_map_to_kernel_blk().
Provide a weak function in common code for boards not requiring
special handling.
Taken from boards/freescale/common/mmc.c
Upstream-Status: Inappropriate [other]
- NXP downstream specific
Related-to: ELB-2351
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit a960b9ecd99d1b4e3f194bc52d92cb41b0d80e4a)
Diffstat (limited to 'board/toradex')
-rw-r--r-- | board/toradex/common/Makefile | 1 | ||||
-rw-r--r-- | board/toradex/common/mmc.c | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/board/toradex/common/Makefile b/board/toradex/common/Makefile index 7b19b6e4c8..eca8f71266 100644 --- a/board/toradex/common/Makefile +++ b/board/toradex/common/Makefile @@ -7,6 +7,7 @@ ifeq ($(CONFIG_SPL_BUILD),y) obj- := __dummy__.o else obj-$(CONFIG_TDX_CFG_BLOCK) += tdx-cfg-block.o +obj-y += mmc.o obj-y += tdx-common.o obj-y += tdx-eeprom.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; +} |