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 6EA5EC433EF for ; Wed, 23 Feb 2022 13:17:45 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 93D3883CAD; Wed, 23 Feb 2022 14:17:42 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org 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=kernel.org header.i=@kernel.org header.b="DxmnTw5g"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E3A4383B58; Wed, 23 Feb 2022 14:17:39 +0100 (CET) Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7EE1D83A86 for ; Wed, 23 Feb 2022 14:17:36 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 2234BB81E01; Wed, 23 Feb 2022 13:17:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ADD2DC340E7; Wed, 23 Feb 2022 13:17:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645622254; bh=uxf36Sg9cih02v+Ax4sKRhKHxmQXB4Q0j0XFCVGXqlw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DxmnTw5gmvq5SmWyNvetDK464scPfxf7eDElV9+nhG+eDblrmxt2tpJhaTlZ14vQH MgZz+ExOJTHEB85AhTEmwYAVpo2JXlexp3DfZoLGke/3S0nbyahfrb4evlVzlmWInU cioIdgVWApwyNuZFE4I1cZyuMqHmFQNhfzZGQT67ZW4J5kkKUFvD8ue1BtXOaQ+zzW KBgmRaKe8oB6tIxFmkWNFna4N9i7EzRU0vhVqulpZIdgPmqOZnTjpwkr+QGqFI+2/L 0OKYkUopX9iaIVQkyV5vOG0KC8UW+7Gdu+Ir+iwWlcqZcI+soeKBXv4RO+HAu+E+3e RPDYlB61aEvsA== Received: by pali.im (Postfix) id A8AD489B; Wed, 23 Feb 2022 14:17:31 +0100 (CET) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Stefan Roese , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Konstantin Porotchkin , Vladimir Vid Cc: u-boot@lists.denx.de Subject: [PATCH u-boot-mvebu v3 0/5] arm: mvebu: a37xx: Add support for reading OTP Date: Wed, 23 Feb 2022 14:15:44 +0100 Message-Id: <20220223131549.11991-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220217092619.1445-1-pali@kernel.org> References: <20220217092619.1445-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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.5 at phobos.denx.de X-Virus-Status: Clean Add support for reading NB fuse OTP, SB fuse OTP and Security OTP values via U-Boot fuse API on Armada 37xx boards. Changes in v3: * Updated comment in patch 5/5 about MBOX_CMD_OTP_READ command * In patch 5/5 fixed number of output arguments for MBOX_CMD_OTP_READ_32B command Pali Rohár (5): arm: mvebu: a37xx: Add support for reading NB and SB fuse OTP value arm: mvebu: a37xx: Enable fuse command on all Armada 3720 boards arm: mvebu: a37xx: Move generic mbox code to arch/arm/mach-mvebu arm: mvebu: a37xx: Extend mbox_do_cmd() code arm: mvebu: a37xx: Add support for reading Security OTP values arch/arm/mach-mvebu/Kconfig | 1 + arch/arm/mach-mvebu/Makefile | 3 + arch/arm/mach-mvebu/armada3700/Makefile | 3 +- arch/arm/mach-mvebu/armada3700/efuse.c | 171 ++++++++++++++++++++ arch/arm/mach-mvebu/armada3700/mbox.c | 83 ++++++++++ arch/arm/mach-mvebu/include/mach/mbox.h | 40 +++++ board/CZ.NIC/turris_mox/mox_sp.c | 73 +-------- configs/mvebu_db-88f3720_defconfig | 2 + configs/mvebu_espressobin-88f3720_defconfig | 2 + configs/turris_mox_defconfig | 2 + configs/uDPU_defconfig | 2 + 11 files changed, 311 insertions(+), 71 deletions(-) create mode 100644 arch/arm/mach-mvebu/armada3700/efuse.c create mode 100644 arch/arm/mach-mvebu/armada3700/mbox.c create mode 100644 arch/arm/mach-mvebu/include/mach/mbox.h -- 2.20.1