diff options
author | Scott Collyer <scollyer@google.com> | 2018-09-27 12:56:07 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-10-02 05:19:05 -0700 |
commit | 3b7ac6bedfa39ee10e000c705a400e2ede8fa4e5 (patch) | |
tree | 52d26f25605bb13180c37543bf7267c20b0f5702 /baseboard/grunt | |
parent | b729f9f10151438a86779d6c939b86572c0c1cda (diff) | |
download | chrome-ec-3b7ac6bedfa39ee10e000c705a400e2ede8fa4e5.tar.gz |
bc12: rename bq24392 driver to max14637
The MAX14637 BC 1.2 USB charger detection chip is functionally similar
to the bq24392 and can use the same driver. Rather than have 2 copies
of the same driver, or a generic named driver than can be used for
both chips, rename the existing bq24392 driver to max14637 as that's
the BC 1.2 chip that our current designs are using.
BUG=b:113267982
BRANCH=none
TEST=make -j buildall
Change-Id: I03cfb4918513d756c2a41341001a8162652a29b6
Signed-off-by: Scott Collyer <scollyer@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1250031
Commit-Ready: Scott Collyer <scollyer@chromium.org>
Tested-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Edward Hill <ecgh@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'baseboard/grunt')
-rw-r--r-- | baseboard/grunt/baseboard.c | 8 | ||||
-rw-r--r-- | baseboard/grunt/baseboard.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/baseboard/grunt/baseboard.c b/baseboard/grunt/baseboard.c index 503b989a32..8243106a0a 100644 --- a/baseboard/grunt/baseboard.c +++ b/baseboard/grunt/baseboard.c @@ -17,7 +17,7 @@ #include "driver/accel_kionix.h" #include "driver/accel_kx022.h" #include "driver/accelgyro_bmi160.h" -#include "driver/bc12/bq24392.h" +#include "driver/bc12/max14637.h" #include "driver/ppc/sn5s330.h" #include "driver/tcpm/anx74xx.h" #include "driver/tcpm/ps8xxx.h" @@ -147,16 +147,16 @@ struct ppc_config_t ppc_chips[] = { unsigned int ppc_cnt = ARRAY_SIZE(ppc_chips); /* BC 1.2 chip Configuration */ -const struct bq24392_config_t bq24392_config[CONFIG_USB_PD_PORT_COUNT] = { +const struct max14637_config_t max14637_config[CONFIG_USB_PD_PORT_COUNT] = { [USB_PD_PORT_ANX74XX] = { .chip_enable_pin = GPIO_USB_C0_BC12_VBUS_ON_L, .chg_det_pin = GPIO_USB_C0_BC12_CHG_DET, - .flags = BQ24392_FLAGS_ENABLE_ACTIVE_LOW, + .flags = MAX14637_FLAGS_ENABLE_ACTIVE_LOW, }, [USB_PD_PORT_PS8751] = { .chip_enable_pin = GPIO_USB_C1_BC12_VBUS_ON_L, .chg_det_pin = GPIO_USB_C1_BC12_CHG_DET, - .flags = BQ24392_FLAGS_ENABLE_ACTIVE_LOW, + .flags = MAX14637_FLAGS_ENABLE_ACTIVE_LOW, }, }; diff --git a/baseboard/grunt/baseboard.h b/baseboard/grunt/baseboard.h index fdb0752c39..975c5fde36 100644 --- a/baseboard/grunt/baseboard.h +++ b/baseboard/grunt/baseboard.h @@ -52,7 +52,7 @@ #define CONFIG_BATTERY_REVIVE_DISCONNECT #define CONFIG_BATTERY_SMART -#define CONFIG_BC12_DETECT_BQ24392 +#define CONFIG_BC12_DETECT_MAX14637 #define CONFIG_CHARGER #define CONFIG_CHARGER_V2 #define CONFIG_CHARGE_MANAGER |