From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 92C10C433F5 for ; Sat, 18 Dec 2021 21:11:18 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BC321830B4; Sat, 18 Dec 2021 22:11:01 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="eW1xHNtb"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 90A338306F; Sat, 18 Dec 2021 22:10:49 +0100 (CET) Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9ACBD830C4 for ; Sat, 18 Dec 2021 22:10:43 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=festevam@gmail.com Received: by mail-qk1-x736.google.com with SMTP id p4so5712047qkm.7 for ; Sat, 18 Dec 2021 13:10:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rdXlaPFuYYcSWuMZ5FIuLCT5NcN4p9XUCWkCI7QMrlM=; b=eW1xHNtb/0AjWbT/m9zA9ebeydqeglI1XH9MPAA5bpwIeQlGy4135MLwWVz/pvBrPc fDkUfbM7SmSAtYGEKzalI2UYRq65s4jnuRfvH6kWZS+6ATZStDdI8YZhh9fvtYPianR+ KZ2p1LqDmcP8ruztUXHG57frkDEw7Dmf3uGNOGR6L9M70tH5VojfcSsWT9t/1t8Df9R0 a47JG6B0oUdNBiBlNx62/JLXpHG22nCNF4qZVvKDrUoZfCuCvQGH8OE6XdOjRxVWrcw6 H6MmV39xNyjMT2FS0JckW343uSUeluWq1MX0w4Vr1mwUWESxxh4CJf9+WH0bAhLEUhZM kurw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rdXlaPFuYYcSWuMZ5FIuLCT5NcN4p9XUCWkCI7QMrlM=; b=2vM6fmpcWUXmN2IbZZiMSeHE0l90NYx8StJZZYW/hQX8ZhbEw2ieCy1KeEMkZavWdL ZJxwb9OVoPFtvvF2++gMDoGDqs2HZ1ydxJHLtMJ8g68rNov5dLrzRCyzoFJp1oI80aBV 09nN2mTc9R3QN8yOK34ReDKLgKYwd6IELBhqumGPx0YneKz9H6XUu1lLlj0UrWWZ/+rF JedOGeReADUhvPxNdYJ7AYFCEfkOu/EadJpWhW9nipR+RUfJSbVMHPfK8SLsxw9vZbIK 45Pchtiq0FySZY8NIv0WRU9qM4A+RyTu6nRS5pAj3KC5YtOaMahLYLB7UPtCOyuNQmad KKqw== X-Gm-Message-State: AOAM532C/eCAf4q11ivPUcDI67fApBQCqu21jICsapKpjN5t9r9jwxqz l7c46EOUQvn0bKYrpkg3iLIHcnclMR4= X-Google-Smtp-Source: ABdhPJyZRkAb0DjsaqNpt+95dS+TraQHqhKeELx6igjN3i4FmmYD10boULX474ZYozIqF+h9M8RQwQ== X-Received: by 2002:a37:a04c:: with SMTP id j73mr3164236qke.192.1639861842305; Sat, 18 Dec 2021 13:10:42 -0800 (PST) Received: from localhost.localdomain ([2804:14c:485:504a:7b0c:575d:a01c:4860]) by smtp.gmail.com with ESMTPSA id x25sm7562213qkf.91.2021.12.18.13.10.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Dec 2021 13:10:41 -0800 (PST) From: Fabio Estevam To: sbabic@denx.de Cc: pbrobinson@gmail.com, trini@konsulko.com, u-boot@lists.denx.de, Fabio Estevam Subject: [PATCH 4/6] udoo: Adjust the SD card device numbering Date: Sat, 18 Dec 2021 18:10:23 -0300 Message-Id: <20211218211025.770362-4-festevam@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211218211025.770362-1-festevam@gmail.com> References: <20211218211025.770362-1-festevam@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean After the conversion to DM the SD card shows up as 'mmc 2' device. Adjust the 'mmcdev' and the distro command 'func' accordingly. Signed-off-by: Fabio Estevam --- configs/udoo_defconfig | 1 + include/configs/udoo.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/configs/udoo_defconfig b/configs/udoo_defconfig index 8e1bba112041..284ea0588465 100644 --- a/configs/udoo_defconfig +++ b/configs/udoo_defconfig @@ -35,6 +35,7 @@ CONFIG_OF_CONTROL=y CONFIG_ENV_OVERWRITE=y CONFIG_ENV_IS_IN_MMC=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y +CONFIG_SYS_MMC_ENV_DEV=2 CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y CONFIG_DM=y CONFIG_BOUNCE_BUFFER=y diff --git a/include/configs/udoo.h b/include/configs/udoo.h index fe6ea68dd461..4bddc0eca30e 100644 --- a/include/configs/udoo.h +++ b/include/configs/udoo.h @@ -28,7 +28,7 @@ "fdt_addr=0x18000000\0" \ "fdt_addr_r=0x18000000\0" \ "ip_dyn=yes\0" \ - "mmcdev=0\0" \ + "mmcdev=2\0" \ "mmcrootfstype=ext4\0" \ "findfdt="\ "if test ${board_rev} = MX6Q; then " \ @@ -44,7 +44,7 @@ BOOTENV #define BOOT_TARGET_DEVICES(func) \ - func(MMC, mmc, 0) \ + func(MMC, mmc, 2) \ func(SATA, sata, 0) \ func(DHCP, dhcp, na) -- 2.25.1