diff options
author | YH Lin <yueherngl@chromium.org> | 2022-12-03 00:17:55 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-12-05 17:43:18 +0000 |
commit | dd732876495ed4942d00b9f9ca8dd3b01bad7120 (patch) | |
tree | bdff671e5ad3e71e30ab56f4f084f34a2fd72e28 /baseboard/volteer | |
parent | 184d13e77614be3be5374d3fef9d1edf66ec8687 (diff) | |
download | chrome-ec-dd732876495ed4942d00b9f9ca8dd3b01bad7120.tar.gz |
Revert "Merge remote-tracking branch cros/main into factory-brya-14909.124.B-main"factory-brya-14909.124.B-main
This reverts commit 184d13e77614be3be5374d3fef9d1edf66ec8687.
Reason for revert: broken build due to ec-utils.
Original change's description:
> Merge remote-tracking branch cros/main into factory-brya-14909.124.B-main
>
> Generated by: util/update_release_branch.py --baseboard brya --relevant_paths_file
> baseboard/brya/relevant-paths.txt factory-brya-14909.124.B-main
>
> Relevant changes:
>
> git log --oneline 19d4d68ffa..aa40b859b3 -- baseboard/brya board/agah
> board/anahera board/banshee board/brya board/crota board/felwinter
> board/gimble board/kano board/mithrax board/osiris board/primus
> board/redrix board/taeko board/taniks board/vell board/volmar
> driver/bc12/pi3usb9201_public.* driver/charger/bq25710.*
> driver/ppc/nx20p348x.* driver/ppc/syv682x_public.*
> driver/retimer/bb_retimer_public.* driver/tcpm/nct38xx.*
> driver/tcpm/ps8xxx_public.* driver/tcpm/tcpci.* include/power/alderlake*
> include/intel_x86.h power/alderlake* power/intel_x86.c
> util/getversion.sh
>
> e6da633c38 driver: Sort header files
> 234a87ae2d tcpci: Add FRS enable to driver structure
> a56be59ccd tcpm_header: add test for tcpm_dump_registers
> 57b3256963 Rename CONFIG_CHARGER_INPUT_CURRENT to _CHARGER_DEFAULT_CURRENT_LIMIT
> e420c8ff9a marasov: Modify TypeC and TypeA configuration.
> 43b53e0045 Add default implementation of board_set_charge_limit
> b75dc90677 Add CONFIG_CHARGER_MIN_INPUT_CURRENT_LIMIT
> f1b563c350 baseboard: Sort header files
> 7d01b1e58d driver/retimer/ps8818.h: Add I2C ADDR FLAGS 0x30, 0x58, 0x70
> ec31407993 Add CONFIG_CHARGER_INPUT_CURRENT_DERATE_PCT
> 8f89f69a5b crota: disable lid angle sensor for clamshell
>
> BRANCH=None
> BUG=b:260630630 b:163093572 b:259002141 b:255184961 b:259354679
> BUG=b:247100970 b:254328661
> TEST=`emerge-brya chromeos-ec`
>
> Force-Relevant-Builds: all
> Change-Id: I0ecfa0e6af68631283c7a9e8f1afb9d827176c62
> Signed-off-by: YH Lin <yueherngl@google.com>
Bug: b:260630630 b:163093572 b:259002141 b:255184961 b:259354679
Bug: b:247100970 b:254328661
Change-Id: Ia14942d1bd6a502062399d77cb59d1f4b549b2c9
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4077247
Auto-Submit: YH Lin <yueherngl@chromium.org>
Tested-by: YH Lin <yueherngl@chromium.org>
Reviewed-by: Boris Mittelberg <bmbm@google.com>
Commit-Queue: YH Lin <yueherngl@chromium.org>
Diffstat (limited to 'baseboard/volteer')
-rw-r--r-- | baseboard/volteer/baseboard.c | 2 | ||||
-rw-r--r-- | baseboard/volteer/baseboard.h | 7 | ||||
-rw-r--r-- | baseboard/volteer/battery_presence.c | 4 | ||||
-rw-r--r-- | baseboard/volteer/cbi.h | 2 | ||||
-rw-r--r-- | baseboard/volteer/cbi_ec_fw_config.c | 2 | ||||
-rw-r--r-- | baseboard/volteer/charger.c | 11 | ||||
-rw-r--r-- | baseboard/volteer/usb_pd_policy.c | 4 | ||||
-rw-r--r-- | baseboard/volteer/usbc_config.c | 15 |
8 files changed, 25 insertions, 22 deletions
diff --git a/baseboard/volteer/baseboard.c b/baseboard/volteer/baseboard.c index b9f10fd360..fd36aef81f 100644 --- a/baseboard/volteer/baseboard.c +++ b/baseboard/volteer/baseboard.c @@ -7,8 +7,8 @@ #include "adc.h" #include "button.h" #include "cbi_ec_fw_config.h" -#include "charge_ramp.h" #include "charger.h" +#include "charge_ramp.h" #include "cros_board_info.h" #include "driver/charger/isl9241.h" #include "driver/tcpm/ps8xxx.h" diff --git a/baseboard/volteer/baseboard.h b/baseboard/volteer/baseboard.h index d3c82f0651..3b8e475fe5 100644 --- a/baseboard/volteer/baseboard.h +++ b/baseboard/volteer/baseboard.h @@ -107,8 +107,7 @@ #define CONFIG_CHARGE_MANAGER #define CONFIG_CHARGER #define CONFIG_CHARGER_DISCHARGE_ON_AC -#define CONFIG_CHARGER_DEFAULT_CURRENT_LIMIT 512 -#define CONFIG_CHARGER_MIN_INPUT_CURRENT_LIMIT 512 +#define CONFIG_CHARGER_INPUT_CURRENT 512 /* * Hardware based charge ramp is broken in the ISL9241 (b/169350714). @@ -244,10 +243,10 @@ #ifndef __ASSEMBLER__ +#include "gpio_signal.h" +#include "common.h" #include "baseboard_usbc_config.h" #include "cbi.h" -#include "common.h" -#include "gpio_signal.h" enum adc_channel { ADC_TEMP_SENSOR_1_CHARGER, diff --git a/baseboard/volteer/battery_presence.c b/baseboard/volteer/battery_presence.c index d656b7b626..f143b67c91 100644 --- a/baseboard/volteer/battery_presence.c +++ b/baseboard/volteer/battery_presence.c @@ -6,12 +6,12 @@ * Each board should implement board_battery_info[] to define the specific * battery packs supported. */ +#include <stdbool.h> + #include "battery.h" #include "battery_smart.h" #include "gpio.h" -#include <stdbool.h> - static enum battery_present batt_pres_prev = BP_NOT_SURE; enum battery_present battery_hw_present(void) diff --git a/baseboard/volteer/cbi.h b/baseboard/volteer/cbi.h index 4b4044ea3c..dc940f1edc 100644 --- a/baseboard/volteer/cbi.h +++ b/baseboard/volteer/cbi.h @@ -8,8 +8,6 @@ #ifndef __CROS_EC_BASEBOARD_CBI_H #define __CROS_EC_BASEBOARD_CBI_H -#include "common.h" - unsigned char get_board_id(void); /** diff --git a/baseboard/volteer/cbi_ec_fw_config.c b/baseboard/volteer/cbi_ec_fw_config.c index f925498774..7506278e16 100644 --- a/baseboard/volteer/cbi_ec_fw_config.c +++ b/baseboard/volteer/cbi_ec_fw_config.c @@ -3,9 +3,9 @@ * found in the LICENSE file. */ -#include "cbi_ec_fw_config.h" #include "common.h" #include "console.h" +#include "cbi_ec_fw_config.h" #include "cros_board_info.h" #define CPRINTS(format, args...) cprints(CC_CHIPSET, format, ##args) diff --git a/baseboard/volteer/charger.c b/baseboard/volteer/charger.c index 17f1fe5f7d..84fa4e037c 100644 --- a/baseboard/volteer/charger.c +++ b/baseboard/volteer/charger.c @@ -4,10 +4,10 @@ */ /* Volteer family-specific configuration */ +#include "common.h" +#include "charger.h" #include "charge_manager.h" #include "charge_state.h" -#include "charger.h" -#include "common.h" #include "driver/charger/isl9241_public.h" #include "gpio.h" #ifdef CONFIG_ZEPHYR @@ -80,6 +80,13 @@ int board_set_active_charge_port(int port) return EC_SUCCESS; } +__overridable void board_set_charge_limit(int port, int supplier, int charge_ma, + int max_ma, int charge_mv) +{ + charge_set_input_current_limit( + MAX(charge_ma, CONFIG_CHARGER_INPUT_CURRENT), charge_mv); +} + void board_overcurrent_event(int port, int is_overcurrented) { /* Note that the level is inverted because the pin is active low. */ diff --git a/baseboard/volteer/usb_pd_policy.c b/baseboard/volteer/usb_pd_policy.c index 18c24b64ef..81e02b769f 100644 --- a/baseboard/volteer/usb_pd_policy.c +++ b/baseboard/volteer/usb_pd_policy.c @@ -8,11 +8,11 @@ #include "compile_time_macros.h" #include "console.h" #include "gpio.h" -#include "system.h" #include "usb_common.h" #include "usb_mux.h" -#include "usb_pd.h" #include "usbc_ppc.h" +#include "usb_pd.h" +#include "system.h" #define CPRINTF(format, args...) cprintf(CC_USBPD, format, ##args) #define CPRINTS(format, args...) cprints(CC_USBPD, format, ##args) diff --git a/baseboard/volteer/usbc_config.c b/baseboard/volteer/usbc_config.c index d77e275282..001f47e45f 100644 --- a/baseboard/volteer/usbc_config.c +++ b/baseboard/volteer/usbc_config.c @@ -5,22 +5,21 @@ /* Volteer family-specific USB-C configuration */ +#include "common.h" #include "charge_manager.h" #include "charge_ramp.h" #include "charge_state.h" -#include "common.h" -#include "driver/charger/isl9241_public.h" #include "gpio.h" #include "task.h" -#include "usb_charge.h" -#include "usb_pd.h" -#include "usbc_ppc.h" -#include "util.h" - #ifdef CONFIG_ZEPHYR -#include "baseboard_usbc_config.h" #include "usbc_config.h" +#include "baseboard_usbc_config.h" #endif +#include "usbc_ppc.h" +#include "usb_pd.h" +#include "usb_charge.h" +#include "util.h" +#include "driver/charger/isl9241_public.h" /******************************************************************************/ void tcpc_alert_event(enum gpio_signal signal) |