From d0a428a6556ea5a006e22e28b0b1cd037885fe20 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Wed, 22 Nov 2023 01:07:12 +0000
Subject: [PATCH] add gmac0 read mac form eeprom,pcie30x1
---
u-boot/cmd/mmc.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/u-boot/cmd/mmc.c b/u-boot/cmd/mmc.c
index 0813330..ef6321f 100644
--- a/u-boot/cmd/mmc.c
+++ b/u-boot/cmd/mmc.c
@@ -129,6 +129,7 @@
static int do_mmc_test_secure_storage(cmd_tbl_t *cmdtp,
int flag, int argc, char * const argv[])
{
+#ifdef CONFIG_MMC
struct mmc *mmc;
if (curr_device < 0) {
@@ -143,7 +144,8 @@
mmc = init_mmc_device(curr_device, false);
if (!mmc)
- return CMD_RET_FAILURE;
+ printf("No mmc device\n");
+#endif
int i, count = 100;
--
Gitblit v1.6.2