﻿//=================================================================================================
// KBC Version:  00.01.21
// Date:		2026.03.17
// Base:		v000120
//=================================================================================================
1. Added PD patch bundle solution.
2. Modify battery LED behavior when low-battery charging.

//=================================================================================================
// KBC Version:  00.01.20
// Date:		2025.06.27
// Base:		v000119
//=================================================================================================
1. Modify PD port stop power-sharing when PD adapter only.

//=================================================================================================
// KBC Version:  00.01.19
// Date:		2025.03.24
// Base:		v000115
//=================================================================================================
1. Fixed 5G card Issue.

//=================================================================================================
// KBC Version:  00.01.18
// Date:		2025.03.13
// Base:		v000117
//=================================================================================================
1. Modify PECI write power (Package PL2, Psys PL1, PL2, PL3, and PL4).
           Pkg Psys Psys
           PL2  PL1  PL2  PL3  PL4
   MxM     20W  84W 105W 107W 110W
   AC      20W  68W  85W  87W  90W
   Battery 20W  28W  35W  42W  45W

//=================================================================================================
// KBC Version:  00.01.17
// Date:		2025.03.13
// Base:		v000116
//=================================================================================================
1. Modify SYS_ON low to be 10 seconds after entering shutdown.

//=================================================================================================
// KBC Version:  00.01.16
// Date:		2025.03.12
// Base:		v000115
//=================================================================================================
1. Modify PECI write power (Package PL2, Psys PL1, PL2, PL3, and PL4).
           Pkg Psys Psys
           PL2  PL1  PL2  PL3  PL4
   MxM     30W  84W 105W 107W 110W
   AC      30W  68W  85W  87W  90W
   Battery 20W  28W  35W  42W  45W

//=================================================================================================
// KBC Version:  00.01.15
// Date:		2025.01.02
// Base:		v000114
//=================================================================================================
1. PD power sharing disabled in battery mode when system in S4/S5.
2. Fixed RF_LED on when system turn on issue.
3. Added windows flash function.

//=================================================================================================
// KBC Version:  00.01.14
// Date:		2024.01.26
// Base:		v00011305
//=================================================================================================
1. Added OemTwinheadCmd(0x70) for Fan Control.
  H2RAM(0700)
  1.1               Reg	0x01	0x02	0x03
      Fan Control Off	  0x70	0x02	0x00 (Fan Control Off)
      Fan Control  On   0x70	0x02	0x01 (Fan Stop)
      Fan Control  On   0x70	0x02	0xFF (Fan Max speed)
  1.2               Reg	0x00
      executed          0x0F
2. Added OemTwinheadCmd(0x70) for MXM Fan Control.
  H2RAM(0700)
  2.1                   Reg	0x01	0x02	0x03
      MXM Fan Control Off	  0x70	0x03	0x00 (MXM Fan Control Off)
      MXM Fan Control  On   0x70	0x03	0x01 (MXM Fan Stop)
      MXM Fan Control  On   0x70	0x03	0xFF (MXM Fan Max speed)
  2.2               Reg	0x00
      executed          0x0F
3. Fixed M.B version error issue.

//=================================================================================================
// KBC Version:  00.01.13
// Date:		2023.11.15
// Base:		v000112
//=================================================================================================
1. Added OemTwinheadCmd(0x70) for K.B Backlight On/off.

//=================================================================================================
// KBC Version:  00.01.12
// Date:		2023.11.03
// Base:		v000111
//=================================================================================================
1. Added OemTwinheadCmd(0x69) to get PM_LID# status.

//=================================================================================================
// KBC Version:  00.01.11
// Date:		2023.10.26
// Base:		v000110
//=================================================================================================
1. Add BRI_BAT_LED Blink after press the BRI_BAT_SW# 2 sec.
2. Fixed an issue where it takes too long to press the BRI_BAT_SW# until it indicates that it is safe to replace the battery.

//=================================================================================================
// KBC Version: 	00.01.10
// Date:		2023/10/11
// Base:		v99010914
//=================================================================================================
1. Modify ChargerIc from "S15ABG3 Charger IC-10.txt"
2. Fix USB Power Share issue when BAT power only(GPJ6).
3. Add INT78 function and modify INT128 function to fix K.B Scan not response.
4. Modify Night Vision(TMR) freq = 150Hz.
5. Stop CPU & MxM Fan in Modern Standby.
6. Added WritePsysPL1/WritePsysPL2/WritePsysPL3/WritePsysPl1Pl2Pl3 function..

//=================================================================================================
// KBC Version: 	00.01.09
// Date:		2023/06/27
// Base:		v000108
//=================================================================================================
1. Added RTC wake up.
   #define EcRam95								ECReg(ACPIRAM + 0x95)
   #define BIOS_RTC_WAKE_EN			BIT1	//RTC. 1: RTC wake up
2. Add H2RAM COMMAND 0x68.
   date 0x01 = Set CPU_PROCHOT_EC Pin to High.
   date 0x00 = Set CPU_PROCHOT_EC Pin to Low.
3. Fix the BriBat power issue after flashing EC.
4. Fix bridge battery LED off time.
5. Fix swap bridge battery issue when close the LID set sleep(MS).
6. Fix BriBatOn Set GPIO to S5 issue.
7. Modify CPU_FAN table.
8. Set eSPI_ALERT is supplied by VCC(1.8V).

