Nick Vaccaro has submitted this change. ( https://review.coreboot.org/c/coreboot/+/54673 )
Change subject: mb/google/dedede/var/galtic: Add charger throttling function ......................................................................
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 frank_chu@pegatron.corp-partner.google.com Change-Id: I5e1849551ff051bca591f19f9e40da4c89ab74e7 Reviewed-on: https://review.coreboot.org/c/coreboot/+/54673 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Paul Yang paul.f.yang@intel.corp-partner.google.com Reviewed-by: Sumeet R Pawnikar sumeet.r.pawnikar@intel.com --- M src/mainboard/google/dedede/variants/galtic/overridetree.cb 1 file changed, 9 insertions(+), 1 deletion(-)
Approvals: build bot (Jenkins): Verified Sumeet R Pawnikar: Looks good to me, approved Paul Yang: Looks good to me, but someone else must approve
diff --git a/src/mainboard/google/dedede/variants/galtic/overridetree.cb b/src/mainboard/google/dedede/variants/galtic/overridetree.cb index bc46adc..06e1f24 100644 --- a/src/mainboard/google/dedede/variants/galtic/overridetree.cb +++ b/src/mainboard/google/dedede/variants/galtic/overridetree.cb @@ -66,7 +66,7 @@ ## 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 @@ 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