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 BCEDAC7618E for ; Wed, 26 Apr 2023 16:05:47 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0462A86343; Wed, 26 Apr 2023 18:05:22 +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="AIgmqklj"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5963186333; Wed, 26 Apr 2023 18:05:18 +0200 (CEST) Received: from mail-oa1-x34.google.com (mail-oa1-x34.google.com [IPv6:2001:4860:4864:20::34]) (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 E2C928636A for ; Wed, 26 Apr 2023 18:05:15 +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-x34.google.com with SMTP id 586e51a60fabf-18f0e1cbb95so14042fac.0 for ; Wed, 26 Apr 2023 09:05:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682525115; x=1685117115; 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=3EKi9Xd6nJYSndzHH/vzIIyZYl0FLKFDD+nx/eis34U=; b=AIgmqklj3YUvab9ooN5WCn67SsIRYx86HcOs/TV28ubzfvN5WNCvqCTo88jTMG1vaP OewjWe21WbyTLrOWPO6ted27mEgl/ImiE1skMsPV5hU691p3pScYINb5lfLLOnDP8h7n t9QYasMeWxCb4i68Y5OYneIa5CAM5+Lh3pBib9Qhc82o7B/B6yokzbqfttJtiIDVdENu +JFevYZr7gxNCiaWJCo7msm2gt145lML6oS+cjQ+pntLw6j7mmCLBVOG11tKPBHIguO4 Qvpokm/eSfncSAfal/r6dsvBZOOtVM7I8R2xX9MMC/+QjLNyfV0XpQJJZwF1VCOJ70QD xBoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682525115; x=1685117115; 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=3EKi9Xd6nJYSndzHH/vzIIyZYl0FLKFDD+nx/eis34U=; b=JRkfyrqhvJTkvV1WIcsWr7U/5prLP5YCwm/4+BX9J0Plpv/rbTe1Vvr9GfR7CdfpJj x0a0AiChPzsr/0olaFjZ/8ybbLAbAOBqEmyrs5VW1YCOutJ14Q/6X6aFVbht7cStg2lW Y30ufU0uknK8+QVLBImqDaCcviHgcB4uXBrhjpZHU65FctFnu3bTIfdzxHfHUz6X1ja6 0NeZiB8TMdCIkpB/ikOrw3hBzSTQG/Fp7i7Gyk2ssr8mupaH4mcuqHZP+4uGINv3EdpV 6Z0EWtITtsLYB5N8T3Ku6kUi1G1V3lEnjyunSejxBgp2axMZbjIEr0dOnTP9A/qetrwj Kc5w== X-Gm-Message-State: AAQBX9dGjDYBaTH84wmxUtdppaMyQR/1yKqLVNDvVKiX3GAs+5xuyklY +Dm/OuEKriMW5BcEPrUg9y0dlMwUD6Km6w== X-Google-Smtp-Source: AKy350aVpc/Iza0ifX4eLm4qaulv1L5D59TBMqcdYD29zrSyu7BFoPw2gyxytlr24XdQ6VGqjFrdow== X-Received: by 2002:a05:6870:589c:b0:184:8047:5594 with SMTP id be28-20020a056870589c00b0018480475594mr12759708oab.5.1682525115466; Wed, 26 Apr 2023 09:05:15 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b69:f6e1:8741:de7a:38fc]) by smtp.gmail.com with ESMTPSA id u2-20020a05687036c200b00177c314a358sm6755325oak.22.2023.04.26.09.05.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Apr 2023 09:05:15 -0700 (PDT) From: Fabio Estevam To: sbabic@denx.de Cc: eduard@lionizers.com, u-boot@lists.denx.de, Fabio Estevam Subject: [PATCH v5 03/14] smegw01: Select bootcount support Date: Wed, 26 Apr 2023 13:04:50 -0300 Message-Id: <20230426160501.1199085-3-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230426160501.1199085-1-festevam@gmail.com> References: <20230426160501.1199085-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 --- Changes since v4: - None configs/smegw01_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/smegw01_defconfig b/configs/smegw01_defconfig index f15291f1dd04..5d9d4194639d 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.34.1