From patchwork Sat Feb 24 14:09:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Derald D. Woods" X-Patchwork-Id: 877416 X-Patchwork-Delegate: trini@ti.com Return-Path: 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=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Grr5NcYp"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zpVPw2cqrz9sWH for ; Sun, 25 Feb 2018 01:11:32 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id D1684C22014; Sat, 24 Feb 2018 14:10:20 +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=FREEMAIL_FROM, RCVD_IN_MSPIKE_H2, 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 35295C22035; Sat, 24 Feb 2018 14:10:12 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id F2E7BC21FB1; Sat, 24 Feb 2018 14:10:05 +0000 (UTC) Received: from mail-io0-f195.google.com (mail-io0-f195.google.com [209.85.223.195]) by lists.denx.de (Postfix) with ESMTPS id 11F2FC21D56 for ; Sat, 24 Feb 2018 14:10:01 +0000 (UTC) Received: by mail-io0-f195.google.com with SMTP id q24so5432516ioh.8 for ; Sat, 24 Feb 2018 06:10:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=FlKSgfAkPZKWGbjv78NBAT3ArcKyHcUNLoGOf3ct+8I=; b=Grr5NcYpjv7xzf12TgnzBXFm23iX3qx44/kUAlsIegeY7c64qTBPLI4efPgKLt5LDD qrBsM3V5o9cb9YMRAADE1gWlcpUv5SdgvLyqiDyIlAA6MhwasujVarIouxExjvLLTV6U /PpLOsx8yTJoM/bSbcc+/UAMiwJhMRkRIWH6xzNaYIH/rvnM49c6XG0lldYShP3we+5J pK0d2ttSDfLocE42aljkxFoKVivxFZWazf883C4EMcjfHDCX2SX1xdTjCQsOPg5DzM8g 68Sth5ZK01jKOvM0j3vRatb9NVNd/KZOgIAfj7N83QEj/12Ep7SZqJqtawiZDPIKLSo8 FCgg== 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; bh=FlKSgfAkPZKWGbjv78NBAT3ArcKyHcUNLoGOf3ct+8I=; b=ZgISZEDDGtT/EJHXdIzEiUHeegWFUQtMjvCxUbfpDrSYgLWoqVQN5jNjKJnklW2bBz ErK1yi5KbyP+YncaEQnGz780eGZ69WOzHfeCw/L5IbXU2jBknbOMuNZKyr0egMpRnwk9 DbJXFrOTeTspl/clR5Mobx2rdh2/O4faQlgUc1QEgbq0z3J1Mz7WWqGq9yKMg8F9IM+c oikQx2ZIcz4dpYDJJ3y6Ftmwn02WTGM9xFCzE1rBKzdv3W4bsWD1NphzrvPHzL1IXNXl 8OBbA71Y4HGwsYZXi/tOxO0e0601Im5mnVz3NdfZGxePFDuMwUfrRIA9VMAeLDeELssj Ax0w== X-Gm-Message-State: APf1xPCVs4wbfvcSVCOGyc4/4+FfXX0x8cBoTe29AOOcHe34fEuf/bRU gUwuNoQrUnF3P+GtizKyS+mkxQ== X-Google-Smtp-Source: AG47ELse/YivbmcZQ9nJ6GH/qq1rCakyhffEyRM3PeM/kNbIGbnKmWOpQyEt2qWyD8gUgXJ9s6nDJg== X-Received: by 10.107.38.80 with SMTP id m77mr5696481iom.69.1519481399613; Sat, 24 Feb 2018 06:09:59 -0800 (PST) Received: from ethiopia.woodsts.org (c-73-74-196-48.hsd1.il.comcast.net. [73.74.196.48]) by smtp.gmail.com with ESMTPSA id z133sm2831355itb.2.2018.02.24.06.09.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 24 Feb 2018 06:09:59 -0800 (PST) From: "Derald D. Woods" To: u-boot@lists.denx.de Date: Sat, 24 Feb 2018 08:09:40 -0600 Message-Id: <20180224140942.25332-2-woods.technical@gmail.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180224140942.25332-1-woods.technical@gmail.com> References: <20180212051329.29761-1-woods.technical@gmail.com> <20180224140942.25332-1-woods.technical@gmail.com> Cc: trini@konsulko.com Subject: [U-Boot] [PATCH v2 1/3] ARM: omap3: beagle: Set 'mtdids' and 'mtdparts' in board file X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" BeagleBoard 'xM' does not really have NAND. CONFIG_MTDIDS_DEFAULT and CONFIG_MTDPARTS_DEFAULT can/should be empty for 'xM'. This commit sets the defined values if they exist. Signed-off-by: Derald D. Woods --- board/ti/beagle/beagle.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/board/ti/beagle/beagle.c b/board/ti/beagle/beagle.c index d8402f2675..1d55264733 100644 --- a/board/ti/beagle/beagle.c +++ b/board/ti/beagle/beagle.c @@ -521,6 +521,14 @@ int misc_init_r(void) if (generate_fake_mac) omap_die_id_usbethaddr(); +#if defined(CONFIG_MTDIDS_DEFAULT) && defined(CONFIG_MTDPARTS_DEFAULT) + if (strlen(CONFIG_MTDIDS_DEFAULT)) + env_set("mtdids", CONFIG_MTDIDS_DEFAULT); + + if (strlen(CONFIG_MTDPARTS_DEFAULT)) + env_set("mtdparts", CONFIG_MTDPARTS_DEFAULT); +#endif + return 0; }