Message ID | 20180810060711.6547-28-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="UDosG41G"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 41mwYl3Y66z9sBn for <incoming@patchwork.ozlabs.org>; Fri, 10 Aug 2018 16:43:23 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 136DFC21DA6; Fri, 10 Aug 2018 06:30:18 +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 CB567C21F2F; Fri, 10 Aug 2018 06:19:19 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 5F2B5C21F04; Fri, 10 Aug 2018 06:09:27 +0000 (UTC) Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) by lists.denx.de (Postfix) with ESMTPS id C2502C21E16 for <u-boot@lists.denx.de>; Fri, 10 Aug 2018 06:09:22 +0000 (UTC) Received: by mail-pf1-f196.google.com with SMTP id i26-v6so4004586pfo.12 for <u-boot@lists.denx.de>; Thu, 09 Aug 2018 23:09:22 -0700 (PDT) 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=Vsy2MZkYa1qv3JGbbNiPT7jhxtSKHABcJzrx8vp+w9E=; b=UDosG41G/AD8kygqgcHkDGLUZaknhwqQZxNd7WSBptosmJnadrrQ4JWxj3lfYtGfnr g9WrYXa2p3APY4mos6BLEMwpXzhJo/R/TUUqnzXy+ShSlqg1nQaQMGztXxT1GLgCnZZh +xDK60I+TWd/5oY25kcPNSbx+xScOPwUfD1yg= 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=Vsy2MZkYa1qv3JGbbNiPT7jhxtSKHABcJzrx8vp+w9E=; b=LNKj+kV3eQU3T1p1jBj/u/S7S9OP4FqYKPfm9UE2CTasA6Zvb/RbqNYBQsY8L1oZxP 7CWKLthEtwWpdLOX9IuxqEiIJbLso9UoTFkCsT9aFtPf7jRHhp20sjv0dkzFNaBja39W eKhUCjJ1rw7pAT73DNkBG2WYtYd+KVFDk7vE9CoBayf0JoHKgy7mDGjXNHTknUt6RI1a 6asaT6ubJQLxyNprgZNm+jBIADL6MKyLERQwSrB+U/JStGSO3iuTwoo3erEmWnTj5eVx K+wyApkKBywNoB30RiQhZ1CV7kfhYoUCgbPBfo1yu7oMu/ikQwOUoAmBj7DSy6UkBI28 IpUg== X-Gm-Message-State: AOUpUlFZV1CiUkNxjeXEFM9TWDuIodHK9VGLoDc42JmqZvnlQYPfYmoZ XZGR8hSoNDOWlQsXDJ1LA/ae3w== X-Google-Smtp-Source: AA+uWPxdTuBsgR6fUhzquzt02YIwPd/2FKJJUdiMn9ig0G3Kv6fpEAbh+/XZXDhTtiyft7xj8tEOuw== X-Received: by 2002:a65:5c83:: with SMTP id a3-v6mr5053910pgt.164.1533881361396; Thu, 09 Aug 2018 23:09:21 -0700 (PDT) Received: from localhost.localdomain ([183.82.228.250]) by smtp.gmail.com with ESMTPSA id r23-v6sm16880975pfj.5.2018.08.09.23.09.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Aug 2018 23:09:20 -0700 (PDT) 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>, Icenowy Zheng <icenowy@aosc.io> Date: Fri, 10 Aug 2018 11:36:45 +0530 Message-Id: <20180810060711.6547-28-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20180810060711.6547-1-jagan@amarulasolutions.com> References: <20180810060711.6547-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Cc: Tom Rini <trini@konsulko.com>, u-boot@lists.denx.de Subject: [U-Boot] [PATCH v2 27/53] sunxi: Use mmc_bootdev=2 for MMC2 boot 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 |
clk: Add Allwinner CLK, RESET support
|
expand
|
diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 857d5ff010..89012daad1 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c @@ -775,7 +775,7 @@ int misc_init_r(void) } else if (boot == BOOT_DEVICE_MMC1) { env_set("mmc_bootdev", "0"); } else if (boot == BOOT_DEVICE_MMC2) { - env_set("mmc_bootdev", "1"); + env_set("mmc_bootdev", "2"); } setup_environment(gd->fdt_blob); diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h index f1578d3754..9016c048ab 100644 --- a/include/configs/sunxi-common.h +++ b/include/configs/sunxi-common.h @@ -377,8 +377,10 @@ extern int soft_i2c_gpio_scl; #define BOOTENV_DEV_MMC_AUTO(devtypeu, devtypel, instance) \ BOOTENV_DEV_MMC(MMC, mmc, 0) \ BOOTENV_DEV_MMC(MMC, mmc, 1) \ + BOOTENV_DEV_MMC(MMC, mmc, 2) \ "bootcmd_mmc_auto=" \ - "if test ${mmc_bootdev} -eq 1; then " \ + "if test ${mmc_bootdev} -eq 2; then " \ + "run bootcmd_mmc2; " \ "run bootcmd_mmc1; " \ "run bootcmd_mmc0; " \ "elif test ${mmc_bootdev} -eq 0; then " \
With DM_MMC the mmc devices are probed as per dt status and eMMC can probed maximum device of 2, if all nodes like mmc0, mmc1 and mmc2 status are 'okay'. So update mmc_bootdev to 2 and add boot order as 2, 1, 0 devices. so-that it can to boot any identified device even if the respective device status disabled or unsupported. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> --- board/sunxi/board.c | 2 +- include/configs/sunxi-common.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-)