pm8x41: Choose the right SPMI register offsets for the target
Choose the SPMI header file based on the spmi version supported.
Change-Id: Ib4aa41f8993578c2630e5cb37c3bc50b40b71eb4
diff --git a/dev/pmic/pm8x41/pm8x41.c b/dev/pmic/pm8x41/pm8x41.c
index 1e9f16c..8268ed2 100644
--- a/dev/pmic/pm8x41/pm8x41.c
+++ b/dev/pmic/pm8x41/pm8x41.c
@@ -29,7 +29,11 @@
#include <bits.h>
#include <debug.h>
#include <reg.h>
+#if SPMI_CORE_V2
+#include <spmi_v2.h>
+#else
#include <spmi.h>
+#endif
#include <string.h>
#include <pm8x41_hw.h>
#include <pm8x41.h>