From 076ec489b9c623a4e0126e625c857abf32051f3d Mon Sep 17 00:00:00 2001 From: David Collins Date: Tue, 29 Mar 2016 18:15:53 -0700 Subject: [PATCH] platform: qpnp-revid: add support for PM8005 The subtype register value for PM8005 is 0x18. Add this to the list of known PMICs. Change-Id: I5cd316784f1339975a973e63c962fae6cb9db852 CRs-Fixed: 986619 Signed-off-by: David Collins --- drivers/platform/msm/qpnp-revid.c | 3 ++- include/linux/qpnp/qpnp-revid.h | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/platform/msm/qpnp-revid.c b/drivers/platform/msm/qpnp-revid.c index 4333df7a0d77..8c060974436f 100644 --- a/drivers/platform/msm/qpnp-revid.c +++ b/drivers/platform/msm/qpnp-revid.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved. +/* Copyright (c) 2013-2016, 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 @@ -53,6 +53,7 @@ static const char *const pmic_names[] = { [PMI8996_SUBTYPE] = "PMI8996", [PM8998_SUBTYPE] = "PM8998", [PMI8998_SUBTYPE] = "PMI8998", + [PM8005_SUBTYPE] = "PM8005", [PM8937_SUBTYPE] = "PM8937", [PMI8937_SUBTYPE] = "PMI8937", }; diff --git a/include/linux/qpnp/qpnp-revid.h b/include/linux/qpnp/qpnp-revid.h index 4998d93eb094..9e50fe48612f 100644 --- a/include/linux/qpnp/qpnp-revid.h +++ b/include/linux/qpnp/qpnp-revid.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved. +/* Copyright (c) 2013-2016, 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 @@ -177,6 +177,9 @@ /* PMI8998 */ #define PMI8998_SUBTYPE 0x15 +/* PM8005 */ +#define PM8005_SUBTYPE 0x18 + /* PM8937 */ #define PM8937_SUBTYPE 0x19