mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
drivers: aw8695: add chip id 0x97
Add an additional chip id 0x97 to match evt part change. Change-Id: I2660c0f2694a8f4d5c1e3933ba44e02fe9542d86 Signed-off-by: Ryan Lattrel <ryanl@motorola.com> Reviewed-on: https://gerrit.mot.com/1432851 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Ling Jin <lingjin@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
2d9a9207f6
commit
9800f5c561
2 changed files with 9 additions and 3 deletions
|
|
@ -3485,14 +3485,19 @@ static int aw8695_read_chipid(struct aw8695 *aw8695)
|
|||
dev_err(aw8695->dev, "%s: failed to read register AW8695_REG_ID: %d\n", __func__, ret);
|
||||
}
|
||||
switch (reg) {
|
||||
case AW8695_CHIPID:
|
||||
case AW8695_CHIPID1:
|
||||
pr_info("%s aw8695 detected\n", __func__);
|
||||
aw8695->chipid = AW8695_CHIPID;
|
||||
aw8695->chipid = AW8695_CHIPID1;
|
||||
/*
|
||||
*aw8695->flags |= AW8695_FLAG_SKIP_INTERRUPTS;
|
||||
*/
|
||||
aw8695_haptic_softreset(aw8695);
|
||||
return 0;
|
||||
case AW8695_CHIPID2:
|
||||
pr_info("%s aw8697 detected\n", __func__);
|
||||
aw8695->chipid = AW8695_CHIPID2;
|
||||
aw8695_haptic_softreset(aw8695);
|
||||
return 0;
|
||||
default:
|
||||
pr_info("%s unsupported device revision (0x%x)\n", __func__, reg);
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
#ifndef __AW8695_CONFIG_H__
|
||||
#define __AW8695_CONFIG_H__
|
||||
|
||||
#define AW8695_CHIPID 0x95
|
||||
#define AW8695_CHIPID1 0x95
|
||||
#define AW8695_CHIPID2 0x97
|
||||
|
||||
#define AW8695_BSTCFG_PEAKCUR_LIMIT 0x03
|
||||
#define AW8695_DEFAULT_PEAKCUR AW8695_BIT_BSTCFG_PEAKCUR_2A
|
||||
|
|
|
|||
Loading…
Reference in a new issue