From patchwork Fri Mar 18 11:04:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip Oberfichtner X-Patchwork-Id: 1606960 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=bqCojJHA; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KKhGm4Wdrz9s3q for ; Fri, 18 Mar 2022 22:14:08 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8351183055; Fri, 18 Mar 2022 12:13:51 +0100 (CET) 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=1647602032; bh=edgBskRkWjJMKr4T1WGrTXuXuEoGbrCJYtmoi1Aen/k=; h=From:To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=bqCojJHAMVPMMvCgh/4s2/Jug+S5sKwrDaDdA+x7Ie4JH8xgFCq50r45q5Ehr9lVr uAGGplzVWAqNc3/LdPOYDV7ASCRO6Lhbz8gy+TXH5yj9Shs1A4cZbZkwdCO4P4LHUM mMB2NSaQ+aRdGLVeYOzwzk7KckGXVfeERR0+kqjxytphK0FUKnCLjbtoKbVxfLOikO NujOQZx+kN6SHzNGapz3Ey9tWsRKHhRfBA8pOsMI0LtE3CzEFq+kB6GyZI4fli7vnw U3kcqC0T1Qwgvy6l4BGDNisdMbJ5E2dh59Se9vohT1UtHDLGGJaQwHk1Svrp6LcEt8 pj+tcx6qqvFhg== Received: by phobos.denx.de (Postfix, from userid 109) id A2DC582A53; Fri, 18 Mar 2022 12:05:37 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_NEUTRAL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from xpert.denx.de (unknown [62.91.23.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4692882A53 for ; Fri, 18 Mar 2022 12:05:33 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=pro@denx.de Received: by xpert.denx.de (Postfix, from userid 535) id D49943E0659; Fri, 18 Mar 2022 12:05:32 +0100 (CET) From: Philip Oberfichtner To: u-boot@lists.denx.de Cc: Heiko Schocher , matthias.winker@de.bosch.com, Philip Oberfichtner , Gireesh Hiremath , Jaehoon Chung , Lokesh Vutla , Nandor Han , Simon Glass Subject: [PATCH v2 0/2] Add pmic bootcount driver Date: Fri, 18 Mar 2022 12:04:36 +0100 Message-Id: <20220318110438.2863532-1-pro@denx.de> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 18 Mar 2022 12:13:46 +0100 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.5 at phobos.denx.de X-Virus-Status: Clean This series adds a new bootcount driver. The required register definitions and the actual driver are separated in two patches. Changes in v2: - Migrated bootcount driver to driver model - Introduced error handling. Previously errors were ignored. Philip Oberfichtner (2): power: pfuze100: Add MEMx register definitions bootcount: Add pmic pfuze100 bootcount driver drivers/bootcount/Kconfig | 7 ++ drivers/bootcount/Makefile | 1 + drivers/bootcount/pmic_pfuze100.c | 161 ++++++++++++++++++++++++++++++ include/power/pfuze100_pmic.h | 5 + 4 files changed, 174 insertions(+) create mode 100644 drivers/bootcount/pmic_pfuze100.c