mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
sx9311/sx9325:New log requirement for SAR sensor
WHY:Need print value of CS3 HOW:Add debug channel number Change-Id: Icedda92edaad8a826094d5d638b3b988c5b9b513 Signed-off-by: wunan3 <wunan3@lenovo.com> Reviewed-on: https://gerrit.mot.com/1246425 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Wang Wang <wangwang1@lenovo.com> Submit-Approved: Jira Key
This commit is contained in:
parent
5147d1ce01
commit
6713bcc1e8
4 changed files with 8 additions and 2 deletions
|
|
@ -277,7 +277,7 @@ static void read_rawData(psx93XX_t this)
|
|||
s32 diff;
|
||||
u16 offset;
|
||||
if(this){
|
||||
for(csx =0; csx<USE_CHANNEL_NUM; csx++){
|
||||
for(csx =0; csx<DEBUG_CHANNEL_NUM; csx++){
|
||||
write_register(this,SX9310_CPSRD,csx);//here to check the CS1, also can read other channel
|
||||
read_register(this,SX9310_USEMSB,&msb);
|
||||
read_register(this,SX9310_USELSB,&lsb);
|
||||
|
|
|
|||
|
|
@ -278,7 +278,7 @@ static void read_rawData(psx93XX_t this)
|
|||
s32 diff;
|
||||
u16 offset;
|
||||
if(this){
|
||||
for(csx =0; csx<USE_CHANNEL_NUM; csx++){
|
||||
for(csx =0; csx<DEBUG_CHANNEL_NUM; csx++){
|
||||
write_register(this,SX932x_CPSRD,csx);//here to check the CS1, also can read other channel
|
||||
read_register(this,SX932x_USEMSB,&msb);
|
||||
read_register(this,SX932x_USELSB,&lsb);
|
||||
|
|
|
|||
|
|
@ -91,6 +91,9 @@
|
|||
/* useful channel number */
|
||||
#define USE_CHANNEL_NUM 3
|
||||
|
||||
/* channel number need to debug */
|
||||
#define DEBUG_CHANNEL_NUM 4
|
||||
|
||||
/* default settings */
|
||||
/* Channel enable: CS0:1,CS1:2,CS2:4,COMB:8
|
||||
* Defines the Active scan period :
|
||||
|
|
|
|||
|
|
@ -128,6 +128,9 @@
|
|||
/* useful channel number */
|
||||
#define USE_CHANNEL_NUM 3
|
||||
|
||||
/* channel number need to debug */
|
||||
#define DEBUG_CHANNEL_NUM 4
|
||||
|
||||
/* default settings */
|
||||
/* Channel enable: CS0:1,CS1:2,CS2:4,COMB:8
|
||||
* Defines the Active scan period :
|
||||
|
|
|
|||
Loading…
Reference in a new issue