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 30CC9C00A5A for ; Thu, 19 Jan 2023 12:56:39 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 098FE83623; Thu, 19 Jan 2023 13:56:37 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=metanate.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=metanate.com header.i=@metanate.com header.b="JR7D2i2n"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A4CF98091A; Thu, 19 Jan 2023 13:56:35 +0100 (CET) Received: from metanate.com (unknown [IPv6:2001:8b0:1628:5005::111]) (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 7C0DF8091A for ; Thu, 19 Jan 2023 13:56:33 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=metanate.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=john@metanate.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=metanate.com; s=stronger; h=Content-Transfer-Encoding:Message-Id:Date: Subject:Cc:To:From:Content-Type:Reply-To:Content-ID:Content-Description: In-Reply-To:References; bh=sxN8tJfy+lGaoPedHOyN34pr+t6CRY7bmXVgg/t7G3g=; b=JR 7D2i2nIijxMY3lX/NgoRC5y+F0yAc39/QJIU8PB/Vm3I79QWWJqTxgdqADD//EPDtcHFSfrlZHCsM +Rc3NK94klPCdKNhOqqfDA8TVSJVGgO+B7wIh/FfAh67yLdSGFU77iCtery8P1Jyq3AHi7rno/tCY DekU0DK/3vONvjmbpGLWB8Gq+j6y+DuJu3kJGY/WNdwV4aQBJpT64/X2mZUh6speObeWqECn5rxGD KjhlBQPi+frQ4YhNOFdyMKkRSun/VDVXi0uIGeJ4Q0u4DDW0qJACCq5QqhQChWnLny+clVUQP1643 /uquC331RA44S6Fro9f6HxhTaWZGzzkg==; Received: from [81.174.171.191] (helo=donbot.metanate.com) by email.metanate.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1pIUT2-0004GQ-UR; Thu, 19 Jan 2023 12:56:33 +0000 From: John Keeping To: Jaehoon Chung Cc: u-boot@lists.denx.de, John Keeping Subject: [PATCH] power: act8846_pmic: fix number of registers Date: Thu, 19 Jan 2023 12:56:12 +0000 Message-Id: <20230119125612.1968983-1-john@metanate.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Authenticated: YES 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.6 at phobos.denx.de X-Virus-Status: Clean The highest register on ACT8846 is 0xf5, so set the number of registers to 0xf6, ensuring that the pmic read/write commands are able to access all of the supported registers (and many that are not valid, since the register space is quite sparse). Signed-off-by: John Keeping --- include/power/act8846_pmic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/power/act8846_pmic.h b/include/power/act8846_pmic.h index acd0fd671e..84845c70f9 100644 --- a/include/power/act8846_pmic.h +++ b/include/power/act8846_pmic.h @@ -9,7 +9,7 @@ #include -#define ACT8846_NUM_OF_REGS 12 +#define ACT8846_NUM_OF_REGS 0xf6 #define BUCK_VOL_MASK 0x3f #define LDO_VOL_MASK 0x3f -- 2.39.1