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 X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77CE6C433F5 for ; Sat, 11 Sep 2021 22:40:22 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 5CD0E604DC for ; Sat, 11 Sep 2021 22:40:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5CD0E604DC Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5C07A838AB; Sun, 12 Sep 2021 00:40:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1631400018; bh=hYoXL4jKKf3b3cJknidUNZ4Ggc+olH9Q+s1ev+pnJtI=; h=From:To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=E/lzmGJuEy99X3OezpmPkBu8+4e+MxfB+ORr6mhC4NALnhaUw0E+gxjpZLinWbiO6 HVWqGXmRVgnmNHR7iCiP29FPoF/l57P2r3FgN0pPocj0tfZ+jPBs0R6WKENn6XWQYU jvvrRa20QQlV/VP8PoxA8uoY7k2HH2/y71nABirjHUbYYcYR4a56H1dLr8OHueqpWC UMBbEw/p5qz1U1rsF+/ov5pypU06VmaRgxyXI+mrfSC+FnAYZDaSHriip/qu9I/yYx iFZZuK+tRdVJGnmo68LnkZLY+BVaGYhZpw+idI/xBBKQU5X77e8MzI89LT1xsUhvht bg1upeJaq1zng== Received: from tr.lan (ip-89-176-112-137.net.upcbroadband.cz [89.176.112.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 39B8F837E4; Sun, 12 Sep 2021 00:40:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1631400015; bh=hYoXL4jKKf3b3cJknidUNZ4Ggc+olH9Q+s1ev+pnJtI=; h=From:To:Cc:Subject:Date:From; b=ngTkoVxMYz7QwE2ENftFJcdQbVsnhWX4HRWoYNmTGpYJXiSrteXFAHVu2xqMIHlU5 EqTFlhrtnsUlxVb1XOn04N0qv9Ycl5rU+x10qAvOdtT1zY6ee5m0cDfURJpsixDHyT WaYi/W6COIh9RuQK3NRoTKwNzcQHdE9etZQ7rIy0PSIlKRKo40NfcXNN8z0Y1e5Sz0 x49PKQRSUKkOOsjdmovzW8hfm3OxEUpr0RyOggX16USyGn15wbcrOlMnfrRaSorlLh sYl72HSTM5nHPsU/9e25gpEkHx9vRk/Lx1bDTYm8Idd6kxAiVwSHX8+MwpkMu/e+Ma ZY1TtfRTorFAw== From: Marek Vasut To: u-boot@lists.denx.de Cc: Marek Vasut , Stefano Babic Subject: [PATCH 1/3] ARM: imx: mx5: Enable BMODE command on MX53 Menlo board Date: Sun, 12 Sep 2021 00:39:58 +0200 Message-Id: <20210911224000.98908-1-marex@denx.de> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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 The board can do primary/secondary boot switching, enable the bmode command. Signed-off-by: Marek Vasut Cc: Stefano Babic --- board/menlo/m53menlo/m53menlo.c | 5 +++++ configs/m53menlo_defconfig | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/board/menlo/m53menlo/m53menlo.c b/board/menlo/m53menlo/m53menlo.c index 2b331b32df5..9545e633a3d 100644 --- a/board/menlo/m53menlo/m53menlo.c +++ b/board/menlo/m53menlo/m53menlo.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -334,6 +335,10 @@ int splash_screen_prepare(void) int board_late_init(void) { +#ifdef CONFIG_CMD_BMODE + add_board_boot_modes(NULL); +#endif + #if defined(CONFIG_VIDEO_IPUV3) struct udevice *dev; int xpos, ypos, ret; diff --git a/configs/m53menlo_defconfig b/configs/m53menlo_defconfig index 505dd078b0c..97605b2711b 100644 --- a/configs/m53menlo_defconfig +++ b/configs/m53menlo_defconfig @@ -18,7 +18,6 @@ CONFIG_SYS_BOOTCOUNT_ADDR=0x53FA401C CONFIG_SPL=y CONFIG_SYS_BOOTCOUNT_SINGLEWORD=y CONFIG_ENV_OFFSET_REDUND=0x180000 -# CONFIG_CMD_BMODE is not set CONFIG_FIT=y CONFIG_OF_BOARD_SETUP=y CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/menlo/m53menlo/imximage.cfg" -- 2.33.0