summaryrefslogtreecommitdiff
path: root/board/fizz/board.h
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2017-09-14 18:12:22 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-09-25 18:35:26 -0700
commit13fb9ac539b9e85fd418b25da36e80a9be4aa292 (patch)
tree1b6ea3542e93c834bafff06ccba5e3711e9cfcb0 /board/fizz/board.h
parent406302ffb09ecd0fa300b8faafea8e5cdcc1db07 (diff)
downloadchrome-ec-13fb9ac539b9e85fd418b25da36e80a9be4aa292.tar.gz
Fizz: Limit input current
Fizz has an over current control system. There are two FETs connected to two registers: PR257 & PR258. They control the max input current as follows: PR257, PR258 For 4.62A (90W BJ adapter), on, off For 3.33A (65W BJ adapter), off, on For 3.00A (Type-C adapter), off, off BJ adapters are distinguished by reading GPIO71. This patch also removes ISL9238 driver and ramping code. The charger chip has been removed from the board since proto2. BUG=b:65013352 BRANCH=none TEST=Boot Fizz Proto3 on BJ and Type-C. Change-Id: I32c2467f4ab23adf3f9313a03914d74d64a722df Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/668119 Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'board/fizz/board.h')
-rw-r--r--board/fizz/board.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/board/fizz/board.h b/board/fizz/board.h
index f988fae2dc..c82d333ccb 100644
--- a/board/fizz/board.h
+++ b/board/fizz/board.h
@@ -62,19 +62,14 @@
/* Charger */
#define CONFIG_CHARGE_MANAGER
-#define CONFIG_CHARGE_RAMP_HW /* This, or just RAMP? */
+
+/* TODO(dnojiri): Set this right */
#define CONFIG_CHARGER_LIMIT_POWER_THRESH_CHG_MW 20000
-#define CONFIG_CHARGER_ISL9238
-#define CONFIG_CHARGER_INPUT_CURRENT 512
-#define CONFIG_CHARGER_PSYS
-#define CONFIG_CHARGER_SENSE_RESISTOR 10
-#define CONFIG_CHARGER_SENSE_RESISTOR_AC 20
-#define CONFIG_CMD_CHARGER_ADC_AMON_BMON
#define CONFIG_CMD_PD_CONTROL
#define CONFIG_EXTPOWER_GPIO
-#undef CONFIG_EXTPOWER_DEBOUNCE_MS
-#define CONFIG_EXTPOWER_DEBOUNCE_MS 1000
+#undef CONFIG_EXTPOWER_DEBOUNCE_MS
+#define CONFIG_EXTPOWER_DEBOUNCE_MS 1000
#define CONFIG_POWER_BUTTON
#define CONFIG_POWER_BUTTON_X86
#define CONFIG_POWER_BUTTON_INIT_IDLE