diff options
author | Tom Rini <trini@konsulko.com> | 2020-07-29 09:26:11 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-07-29 09:26:11 -0400 |
commit | 423e08cb77015beab6a81595765ec1faa34bedde (patch) | |
tree | 268fb246e025b8a5fc4eddc3c207ef428f16eb68 /board/mediatek | |
parent | 3b191c56c841596771b4120f09fb556adf958b5c (diff) | |
parent | 3fad1ca28d4c87346d18b89438bf2084fb2c3896 (diff) |
Merge branch '2020-07-28-misc-soc-improvements'
- Assorted MediaTek improvements
- s5p4418 support
- QEMU ARM platform improvements
- Qualcomm IPQ40xx support
Diffstat (limited to 'board/mediatek')
-rw-r--r-- | board/mediatek/mt7623/MAINTAINERS | 7 | ||||
-rw-r--r-- | board/mediatek/mt7623/mt7623_rfb.c | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/board/mediatek/mt7623/MAINTAINERS b/board/mediatek/mt7623/MAINTAINERS index eeb0375d70..1a8d796bd3 100644 --- a/board/mediatek/mt7623/MAINTAINERS +++ b/board/mediatek/mt7623/MAINTAINERS @@ -5,3 +5,10 @@ S: Maintained F: board/mediatek/mt7623 F: include/configs/mt7623.h F: configs/mt7623n_bpir2_defconfig + +UNIELEC U7623 +M: Ryder Lee <ryder.lee@mediatek.com> +M: David Woodhouse <dwmw2@infradead.org> +S: Maintained +F: arch/arm/dts/mt7623a-unielec-u7623-02-emmc.dts +F: configs/mt7623a_unielec_u7623_02_defconfig diff --git a/board/mediatek/mt7623/mt7623_rfb.c b/board/mediatek/mt7623/mt7623_rfb.c index 4ec2764976..984e75ccaf 100644 --- a/board/mediatek/mt7623/mt7623_rfb.c +++ b/board/mediatek/mt7623/mt7623_rfb.c @@ -4,6 +4,7 @@ */ #include <common.h> +#include <mmc.h> DECLARE_GLOBAL_DATA_PTR; @@ -15,10 +16,15 @@ int board_init(void) return 0; } +#ifdef CONFIG_MMC int mmc_get_boot_dev(void) { int g_mmc_devid = -1; char *uflag = (char *)0x81DFFFF0; + + if (!find_mmc_device(1)) + return 0; + if (strncmp(uflag,"eMMC",4)==0) { g_mmc_devid = 0; printf("Boot From Emmc(id:%d)\n\n", g_mmc_devid); @@ -33,3 +39,4 @@ int mmc_get_env_dev(void) { return mmc_get_boot_dev(); } +#endif |