Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 482bb1b8 authored by Kiran Gunda's avatar Kiran Gunda
Browse files

platform: qpnp-revid: Add REVID support for SM6150



Add PMIC subtype and revid details for SM6150 and PM6150L.

Change-Id: Ic8f6e2fffa84a8be36e4553fbf103675d81cbbec
Signed-off-by: default avatarKiran Gunda <kgunda@codeaurora.org>
parent e7cc30f3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -64,6 +64,7 @@ static const char *const pmic_names[] = {
	[PM8150_SUBTYPE] = "PM8150",
	[PM8150B_SUBTYPE] = "PM8150B",
	[PM8150L_SUBTYPE] = "PM8150L",
	[PM6150_SUBTYPE] = "PM6150",
};

struct revid_chip {
+18 −0
Original line number Diff line number Diff line
@@ -186,6 +186,9 @@
#define PM8150L_SUBTYPE		0x1F
#define PM8150B_SUBTYPE		0x20

#define PM6150_SUBTYPE		0x28
#define PM6150L_SUBTYPE		0x1F

/* PMI632 */
#define PMI632_SUBTYPE	0x25

@@ -255,6 +258,21 @@
#define PM8150L_V3P0_REV3	0x00
#define PM8150L_V3P0_REV4	0x03

#define PM6150_V1P0_REV1	0x00
#define PM6150_V1P0_REV2	0x00
#define PM6150_V1P0_REV3	0x00
#define PM6150_V1P0_REV4	0x01

#define PM6150_V1P1_REV1	0x00
#define PM6150_V1P1_REV2	0x00
#define PM6150_V1P1_REV3	0x01
#define PM6150_V1P1_REV4	0x01

#define PM6150_V2P0_REV1	0x00
#define PM6150_V2P0_REV2	0x00
#define PM6150_V2P0_REV3	0x00
#define PM6150_V2P0_REV4	0x02

/* PMI8998 FAB_ID */
#define PMI8998_FAB_ID_SMIC	0x11
#define PMI8998_FAB_ID_GF	0x30