mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
platform: qpnp-revid: Add REVID support for PM7250B
Add PMIC subtype and revid details for PM7250B. Change-Id: I1d5f28b9130f00ec30ee9935914d847652cc7435 Signed-off-by: Umang Agrawal <uagrawal@codeaurora.org>
This commit is contained in:
parent
f2fd74c45c
commit
644e9e5a3c
2 changed files with 11 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// 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>
|
||||
|
|
@ -58,6 +58,7 @@ static const char *const pmic_names[] = {
|
|||
[PM8150B_SUBTYPE] = "PM8150B",
|
||||
[PM8150L_SUBTYPE] = "PM8150L",
|
||||
[PM6150_SUBTYPE] = "PM6150",
|
||||
[PM7250B_SUBTYPE] = "PM7250B",
|
||||
};
|
||||
|
||||
struct revid_chip {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/* 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.
|
||||
*/
|
||||
|
||||
#ifndef __QPNP_REVID
|
||||
|
|
@ -182,6 +182,8 @@
|
|||
#define PM6150_SUBTYPE 0x28
|
||||
#define PM6150L_SUBTYPE 0x1F
|
||||
|
||||
#define PM7250B_SUBTYPE 0x2E
|
||||
|
||||
/* PMI632 */
|
||||
#define PMI632_SUBTYPE 0x25
|
||||
|
||||
|
|
@ -271,6 +273,12 @@
|
|||
#define PM6150_V2P0_REV3 0x00
|
||||
#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 */
|
||||
#define PMI8998_FAB_ID_SMIC 0x11
|
||||
#define PMI8998_FAB_ID_GF 0x30
|
||||
|
|
|
|||
Loading…
Reference in a new issue