From patchwork Sat Feb 10 10:20:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 871655 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=) Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zdnzM6PKGz9s7v for ; Sat, 10 Feb 2018 21:21:51 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 8838FC21E3A; Sat, 10 Feb 2018 10:21:34 +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=none 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 0B42AC21E57; Sat, 10 Feb 2018 10:21:06 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id BCF31C21E1D; Sat, 10 Feb 2018 10:21:01 +0000 (UTC) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by lists.denx.de (Postfix) with ESMTPS id 4BA76C21E4B for ; Sat, 10 Feb 2018 10:20:56 +0000 (UTC) Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3zdnyB5xwSz1qshG; Sat, 10 Feb 2018 11:20:50 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3zdnyB41DCz1qqkQ; Sat, 10 Feb 2018 11:20:50 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id bUlmo1C12yy9; Sat, 10 Feb 2018 11:20:48 +0100 (CET) X-Auth-Info: TI/bsrejQUisKLKk2BLrZnyqwBy2LZiHpKHuXJ7wwl4= Received: from localhost.localdomain (89-64-1-240.dynamic.chello.pl [89.64.1.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sat, 10 Feb 2018 11:20:47 +0100 (CET) From: Lukasz Majewski To: u-boot@lists.denx.de Date: Sat, 10 Feb 2018 11:20:27 +0100 Message-Id: <20180210102032.315-1-lukma@denx.de> X-Mailer: git-send-email 2.11.0 Cc: Marek Vasut , Tom Rini , Tien Fong Chee , Martyn Welch , Ian Ray , Stefan Roese Subject: [U-Boot] [PATCH v1 0/5] Provide SPL support for bootcount (in the case of using falcon boot mode) 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" This patch series provides support for controlling bootcount limits in SPL. It also enables this feature on display5 board to present usage patterns. "Green" travis CI build: https://travis-ci.org/lmajewski/u-boot-dfu This patch has been applied on top of u-boot/master: SHA1: 1811a928c6c7604d6d05a84b4d552a7c31b4994e This patch series shall be applied on top of: [U-Boot,1/2] Convert CONFIG_BOOTCOUNT_LIMIT to Kconfig http://patchwork.ozlabs.org/patch/871585/ [U-Boot,2/2] Convert CONFIG_SYS_BOOTCOUNT_SINGLEWORD to Kconfig http://patchwork.ozlabs.org/patch/871586/ Lukasz Majewski (5): bootcount: config: Make the SYS_BOOTCOUNT_ADDR available also for non EXT setups bootcount: Add function wrappers to handle bootcount increment and error checking spl: bootcount: Enable bootcount support in SPL config: display5: Enable boot count feature in the display5 board arm: display5: Extend SPL to support bootcount checking board/liebherr/display5/spl.c | 4 +++- common/spl/Kconfig | 9 +++++++++ configs/display5_defconfig | 5 +++++ drivers/Makefile | 1 + drivers/bootcount/Kconfig | 13 ++++++------- include/bootcount.h | 25 +++++++++++++++++++++++++ 6 files changed, 49 insertions(+), 8 deletions(-)