From f3c79d769bea8aa3bb1d2cb4f7cfe13481d40995 Mon Sep 17 00:00:00 2001 From: Rene Straub Date: Sat, 7 Sep 2019 12:22:23 +0200 Subject: [PATCH] nmhw24 - update pmic registers --- board/nm/nmhw24/da9063.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/board/nm/nmhw24/da9063.h b/board/nm/nmhw24/da9063.h index 76ac9bbb99..d0bde44d07 100644 --- a/board/nm/nmhw24/da9063.h +++ b/board/nm/nmhw24/da9063.h @@ -45,6 +45,18 @@ TODO: Add include for uint32_t (stdtypes.h) #define PMIC_REG_BUCK_ILIM_B 0x9B #define PMIC_REG_BUCK_ILIM_C 0x9C +#define PMIC_REG_BCORE1_CONF 0x9E /* Configuration register of BCORE1 */ +#define PMIC_REG_BCORE2_CONF 0x9D /* Configuration register of BCORE2 */ +#define PMIC_REG_BPERI_CONF 0xA2 /* Configuration register of BPERI */ +#define PMIC_REG_BIO_CONF 0xA0 /* Configuration register of BIO */ +#define PMIC_REG_BMEM_CONF 0xA1 /* Configuration register of BMEM */ + +#define PMIC_CONF_MODE_MASK 0xC0 +#define PMIC_CONF_MODE_SLEEP 0x40 +#define PMIC_CONF_MODE_SYNC 0x80 +#define PMIC_CONF_MODE_AUTO 0xC0 + + #define PMIC_REG_BBAT_CONT 0xC5 /* Control register for backup battery */ #define PMIC_REG_CONFIG_E 0x10A