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 33F1AC433EF for ; Thu, 17 Feb 2022 18:52:46 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3F21283BD3; Thu, 17 Feb 2022 19:52:34 +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="oQelXc/d"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1AA1B83BF9; Thu, 17 Feb 2022 19:52:30 +0100 (CET) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (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 37FDB83B73 for ; Thu, 17 Feb 2022 19:52:23 +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 dfw.source.kernel.org (Postfix) with ESMTPS id D07F761BEC; Thu, 17 Feb 2022 18:52:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 226ABC340E8; Thu, 17 Feb 2022 18:52:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645123940; bh=z4VYBcj1ENG1aC9JKXkUrc+d6oAj6yjOj/bqtF3JnRA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oQelXc/dCJuQsodRFrtIJPnxLJ9UdjbyXPA0xlPGo2bI9YAI14ksuvlDkde4nJ4IU Rf8XJRUh5HdCFvM2Ylx3pmKLUknyhK2cbyQFrm76a8x0S/V6x66DOUZ9f6u3vrGT8V Mu0IlqqS8y1pKJB4wXApFunRS2ToosC4uIPq5exy1fZufJrtrXa7zDu3HLuR7bKDH5 6p79020GEhd18Z9kcGHMiSyRdhvnT4+ojvvV4Lci+3YUgL10VZqn/ltKbb16e0FZle hSfBsnRjq+iVB89E1PjDVYKOE76n94C2B1mckFosGE585OcyGhzEqFNjcoWbbmN+8I qYeHWObRx+apg== Received: by pali.im (Postfix) id 4EC401187; Thu, 17 Feb 2022 19:52:17 +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 v2 0/5] arm: mvebu: a37xx: Add support for reading OTP Date: Thu, 17 Feb 2022 19:50:41 +0100 Message-Id: <20220217185046.2349-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. 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 | 170 ++++++++++++++++++++ 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, 310 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