summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2017-12-06 09:47:54 -0800
committerchrome-bot <chrome-bot@chromium.org>2017-12-08 09:07:04 -0800
commitd663420d62f77506aea18371f0df669703b29026 (patch)
treed7699c9a6047e4cbc2343f36e919cdfe2fd99d65 /board
parent47a6acca3a41f21f8fe08e5ecb7b4d23acb6eb00 (diff)
downloadchrome-ec-d663420d62f77506aea18371f0df669703b29026.tar.gz
Fizz: Set PD operating power to 50W
This patch sets the PD operating power to 50W, which is the same as what the AP requires to boot. Since Fizz doesn't have a battery to charge, we're not interested in lower power. BUG=none BRANCH=none TEST=Boot Fizz on Type-c adapter (87W, 60W). Verify it fails to boot on on 45W charger. Change-Id: Ia9191ecf71329c693bee7d5893e53bd2fec70eeb Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/811524 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board')
-rw-r--r--board/fizz/board.h11
-rw-r--r--board/fizz/usb_pd_policy.c2
2 files changed, 7 insertions, 6 deletions
diff --git a/board/fizz/board.h b/board/fizz/board.h
index a38df4927c..5c784b3791 100644
--- a/board/fizz/board.h
+++ b/board/fizz/board.h
@@ -232,11 +232,12 @@ enum mft_channel {
/* delay to turn on/off vconn */
#define PD_VCONN_SWAP_DELAY 5000 /* us */
-/* Define typical operating power and max power */
-#define PD_OPERATING_POWER_MW 15000
-#define PD_MAX_POWER_MW 100000
-#define PD_MAX_CURRENT_MA 5000
-#define PD_MAX_VOLTAGE_MV 20000
+/* Define typical operating power. Since Fizz doesn't have a battery to charge,
+ * we're not interested in any power lower than the AP power-on threshold. */
+#define PD_OPERATING_POWER_MW CONFIG_CHARGER_LIMIT_POWER_THRESH_CHG_MW
+#define PD_MAX_POWER_MW 100000
+#define PD_MAX_CURRENT_MA 5000
+#define PD_MAX_VOLTAGE_MV 20000
/* Board specific handlers */
int board_get_version(void);
diff --git a/board/fizz/usb_pd_policy.c b/board/fizz/usb_pd_policy.c
index 717a30fb22..0184fe43ec 100644
--- a/board/fizz/usb_pd_policy.c
+++ b/board/fizz/usb_pd_policy.c
@@ -36,7 +36,7 @@ const int pd_src_pdo_cnt = ARRAY_SIZE(pd_src_pdo);
const uint32_t pd_snk_pdo[] = {
PDO_FIXED(5000, 500, PDO_FIXED_FLAGS),
- PDO_BATT(4750, 21000, 15000),
+ PDO_BATT(4750, 21000, 50000),
PDO_VAR(4750, 21000, 3000),
};
const int pd_snk_pdo_cnt = ARRAY_SIZE(pd_snk_pdo);