diff options
author | FrankChu <frank_chu@pegatron.corp-partner.google.com> | 2021-05-19 17:25:27 +0800 |
---|---|---|
committer | Nick Vaccaro <nvaccaro@google.com> | 2021-08-12 17:54:55 +0000 |
commit | 627bc558ec927cab379d70140b53dd966a44c541 (patch) | |
tree | 0622c02a140175aa3329d5ebb7f9eea4b5a5952e | |
parent | eb07e4c957cdba397908972d77a704ea649a8a83 (diff) |
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>
-rw-r--r-- | src/mainboard/google/dedede/variants/galtic/overridetree.cb | 10 |
1 files changed, 9 insertions, 1 deletions
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 |