From c7ffe01574cf89ba3dd60c620d27e5718f98c99c Mon Sep 17 00:00:00 2001 From: "@CHENG" <2393524978@qq.com> Date: Mon, 14 Apr 2025 19:35:42 +0800 Subject: [PATCH] =?utf8?q?Z5=5FHA=5FK18=5FDRIVER=20=E6=9B=B4=E6=96=B0?= =?utf8?q?=E7=94=B5=E6=B1=A0=E6=9B=B2=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../config/watch/lv_conf_CUSTOM.h | 1 + .../craneg_modem/framework/cus/charger_cus.c | 42 ++++++++++++++++++- 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/2.sdk/project/Z5_HA_K18_DRIVER/product/craneg_modem/config/watch/lv_conf_CUSTOM.h b/2.sdk/project/Z5_HA_K18_DRIVER/product/craneg_modem/config/watch/lv_conf_CUSTOM.h index 71663676..080e6b58 100644 --- a/2.sdk/project/Z5_HA_K18_DRIVER/product/craneg_modem/config/watch/lv_conf_CUSTOM.h +++ b/2.sdk/project/Z5_HA_K18_DRIVER/product/craneg_modem/config/watch/lv_conf_CUSTOM.h @@ -14,6 +14,7 @@ // drv #define DRV_PROJECT_Z5_HA_K18 1 +#define DRV_PROJECT_Z5_HA_K18_DRIVER 1 diff --git a/2.sdk/sdk/product/craneg_modem/framework/cus/charger_cus.c b/2.sdk/sdk/product/craneg_modem/framework/cus/charger_cus.c index eafd65c3..114c3d4c 100644 --- a/2.sdk/sdk/product/craneg_modem/framework/cus/charger_cus.c +++ b/2.sdk/sdk/product/craneg_modem/framework/cus/charger_cus.c @@ -9,7 +9,47 @@ PMIC_CONFIG_T g_tgtPmdCfg[] = /************************************************************************************* Battery inital parameters **************************************************************************************/ -#if defined (For_Watch_Battery_Z5_HA_K18) +#ifdef DRV_PROJECT_Z5_HA_K18_DRIVER + { + 4200, + 3400, + 33, + 3400, + 3400, + PMIC_CHARGER_500MA, + 800, + PRE_CHARGER_150MA, + TER_CHARGER_50MA, //only use for pm813 + VBAT_VOL_4V20, + TRICKIE_CHARGER_TOUT_15M, + PRE_CHARGER_TOUT_60M, + CCCV_TOUT_240M, + 60, +// #if defined(CONFIG_BOARD_CRANEM_EVB) +// 200, +// #else + 150, +// #endif + 0, + 1, + { + 4181,4164,4146,4118,4106,4094,4074,4065,4055,4045, + 4035,4016,4007,3998,3981,3974,3967,3960,3952,3937, + 3930,3923,3909,3902,3895,3889,3883,3869,3863,3857, + 3846,3840,3835,3830,3825,3818,3815,3812,3810,3809, + 3808,3805,3803,3795,3788,3782,3769,3761,3753,3744, + 3736,3718,3709,3701,3687,3681,3675,3670,3665,3656, + 3652,3648,3641,3638,3635,3632,3629,3622,3619,3617, + 3611,3608,3606,3603,3600,3594,3591,3588,3582,3578, + 3574,3569,3564,3553,3547,3541,3530,3523,3516,3509, + 3502,3485,3476,3468,3453,3447,3441,3431,3423,3400,//3416 + 3388 + }, + 0, + {0}, + 20, + }, +#elif defined (For_Watch_Battery_Z5_HA_K18) { 4330, 3100, -- 2.17.1