1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2018 MediaTek Inc.
8 DECLARE_GLOBAL_DATA_PTR;
12 /* address of boot parameters */
13 gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
18 int mmc_get_boot_dev(void)
21 char *uflag = (char *)0x81DFFFF0;
22 if (strncmp(uflag,"eMMC",4)==0) {
24 printf("Boot From Emmc(id:%d)\n\n", g_mmc_devid);
27 printf("Boot From SD(id:%d)\n\n", g_mmc_devid);
32 int mmc_get_env_dev(void)
34 return mmc_get_boot_dev();