summaryrefslogtreecommitdiff
path: root/include/power
diff options
context:
space:
mode:
authorJohn Keeping <john@metanate.com>2023-01-19 15:56:12 +0300
committerJaehoon Chung <jh80.chung@samsung.com>2023-01-31 16:05:03 +0300
commit519fa7aa252789677939f0bd991bf26a4fe469ec (patch)
treea5d7e9230694c19af37cc19699eceaa5b638e7bc /include/power
parent30db474704405be823259851cbb76fa05366c8af (diff)
downloadu-boot-519fa7aa252789677939f0bd991bf26a4fe469ec.tar.xz
power: act8846_pmic: fix number of registers
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>
Diffstat (limited to 'include/power')
-rw-r--r--include/power/act8846_pmic.h2
1 files changed, 1 insertions, 1 deletions
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 <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