//=================================================================================================
// KBC Version: 	00.01.08
// Date:		2023/05/22
// Base:		v00010703
//=================================================================================================
1. Modify CHRG_CTRL_2(0x3D) 0x7000, (PROCHOT# Duration 10ms).
2. Added CHRG_CTRL_3 (0x4C) 0320H:(Input Current Limit Loop: Disable)(PS. Adapter mode only)/ 0x0300:other
3. Modify
		ACC_1(0x3F): 
		Normal:	1074H 4.212A (80.028W) 
		Dock:	1074H 4.212A (80.028W)
		MXM:	1490H 5.264A (100.016W)	
		PD:	-10W, (PD > 90W, 0FA0H 4.000A (80.000W))

		ACL_2(0x3B):
		Normal:	124CH 4.684A (88.996W)
		Dock:	124CH 4.684A (88.996W)
		MXM:	16A0H 5.792A (110.048W)
		PD:	-2W, (PD > 90W, 1130H 4.400A (88W))

		ADP_PROHOT(0x47): 
		Normal:	1300H 4.864A (92.416W)
		Dock:	1300H 4.864A (92.416W)
		MXM:	1700H 5.888A (111.872W)
		PD:	-1W, (PD > 90W, 1180H 4.480A (89.600W))
4. Set Set5G_Pcie_RstPinHigh when S5toS0.
5. Add H2RAM COMMAND 0x67.
   date 0x01 = Set5G_Pcie_RstPinHigh
   date 0x00 = Set5G_Pcie_RstPinLow

//=================================================================================================
// KBC Version: 	00.01.07
// Date:		2023/04/26
// Base:		v000106
//=================================================================================================
1. Modify Charger IC 0x3B/0x3D.
2. Fix internal keyboard issue.
3. Fix flash EC Power_LED issue.
4. Fix learn issue.
5. Fix power button delay issue.
6. Fix flash EC Power_LED issue.
7. Modify MINCHARGE_VOLT 0x1800(6.144V)
8. Modify PL2 30W / PL1 15W.
9. Fix ADC Automatic Hardware Calibration Enabl.
10. Add Wake Up GPI3 ADAPT_DET#.
11. Fix PM_LID Wake Up issue.
12. Fix KB_BLT_PWM function.
13. Modify BriBatLidPin function.(Lid_Open)

//=================================================================================================
// KBC Version: 	00.01.06
// Date:		2023/03/14
// Base:		v00010511
//=================================================================================================
1. Modify GPU fan control.
2. Modify Charger IC Adapter Current Limit 1 condition value.
	 Dock In = 89.98W.
	 MXM = 109.97W
	 else 80.03W
3. Add PM_SLP_LAN function.
4. Fix BriBatLidPin function.
5. Add LANG_SEL function.
6. Add LID function.
7. Set PECI VTT to 1.05V
8. Fix PD charge issue.

//=================================================================================================
// KBC Version: 	00.01.05
// Date:		2023/02/13
// Base:		v000104
//=================================================================================================
1. Add GPU Fan Control function.
2. Add enter Modern Standby turn off Keyboard Backlight.
3. Delete function keys check ACPI mode before OS mode.
4. Add Fn+F4: Decreases keyboard illumination.
       Fn+F5: Increases keyboard illumination.
5. Delete charging current limit for PD Watt greater than 65W.(PD_ACL_1)

//=================================================================================================
// KBC Version: 	00.01.04
// Date:		2023/01/13
// Base:		v00010304
//=================================================================================================
1. Fix eSPI ALERT# to ALT function.
2. Modify SYS_ON low to be 5 seconds after entering shutdown.
3. Fix BAT charge LED.
4. Modify CPU_FAN new table.

//=================================================================================================
// KBC Version: 	00.01.03
// Date:		2022/12/26
// Base:		v00010205 Fix keyboard backlight time. ok.
//=================================================================================================
1. Fix ADP_ACL_1(ChargerCurrent).
2. Fix keyboard backlight time.
3. Fix PreCharge issue.
4. Add CPU_FAN function.
5. Add Programmable function.

//=================================================================================================
// KBC Version: 	00.01.02
// Date:		2022/12/13
// Base:		v000101
//=================================================================================================
1. Fix send Decreases display brightness issue.

//=================================================================================================
// KBC Version: 	00.01.01
// Date:		2022/12/12
// Base:		v000100
//=================================================================================================
1. Modify BAT CHARGE CURRENT to 3.5A.
2. Modify US/UK keyboard matrix(End 1...).
3. Add S5 to S0 for EEtest_SUPPORT.

//=================================================================================================
// KBC Version: 	00.01.00
// Date:		2022/11/25
// Base:		R11AH7 v00060801
//=================================================================================================
1. Based on AMI ITE5571 code base and "202211161_R11AH7_ADL_TwinHead_00060801".
2. GPIO Initial configuration beased on "S15ABG3_CKT_ADL_RA.pdf".
3. Add NUM_LED and CAP_LED function.
4. Add US/UK keyboard matrix.
5. Modify ISL9241 to 2-cell.