From 13fb9ac539b9e85fd418b25da36e80a9be4aa292 Mon Sep 17 00:00:00 2001 From: Daisuke Nojiri Date: Thu, 14 Sep 2017 18:12:22 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/668119 Reviewed-by: Aaron Durbin --- board/fizz/board.h | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'board/fizz/board.h') 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 -- cgit v1.2.1