Message ID | 20190111180414.1563-8-jagan@amarulasolutions.com |
---|---|
State | Superseded |
Delegated to: | Jagannadha Sutradharudu Teki |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="Hoyb1byl"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43brVB6FPCz9s9h for <incoming@patchwork.ozlabs.org>; Sat, 12 Jan 2019 05:09:22 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 7F010C22176; Fri, 11 Jan 2019 18:06:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 325CAC221ED; Fri, 11 Jan 2019 18:05:50 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id BEBE2C221F2; Fri, 11 Jan 2019 18:05:05 +0000 (UTC) Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) by lists.denx.de (Postfix) with ESMTPS id 68AB0C2220F for <u-boot@lists.denx.de>; Fri, 11 Jan 2019 18:05:01 +0000 (UTC) Received: by mail-pl1-f193.google.com with SMTP id a14so7074409plm.12 for <u-boot@lists.denx.de>; Fri, 11 Jan 2019 10:05:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=etUP9Bz2q4/AKklF1ZPMOi9MSu11Uo0LEdOzTEhUGcI=; b=Hoyb1bylCexYfoveMiqH4ogWdwm1TMZNXDsL3k2ZrZaywdW9bInNfHuXIDL3810tra vBIj3BYVo6w6HV1dm5YQp0JZnT8v5iTJ3XZTvV5VGJAl1k2tYJltSOfKFbqoyXT6Dc7m StQ19NuEVO5OaIvFthGT52ezG5Hs0MXkcDaNA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=etUP9Bz2q4/AKklF1ZPMOi9MSu11Uo0LEdOzTEhUGcI=; b=Y7h2gRCicblCBIvUgZBzIB+W+vS+tj3PazE3R/GJXpdsqLNWGyM1JYknGUYkQOLThS uXB1M2sJRPPe0PP6+a2EW2qx409oXWGbc7RaXreh5R/cBKLuFaIFbORei4qKhtDWBan+ UpRNMa2HrE1p5mcaI6Pg2+PCrjKGt1cDwtgmsA5i2F4tCVvCcTg6ncB2hjWFFlRq9DBZ ooaj+Xz80Cobr//f8gi85wZ30ELUISzdhtN7GX2iQsKo2xc63fzHxiAfID/I1X2Zwwem mrfFF2YWDKr40gjqO54/q/+QUI3EAVjzMLoGJWA6zIsHkKbMlLmoQHL7UJsD1vN8kvFo Vfbw== X-Gm-Message-State: AJcUukecYam46SLyuIKTzMsR+O5w0HrAYbBUzd6iYRm5Bo939CDVPL0K vWea0Yz0ebwtz0J3Hk9tHpU95xtiV80= X-Google-Smtp-Source: ALg8bN4KXHYTRuGGikDjk/VRoL6Skjz/My4BAdB6MHQWKRmENigxupGNtNI6WuH2gNfOixRQH66R+Q== X-Received: by 2002:a17:902:4523:: with SMTP id m32mr15536899pld.53.1547229900020; Fri, 11 Jan 2019 10:05:00 -0800 (PST) Received: from localhost.localdomain ([49.206.202.55]) by smtp.gmail.com with ESMTPSA id 186sm156638146pga.36.2019.01.11.10.04.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Jan 2019 10:04:59 -0800 (PST) From: Jagan Teki <jagan@amarulasolutions.com> To: Maxime Ripard <maxime.ripard@bootlin.com>, Andre Przywara <andre.przywara@arm.com>, Chen-Yu Tsai <wens@csie.org>, Simon Glass <sjg@chromium.org>, Tom Rini <trini@konsulko.com>, u-boot@lists.denx.de, linux-sunxi@googlegroups.com, Priit Laes <plaes@plaes.org>, linux-amarula@amarulasolutions.com Date: Fri, 11 Jan 2019 23:34:14 +0530 Message-Id: <20190111180414.1563-8-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190111180414.1563-1-jagan@amarulasolutions.com> References: <20190111180414.1563-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Subject: [U-Boot] [PATCH 7/7] arm: dts: sunxi: Enumerate MMC2 as MMC1 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
mmc: sunxi: Enable DM_MMC
|
expand
|
diff --git a/arch/arm/dts/sunxi-u-boot.dtsi b/arch/arm/dts/sunxi-u-boot.dtsi index 8a9f2a6417..fdd4c80aa4 100644 --- a/arch/arm/dts/sunxi-u-boot.dtsi +++ b/arch/arm/dts/sunxi-u-boot.dtsi @@ -1,6 +1,10 @@ #include <config.h> / { + aliases { + mmc1 = &mmc2; + }; + binman { filename = "u-boot-sunxi-with-spl.bin"; pad-byte = <0xff>;
Environment and fastboot MMC devices are configured based number of mmc slots defined on particular board in sunxi platform. If number of slots are not more than 1, it assigns 0 which usually mmc device on SD slot. With DM_MMC it is detected as 0 since mmc0 node always be an mmc device. If number of slots are more than 1, it assigns 1 which assumes 0 is mmc device and 1 is emmc device. But with DM_MMC there is chance of detecting emmc as device 2 since mmc1 is SDIO as per devicetree definition. So override mmc2 to mmc1 in sunxi dtsi, this will eventually detect mmc2 as mmc 1 device even if the board dts has mmc0, mmc1, mmc2. Some platforms like A20 has mmc0...mmc3, but there is no usecases now for enabling all mmc controllers in any of A20 board dts files. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> --- arch/arm/dts/sunxi-u-boot.dtsi | 4 ++++ 1 file changed, 4 insertions(+)