From 627bc558ec927cab379d70140b53dd966a44c541 Mon Sep 17 00:00:00 2001 From: FrankChu Date: Wed, 19 May 2021 17:25:27 +0800 Subject: mb/google/dedede/var/galtic: Add charger throttling function Add charger current throttling support for galtic control charger index * 64 = Value mA 32*64=2048 28*64=1792 24*64=1536 20*64=1280 BUG=b:187231627 TEST=Built and tested on boten system Cq-Depend: chrome-internal:3846209 Signed-off-by: FrankChu Change-Id: I5e1849551ff051bca591f19f9e40da4c89ab74e7 Reviewed-on: https://review.coreboot.org/c/coreboot/+/54673 Tested-by: build bot (Jenkins) Reviewed-by: Paul Yang Reviewed-by: Sumeet R Pawnikar --- src/mainboard/google/dedede/variants/galtic/overridetree.cb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/mainboard/google/dedede') diff --git a/src/mainboard/google/dedede/variants/galtic/overridetree.cb b/src/mainboard/google/dedede/variants/galtic/overridetree.cb index bc46adcd39..06e1f2424f 100644 --- a/src/mainboard/google/dedede/variants/galtic/overridetree.cb +++ b/src/mainboard/google/dedede/variants/galtic/overridetree.cb @@ -66,7 +66,7 @@ chip soc/intel/jasperlake ## Passive Policy register "policies.passive" = "{ [0] = DPTF_PASSIVE(CPU, CPU, 67, 1000), - [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 62, 1000), + [1] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_0, 62, 1000), [2] = DPTF_PASSIVE(CPU, TEMP_SENSOR_1, 58, 1000), [3] = DPTF_PASSIVE(CPU, TEMP_SENSOR_2, 40, 1000) }" @@ -101,6 +101,14 @@ chip soc/intel/jasperlake register "options.tsr[1].desc" = ""Vcore"" register "options.tsr[2].desc" = ""Ambient"" + ## Charger Performance Control (Control, mA) + register "controls.charger_perf" = "{ + [0] = { 32, 2048 }, + [1] = { 28, 1792 }, + [2] = { 24, 1536 }, + [3] = { 20, 1280 } + }" + device generic 0 on end end end # SA Thermal device -- cgit v1.2.3