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

Commit 16be97cc authored by Umang Chheda's avatar Umang Chheda
Browse files

platform: qpnp-revid: Add REVID support for PM2250



Add PMIC subtype and revid details for PM2250.
Remove subtype of PMI8937 as it is same as subtype
of PM2250 and is not used in this kernel version.

Change-Id: I64ad30101ab0e957bab52ac4dc6a464c1ab59739
Signed-off-by: default avatarUmang Chheda <uchheda@codeaurora.org>
parent 73309377
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2013-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2013-2020, The Linux Foundation. All rights reserved.
 */

#include <linux/module.h>
@@ -53,7 +53,7 @@ static const char *const pmic_names[] = {
	[PM660L_SUBTYPE] = "PM660L",
	[PM660_SUBTYPE] = "PM660",
	[PMI632_SUBTYPE] = "PMI632",
	[PMI8937_SUBTYPE] = "PMI8937",
	[PM2250_SUBTYPE] = "PM2250",
	[PM8150_SUBTYPE] = "PM8150",
	[PM8150B_SUBTYPE] = "PM8150B",
	[PM8150L_SUBTYPE] = "PM8150L",
+9 −3
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (c) 2013-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2013-2020, The Linux Foundation. All rights reserved.
 */

#ifndef __QPNP_REVID
@@ -291,6 +291,12 @@
#define PM6125_V1P0_REV3	0x00
#define PM6125_V1P0_REV4	0x01

/* PM2250_REV_ID */
#define PM2250_V1P0_REV1	0x00
#define PM2250_V1P0_REV2	0x01
#define PM2250_V1P0_REV3	0x01
#define PM2250_V1P0_REV4	0x01

/* PMI8998 FAB_ID */
#define PMI8998_FAB_ID_SMIC	0x11
#define PMI8998_FAB_ID_GF	0x30
@@ -306,8 +312,8 @@
/* PM8937 */
#define PM8937_SUBTYPE		0x19

/* PMI8937 */
#define PMI8937_SUBTYPE		0x37
/* PM2250 */
#define PM2250_SUBTYPE		0x37

/* SMB1390 */
#define SMB1390_SUBTYPE		0x23