summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben chen <ben.chen2@quanta.corp-partner.google.com>2022-09-01 14:13:53 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-09-15 03:04:16 +0000
commit73efce162d439ee704c6522cf0e40492a03f74f7 (patch)
treeb38cdf7454fadad2ffcfc174f5a487660f390c39
parent9833b956a401c6768fd372b3862fef7d658037a8 (diff)
downloadchrome-ec-73efce162d439ee704c6522cf0e40492a03f74f7.tar.gz
kuldax: add BJ power 65w/150w based on fw config
bj_power setting of fw_cofig BIT3-4: 150W = 0, (default) 230W = 1, 65W = 2, 135W = 3 BUG=b:229035883 BRANCH=cros/main TEST=chgsup reports voltage/current according to fw config Change-Id: Iff7f5879fc31a93f7600442582c5785c706ddc7d Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3865420 Reviewed-by: David Wu <david_wu@quanta.corp-partner.google.com> Reviewed-by: caveh jalali <caveh@chromium.org>
-rw-r--r--board/kuldax/fw_config.c14
-rw-r--r--board/kuldax/fw_config.h2
2 files changed, 12 insertions, 4 deletions
diff --git a/board/kuldax/fw_config.c b/board/kuldax/fw_config.c
index 3ee71e6a0f..4229f3bed1 100644
--- a/board/kuldax/fw_config.c
+++ b/board/kuldax/fw_config.c
@@ -31,13 +31,21 @@ static const struct {
int voltage;
int current;
} bj_power[] = {
- [BJ_135W] = { /* 0 - 135W (also default) */
- .voltage = 19500,
- .current = 6920
+ [BJ_150W] = { /* 0 - 150W (also default)*/
+ .voltage = 20000,
+ .current = 7500
},
[BJ_230W] = { /* 1 - 230W */
.voltage = 19500,
.current = 11800
+ },
+ [BJ_65W] = { /* 2 - 65W */
+ .voltage = 19000,
+ .current = 3420
+ },
+ [BJ_135W] = { /* 4 - 135W */
+ .voltage = 19500,
+ .current = 6920
}
};
diff --git a/board/kuldax/fw_config.h b/board/kuldax/fw_config.h
index 95d81f1e05..d7fa0a11a9 100644
--- a/board/kuldax/fw_config.h
+++ b/board/kuldax/fw_config.h
@@ -15,7 +15,7 @@
*/
enum ec_cfg_audio_type { DB_AUDIO_UNKNOWN = 0, DB_NAU88L25B_I2S = 1 };
-enum ec_cfg_bj_power { BJ_135W = 0, BJ_230W = 1 };
+enum ec_cfg_bj_power { BJ_150W = 0, BJ_230W = 1, BJ_65W = 2, BJ_135W = 3 };
union brask_cbi_fw_config {
struct {