mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
aw8695: support 205HZ vibrator
aw8695 can support f0 calibration, we need to add 205HZ configuration to support more vibrator. Change-Id: I7946bf24794c3b8e74bc909f0a6aebfe2c8454b3 Signed-off-by: Weilong Wu <wuwl10@motorola.com> Reviewed-on: https://gerrit.mot.com/1333394 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hujun Liao <liaohj@motorola.com> Submit-Approved: Jira Key (cherry picked from commit bd22a3e2235e05bb7434c11686f795bf8b6a8a4f) Reviewed-on: https://gerrit.mot.com/1365544 Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
This commit is contained in:
parent
96b9f04828
commit
798a46b1c7
1 changed files with 11 additions and 1 deletions
|
|
@ -50,7 +50,7 @@
|
|||
|
||||
/* motor config */
|
||||
|
||||
#define LRA_0832 //default
|
||||
#define LRA_205HZ //default
|
||||
|
||||
#ifdef LRA_0619
|
||||
#define AW8695_HAPTIC_F0_PRE 1700 /* 170Hz */
|
||||
|
|
@ -73,6 +73,16 @@
|
|||
#endif
|
||||
|
||||
|
||||
#ifdef LRA_205HZ
|
||||
#define AW8695_HAPTIC_F0_PRE 2050 // 205Hz
|
||||
#define AW8695_HAPTIC_F0_CALI_PERCEN 7 // -7%~7%
|
||||
#define AW8695_HAPTIC_CONT_DRV_LVL 115 // 125*6.1/255=2.75v
|
||||
#define AW8695_HAPTIC_CONT_DRV_LVL_OV 135 // 155*6.1/255=3.22v
|
||||
#define AW8695_HAPTIC_CONT_TD 0x006c
|
||||
#define AW8695_HAPTIC_CONT_ZC_THR 0x0ff1
|
||||
#define AW8695_HAPTIC_CONT_NUM_BRK 3
|
||||
#endif
|
||||
|
||||
#define AW8695_HAPTIC_F0_COEFF 260 /*2.604167 */
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue