]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
power: act8846_pmic: fix number of registers
authorJohn Keeping <john@metanate.com>
Thu, 19 Jan 2023 12:56:12 +0000 (12:56 +0000)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 31 Jan 2023 13:05:03 +0000 (22:05 +0900)
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 <john@metanate.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
include/power/act8846_pmic.h

index acd0fd671e7209ef11efe90224baabd69ad70aad..84845c70f91d5a13d27271f4b008e3095dbdbc64 100644 (file)
@@ -9,7 +9,7 @@
 
 #include <asm/gpio.h>
 
-#define ACT8846_NUM_OF_REGS    12
+#define ACT8846_NUM_OF_REGS    0xf6
 
 #define BUCK_VOL_MASK 0x3f
 #define LDO_VOL_MASK 0x3f