From 4791c8f304aaed47dd770bfa58abbec13a57f2bc Mon Sep 17 00:00:00 2001 From: Konstantin Makariev Date: Thu, 12 Jan 2023 10:12:17 -0600 Subject: [PATCH] fixup! (CR) drv8424_mmi: update motor sequences Update SLOWMO sequence. Set threshold to 3.5 degrees at power up Mot-CRs-Fixed: (CR) Change-Id: I2ea47aa214bc1ac8f28b649348c0800b3275602e Signed-off-by: Konstantin Makariev Reviewed-on: https://gerrit.mot.com/2484723 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Qing Chang Submit-Approved: Jira Key --- drivers/misc/drv8424/drv8424.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/misc/drv8424/drv8424.c b/drivers/misc/drv8424/drv8424.c index e9c11175f65f..922701c195a6 100644 --- a/drivers/misc/drv8424/drv8424.c +++ b/drivers/misc/drv8424/drv8424.c @@ -263,7 +263,7 @@ static motor_stage initial_data_2p3[SQ_MAX][MAX_STAGE_LEGS] = { {0, 0}, }, { /* SLOWMO */ - {500,200}, {500,400}, {500,800}, {500,1200}, {500,1600}, + {600,4900}, }, }; @@ -285,7 +285,7 @@ static motor_stage initial_data_2p8[SQ_MAX][MAX_STAGE_LEGS] = { {0, 0}, }, { /* SLOWMO */ - {400,200}, {400,400}, {400,800}, {400,1200}, {400,1600}, + {600,4100}, }, }; /* 10,000,000 10,000,000 4,000,000 2,000,000 15,000,000 */ @@ -1394,7 +1394,7 @@ exit: #define PROXIMITY_HD 350 /* 3.5 degrees multiplied by 100 to get rid of float */ #define PROXIMITY_SD 750 /* 7.5 degrees multiplied by 100 to get rid of float */ -static int sensProximity = PROXIMITY_SD; +static int sensProximity = PROXIMITY_HD; static inline bool IN_RANGE(int valMeas, int valSet) {