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 A0FC3C6FD18 for ; Tue, 18 Apr 2023 13:48:24 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 26CF08607F; Tue, 18 Apr 2023 15:48:06 +0200 (CEST) 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="kLHDeLhL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A1E0F8608C; Tue, 18 Apr 2023 15:48:00 +0200 (CEST) Received: from mail-oa1-x31.google.com (mail-oa1-x31.google.com [IPv6:2001:4860:4864:20::31]) (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 5EC2F86075 for ; Tue, 18 Apr 2023 15:47:57 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=festevam@gmail.com Received: by mail-oa1-x31.google.com with SMTP id 586e51a60fabf-187e0ec513eso117922fac.1 for ; Tue, 18 Apr 2023 06:47:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681825676; x=1684417676; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=5T91uuXiTXyq3ihmEI801ckFFQAyugx4GLBHIzTf+HA=; b=kLHDeLhLZiyXLAyyagHXqy38AVi8ri8zwcvAu1SMLBdtjD7aQLxMELxW4vbRPJlnRL suLEpiMU+1A0f+923T87qjlkOtylsrTDeQVBlrVduSE9WXUsYf7LjwE3SN8vg3f/6e36 qQtv18Rnh6nY0cvqZBX6jOC/yR9a+1INhLsaQ6AlXbi4Je6R7ZsPr7S57K9SfbRG8M2m eoSXKbCDIxkSCmxJPfqDvHrIKT3W3S7TiolHlL4LZXEtnzlVsk7WseahZvki8BofRUOy eTfE/meYVefiQhujp4M1g1B4U5gnuEoF75pn6O77+p57FbXz/Anpqo/OpaBakNmJI9eA fVOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681825676; x=1684417676; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5T91uuXiTXyq3ihmEI801ckFFQAyugx4GLBHIzTf+HA=; b=VeQ9TcWAHWC1OqIIHNhH7ZsVpEPwcHQaAyqIdSH+LXwIVnvBESIpK82KndLaRlGy7g 93tOWVV5bgudM3HcG7SDtLrnp6QOgDwA2VFzmxElrOLDoqamADyia31YvRuR3oiiEdoB oCJOshpDO01CmYf5+f3D5lgudy9vib9qeP/39eIlHc6q7HW3e40L+caxKgFqLb8Winm+ cpNfR2LC0uf08veWvkTbVUSWrXi50W6R32Vk4nl5iQRFgLJ1yuo8SInmxhjIASZ1REpj Avz8+l2nqCDVo2/9TSRxRUbpQyAknHBU+91f67sLhZVVZhlXsOL5IBwOSOwZ/7ZSSZYC G47g== X-Gm-Message-State: AAQBX9cI4sFh5govZNU7+A7FrtSegpFOZKN2IdL6pt4uxAUjjbnCV92O JZ5jNZkdMw5YXVX5RgD6ObE= X-Google-Smtp-Source: AKy350YBYj0TUQePEP338m5qPCXUPspOCuzjclI8KrMOWXRq7M6t0tM1E6JrOyuusPk33uLk891DHA== X-Received: by 2002:a05:6870:8a20:b0:184:1ae:7811 with SMTP id p32-20020a0568708a2000b0018401ae7811mr8760991oaq.1.1681825676061; Tue, 18 Apr 2023 06:47:56 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b69:df3a:5c40:f24a:e8cc]) by smtp.gmail.com with ESMTPSA id 1-20020a4a1a01000000b0054157801d51sm5823246oof.38.2023.04.18.06.47.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Apr 2023 06:47:55 -0700 (PDT) From: Fabio Estevam To: sbabic@denx.de Cc: u-boot@lists.denx.de, eduard@lionizers.com, Fabio Estevam Subject: [PATCH 03/13] smegw01: Select bootcount support Date: Tue, 18 Apr 2023 10:47:34 -0300 Message-Id: <20230418134744.343023-3-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230418134744.343023-1-festevam@gmail.com> References: <20230418134744.343023-1-festevam@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.8 at phobos.denx.de X-Virus-Status: Clean From: Eduard Strehlau Add automatic boot counter that increases after every reset. After a power-on reset, it will be initialized with 1, and each reboot will increment the value by 1. By default it is disabled if bootlimit isn't set. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam --- configs/smegw01_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/smegw01_defconfig b/configs/smegw01_defconfig index f15291f1dd..5d9d419463 100644 --- a/configs/smegw01_defconfig +++ b/configs/smegw01_defconfig @@ -46,6 +46,8 @@ CONFIG_SYS_REDUNDAND_ENVIRONMENT=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y CONFIG_NET_RANDOM_ETHADDR=y CONFIG_BOUNCE_BUFFER=y +CONFIG_BOOTCOUNT_LIMIT=y +CONFIG_BOOTCOUNT_ENV=y CONFIG_DFU_MMC=y CONFIG_DM_I2C=y CONFIG_SUPPORT_EMMC_BOOT=y -- 2.38.1