dev: pmic: add support for pm8x41 lpg channel configuration
Add support for pm8x41 lpg channel configuration so that back light
can be controlled through lpg channel
Change-Id: If9a2d174afb76bd97525516326e34231b1403c5e
diff --git a/dev/pmic/pm8x41/include/pm8x41_hw.h b/dev/pmic/pm8x41/include/pm8x41_hw.h
index 9239ce7..6cedb90 100644
--- a/dev/pmic/pm8x41/include/pm8x41_hw.h
+++ b/dev/pmic/pm8x41/include/pm8x41_hw.h
@@ -37,6 +37,12 @@
#define REVID_REVISION4 0x103
+/* LPG Registers */
+#define LPG_SLAVE_ID 0x10000 /* slave_id == 1 */
+#define LPG_PERIPHERAL_BASE (0x0B100 | LPG_SLAVE_ID)
+/* Peripheral base address for LPG channel */
+#define LPG_N_PERIPHERAL_BASE(x) (LPG_PERIPHERAL_BASE + ((x) - 1) * 0x100)
+
/* GPIO Registers */
#define GPIO_PERIPHERAL_BASE 0xC000
/* Peripheral base address for GPIO_X */