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 6720BC433F5 for ; Tue, 21 Dec 2021 09:52:40 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9A21281DB4; Tue, 21 Dec 2021 10:52:37 +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="kz566Y/r"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 571B381C08; Tue, 21 Dec 2021 10:52:36 +0100 (CET) Received: from mail-ua1-x92b.google.com (mail-ua1-x92b.google.com [IPv6:2607:f8b0:4864:20::92b]) (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 52C5681DB4 for ; Tue, 21 Dec 2021 10:52:32 +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=pbrobinson@gmail.com Received: by mail-ua1-x92b.google.com with SMTP id t13so22653232uad.9 for ; Tue, 21 Dec 2021 01:52:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bNCrSHXw2R0kYTP1cuA5exitu6nR83pNEwaeV6HIHOo=; b=kz566Y/r3ECp10gN8El/ns1d2ZyMlDVMV3SDBM08M+QV26KF+ZEAhhjDdVCUFefPdh Cf4HuP+va2McFD6sLY82a9qIEcB9GKA1G75dxMGuoVsU6fW5DoOK/N/yaJI3dkjNDnMH vQgTLw9U4l+eOmXr5BpWm4GU2GiIiGmYNgZgG4dFeB/lGEf4cLm/KhdmQloK1m/gK3mA E/JLjGjECve1au9Ya/Oed2QQ7hHk5ZzF21fYOzvyJD3rfNGRxmZuJycDrqMh6KY1PwJG rIP4w5ovZad8Wa5aU+qJK1Thk1q9fpQ2h59kyxn14iOnWNF/vSwAtP/eGgUOphONj0xO P8EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bNCrSHXw2R0kYTP1cuA5exitu6nR83pNEwaeV6HIHOo=; b=IhDObmOBDaFOhpY53+9Qdts5BrEsQy98En5BWJXm1OPCdqLmttFsxx2IOGoaGycqv8 7egZz9X7X260tNPn33kfC+RwBBwzFLBoD0OFML7ZNAu6UdiSmJI3Y2g4PdqCxC0JcrhS ui5BqeSWuWWPlUrVSJPaoU/fUguvFlgq7LVEEuPdGez+vkik6qi/lwMoFCcdnzUt6aW1 O0B/mnoiWWNHpZZZ8Z7B8M+jVEj6OAog/GwIFkZLN4eQ6KANWz12Xa9XHWLbKyJwFTB1 gyCoGvC16gLj70fR/7Ak0aT1gzccb9YtBM3mdgrf/C+lxsz7w9cAWfR5Z6UXgi0J8eB8 vvRg== X-Gm-Message-State: AOAM530UYXEAtUYutt6pifa5WFJ03tlNHVtqyCvw9dNP7kDZDcKNRThX bCNRCasKulja+kDKGV8seu+SC5ukJnBkOcr6Q0U= X-Google-Smtp-Source: ABdhPJxc8DJZSubqcVXUIyDIyLQjGiqeq3SzbsZK0sqUzgiygqKp9+wiw6xXfgmatgFk2Uk42TWOkf9A85JyIjj/AV8= X-Received: by 2002:a67:b807:: with SMTP id i7mr844896vsf.52.1640080350932; Tue, 21 Dec 2021 01:52:30 -0800 (PST) MIME-Version: 1.0 References: <20211218211025.770362-1-festevam@gmail.com> <20211218211025.770362-4-festevam@gmail.com> In-Reply-To: <20211218211025.770362-4-festevam@gmail.com> From: Peter Robinson Date: Tue, 21 Dec 2021 09:52:19 +0000 Message-ID: Subject: Re: [PATCH 4/6] udoo: Adjust the SD card device numbering To: Fabio Estevam Cc: sbabic@denx.de, trini@konsulko.com, u-boot@lists.denx.de Content-Type: text/plain; charset="UTF-8" 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 On Sat, Dec 18, 2021 at 9:10 PM Fabio Estevam wrote: > > 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 Reviewed-by: Peter Robinson > --- > 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 >