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

Commit fb1380dd authored by Rama Krishna Phani A's avatar Rama Krishna Phani A
Browse files

platform: qpnp-revid: Add REVID details for PM8998 and PM660



Add PMIC subtype details for PM8998, PMI8998, PM660 and PM660L.

Change-Id: I563751660c88a3352bb9b7c0a7ff770cc80f7976
Signed-off-by: default avatarRama Krishna Phani A <rphani@codeaurora.org>
parent bc387ed2
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
/* Copyright (c) 2013-2016, The Linux Foundation. All rights reserved.
/* Copyright (c) 2013-2017, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -48,8 +48,8 @@ static const char *const pmic_names[] = {
	[PMI8950_SUBTYPE] = "PMI8950",
	[PMK8001_SUBTYPE] = "PMK8001",
	[PMI8996_SUBTYPE] = "PMI8996",
	[PMCOBALT_SUBTYPE] = "PMCOBALT",
	[PMICOBALT_SUBTYPE] = "PMICOBALT",
	[PM8998_SUBTYPE] = "PM8998",
	[PMI8998_SUBTYPE] = "PMI8998",
	[PM8005_SUBTYPE] = "PM8005",
	[PM8937_SUBTYPE] = "PM8937",
	[PM660L_SUBTYPE] = "PM660L",
+48 −5
Original line number Diff line number Diff line
/* Copyright (c) 2013-2016, The Linux Foundation. All rights reserved.
/* Copyright (c) 2013-2017, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -171,16 +171,58 @@
/* PMI8996 */
#define PMI8996_SUBTYPE		0x13

/* PMCOBALT */
#define PMCOBALT_SUBTYPE	0x14
/* PM8998 */
#define PM8998_SUBTYPE	0x14

/* PMICOBALT */
#define PMICOBALT_SUBTYPE	0x15
/* PMI8998 */
#define PMI8998_SUBTYPE	0x15

/* PM660 */
#define PM660L_SUBTYPE		0x1A
#define PM660_SUBTYPE		0x1B

/* PMI8998 REV_ID */
#define PMI8998_V1P0_REV1	0x00
#define PMI8998_V1P0_REV2	0x00
#define PMI8998_V1P0_REV3	0x00
#define PMI8998_V1P0_REV4	0x01

#define PMI8998_V1P1_REV1	0x00
#define PMI8998_V1P1_REV2	0x00
#define PMI8998_V1P1_REV3	0x01
#define PMI8998_V1P1_REV4	0x01

#define PMI8998_V2P0_REV1	0x00
#define PMI8998_V2P0_REV2	0x00
#define PMI8998_V2P0_REV3	0x00
#define PMI8998_V2P0_REV4	0x02

/* PM660 REV_ID */
#define PM660_V1P0_REV1		0x00
#define PM660_V1P0_REV2		0x00
#define PM660_V1P0_REV3		0x00
#define PM660_V1P0_REV4		0x01

#define PM660_V1P1_REV1		0x00
#define PM660_V1P1_REV2		0x00
#define PM660_V1P1_REV3		0x01
#define PM660_V1P1_REV4		0x01

/* PM660L REV_ID */
#define PM660L_V1P1_REV1	0x00
#define PM660L_V1P1_REV2	0x00
#define PM660L_V1P1_REV3	0x01
#define PM660L_V1P1_REV4	0x01

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

/* PM660 FAB_ID */
#define PM660_FAB_ID_GF		0x0
#define PM660_FAB_ID_TSMC	0x2
#define PM660_FAB_ID_MX		0x3

/* PM8005 */
#define PM8005_SUBTYPE		0x18

@@ -201,6 +243,7 @@ struct pmic_revid_data {
	u8		pmic_type;
	u8		pmic_subtype;
	const char	*pmic_name;
	int		fab_id;
};

#ifdef CONFIG_QPNP_REVID