From cf24279a27b5196f1cf9052d369cacef3ffee730 Mon Sep 17 00:00:00 2001 From: Sue Chen Date: Thu, 28 Oct 2021 13:52:12 +0800 Subject: Dewatt: support 65w adapter Modify max power and max current to support 65w adapter. BUG=b:204386852 BRANCH=none TEST="make BOARD" pass for board dewatt, guybrush and nipperkin Signed-off-by: Sue Chen Change-Id: Ic18ab3021e39913f2a69550fac269e91d3e83508 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3247739 Reviewed-by: Rob Barnes --- baseboard/guybrush/baseboard.h | 6 ------ board/dewatt/board.h | 6 ++++++ board/guybrush/board.h | 6 ++++++ board/nipperkin/board.h | 5 +++++ 4 files changed, 17 insertions(+), 6 deletions(-) diff --git a/baseboard/guybrush/baseboard.h b/baseboard/guybrush/baseboard.h index 36c30af951..6960524822 100644 --- a/baseboard/guybrush/baseboard.h +++ b/baseboard/guybrush/baseboard.h @@ -222,12 +222,6 @@ #define PD_POWER_SUPPLY_TURN_ON_DELAY 30000 /* us */ #define PD_POWER_SUPPLY_TURN_OFF_DELAY 30000 /* us */ -#define PD_OPERATING_POWER_MW 15000 -#define PD_MAX_CURRENT_MA 5000 -#define PD_MAX_VOLTAGE_MV 20000 -/* Max Power = 100 W */ -#define PD_MAX_POWER_MW ((PD_MAX_VOLTAGE_MV * PD_MAX_CURRENT_MA) / 1000) - /* USB-A config */ #define USB_PORT_COUNT USBA_PORT_COUNT #define CONFIG_USB_PORT_POWER_SMART diff --git a/board/dewatt/board.h b/board/dewatt/board.h index 5ebcce7cef..fa04e1bd89 100644 --- a/board/dewatt/board.h +++ b/board/dewatt/board.h @@ -38,6 +38,12 @@ #define CONFIG_USB_MUX_ANX7451 #define CONFIG_USBC_RETIMER_ANX7451 +#define PD_OPERATING_POWER_MW 15000 +#define PD_MAX_CURRENT_MA 3250 +#define PD_MAX_VOLTAGE_MV 20000 +/* Max Power = 65 W */ +#define PD_MAX_POWER_MW ((PD_MAX_VOLTAGE_MV * PD_MAX_CURRENT_MA) / 1000) + /* USB Type A Features */ /* BC 1.2 */ diff --git a/board/guybrush/board.h b/board/guybrush/board.h index 39adbc2ec7..f3900adc43 100644 --- a/board/guybrush/board.h +++ b/board/guybrush/board.h @@ -37,6 +37,12 @@ #define CONFIG_USB_MUX_ANX7451 #define CONFIG_USBC_RETIMER_ANX7451 +#define PD_OPERATING_POWER_MW 15000 +#define PD_MAX_CURRENT_MA 5000 +#define PD_MAX_VOLTAGE_MV 20000 +/* Max Power = 100 W */ +#define PD_MAX_POWER_MW ((PD_MAX_VOLTAGE_MV * PD_MAX_CURRENT_MA) / 1000) + /* USB Type A Features */ /* BC 1.2 */ diff --git a/board/nipperkin/board.h b/board/nipperkin/board.h index 86d0ef9623..f9495857d5 100644 --- a/board/nipperkin/board.h +++ b/board/nipperkin/board.h @@ -20,6 +20,11 @@ #define CONFIG_CMD_BUTTON /* USB Type C and USB PD defines */ +#define PD_OPERATING_POWER_MW 15000 +#define PD_MAX_CURRENT_MA 5000 +#define PD_MAX_VOLTAGE_MV 20000 +/* Max Power = 100 W */ +#define PD_MAX_POWER_MW ((PD_MAX_VOLTAGE_MV * PD_MAX_CURRENT_MA) / 1000) /* USB Type A Features */ -- cgit v1.2.1