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

Commit 26cc77df authored by Umang Agrawal's avatar Umang Agrawal
Browse files

platform: qpnp-revid: Add REVID support for PM7250B



Add PMIC subtype and revid details for PM7250B.

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


#include <linux/module.h>
#include <linux/module.h>
@@ -58,6 +58,7 @@ static const char *const pmic_names[] = {
	[PM8150B_SUBTYPE] = "PM8150B",
	[PM8150B_SUBTYPE] = "PM8150B",
	[PM8150L_SUBTYPE] = "PM8150L",
	[PM8150L_SUBTYPE] = "PM8150L",
	[PM6150_SUBTYPE] = "PM6150",
	[PM6150_SUBTYPE] = "PM6150",
	[PM7250B_SUBTYPE] = "PM7250B",
};
};


struct revid_chip {
struct revid_chip {
+9 −1
Original line number Original line Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0 */
/* SPDX-License-Identifier: GPL-2.0 */
/*
/*
 * Copyright (c) 2013-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2013-2019, The Linux Foundation. All rights reserved.
 */
 */


#ifndef __QPNP_REVID
#ifndef __QPNP_REVID
@@ -182,6 +182,8 @@
#define PM6150_SUBTYPE		0x28
#define PM6150_SUBTYPE		0x28
#define PM6150L_SUBTYPE		0x1F
#define PM6150L_SUBTYPE		0x1F


#define PM7250B_SUBTYPE		0x2E

/* PMI632 */
/* PMI632 */
#define PMI632_SUBTYPE	0x25
#define PMI632_SUBTYPE	0x25


@@ -271,6 +273,12 @@
#define PM6150_V2P0_REV3	0x00
#define PM6150_V2P0_REV3	0x00
#define PM6150_V2P0_REV4	0x02
#define PM6150_V2P0_REV4	0x02


/* PM7250B_REV_ID */
#define PM7250B_V1P0_REV1	0x00
#define PM7250B_V1P0_REV2	0x00
#define PM7250B_V1P0_REV3	0x00
#define PM7250B_V1P0_REV4	0x01

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