﻿//=================================================================================================
// KBC Version: 	00.01.09
// Date:		2025/06/27
// Base:		S14G3 v000108
//=================================================================================================
1. Modify PD port stop power-sharing when PD adapter only.

//=================================================================================================
// KBC Version: 	00.01.08
// Date:		2025/02/10
// Base:		S14G3 v000107
//=================================================================================================
1. Added BC_TRIG function.
   #define Prog2KeyFunctionMode                ECReg(ACPIRAM + 0xAB)
   #define PROG2KEY_MODE_BcTrig            0x03
2. Add SCI_BCTRIG_PRESS_CMD Event 0xDE.
       SCI_BCTRIG_RELEAS_CMD Event 0xDF.
3. Add H2RAM COMMAND 0x65.
   date 0x01 = SetBcTrigOutPinLow
   date 0x00 = SetBcTrigOutPinHigh

//=================================================================================================
// KBC Version: 	00.01.07
// Date:		2024/12/31
// Base:		S14G3 v000106
//=================================================================================================
1. Fixed PD power sharing issue when AC or PD adapter in/out.
   (Fixed EC sleep before PD power sharing switch.)

//=================================================================================================
// KBC Version: 	00.01.06
// Date:		2024/12/27
// Base:		S14G3 v000105
//=================================================================================================
1. Added PD power sharing disabled in battery mode when system in S4/S5.
2. Fixed Powershare off when AC out and battery percentage below 20 percent.
3. Modify UCSI_VERSION to 0x120

//=================================================================================================
// KBC Version: 	00.01.05
// Date:		2024/12/02
// Base:		S14G3 v000104
//=================================================================================================
1. LTE power disable without countdown 1 sec(100 ms * 10).
2. Modify read CPU temperature by eSPI.
3. Set PL1, PL2, and PL3 in battery mode.
4. Modify SYS_ON low to be 7 seconds after entering shutdown.
5. Modify ME_SECU does not change in S0toS5.
6. Fixed NIGHT_VISION PWM (DCR6 = 0x00). When the power state is S5.

//=================================================================================================
// KBC Version: 	00.01.04
// Date:		2024/11/07
// Base:		v000103
//=================================================================================================
1. Fixed RF_LED on when system turn on issue.
2. Set ESPI_MAX_FREQ = 33MHz
3. Modify read CPU temperature by PECI.

//=================================================================================================
// KBC Version: 	00.01.03
// Date:		2024/10/04
// Base:		v000102
//=================================================================================================
1. Fixed battery status display issue.
2. Fixed battery hot-swap counter fail while turning on system.
3. Fixed the outage when power on PD adapter only issue.
4. Fixed Battery LED when battery full charge(about 95 ~ 96 percent).
5. Fixed Battery LED from BATTERY_LOW to BATTERY_ERROR.
6. Adjusted battery charging abnormal temperature from 50'C to 60'C.
7. Fixed second battery charge when main battery discharge in battery learning.
8. Fixed second battery LED issue.
9. Fixed hot swapable battery function.
10. Modified battery hot-swap timeout to 1 minute.
11. Modified to support two eSPI devices.
12. Modify SYS_ON low to be 10 seconds after entering shutdown.
13. Fixed PWRSW can't boot when battery only and battery lower than 10 percent.

//=================================================================================================
// KBC Version: 	00.01.02
// Date:		2024/07/04
// Base:		v000101
//=================================================================================================
1. Fixed CPU fan issue when battery learning.
2. Added battery low temperature start detection.
3. Added H2RAM COMMAND 0x71:
4. Added Windows flash EC function.
5. Added copilot key.
6. Modify Battery hot-swap count 200ms.
7. Added Powershare off when AC out and battery percentage below 20 percent.
8. Modify CPU_FAN new table.
9. Added UCSI functions.

//=================================================================================================
// KBC Version: 	00.01.01
// Date:		2024/05/10
// Base:		Z14G3_v00010116
//=================================================================================================
1. Based on AMI ITE5571 ver:F code base and "202404301_Z14G3_ADL_TwinHead_00010116".
2. Config EC GPIO.
3. Enabled EC control CPU Fan.
4. Added BC_Trigger Assert/Deassert Function.
5. Added hot swapable battery Function.
6. Adjusted Charger IC 1&2 perameter value by "S14G3 Charger IC_20240502.txt".