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/octopus | |
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/octopus')
-rw-r--r-- | baseboard/octopus/baseboard.c | 8 | ||||
-rw-r--r-- | baseboard/octopus/baseboard.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/baseboard/octopus/baseboard.c b/baseboard/octopus/baseboard.c index b1f8b11fb0..beb2e1754d 100644 --- a/baseboard/octopus/baseboard.c +++ b/baseboard/octopus/baseboard.c @@ -10,7 +10,7 @@ #include "chipset.h" #include "common.h" #include "console.h" -#include "driver/bc12/bq24392.h" +#include "driver/bc12/max14637.h" #include "driver/ppc/nx20p348x.h" #include "gpio.h" #include "hooks.h" @@ -76,16 +76,16 @@ const int usb_port_enable[USB_PORT_COUNT] = { /******************************************************************************/ /* 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] = { { .chip_enable_pin = GPIO_USB_C0_BC12_VBUS_ON, .chg_det_pin = GPIO_USB_C0_BC12_CHG_DET_L, - .flags = BQ24392_FLAGS_CHG_DET_ACTIVE_LOW, + .flags = MAX14637_FLAGS_CHG_DET_ACTIVE_LOW, }, { .chip_enable_pin = GPIO_USB_C1_BC12_VBUS_ON, .chg_det_pin = GPIO_USB_C1_BC12_CHG_DET_L, - .flags = BQ24392_FLAGS_CHG_DET_ACTIVE_LOW, + .flags = MAX14637_FLAGS_CHG_DET_ACTIVE_LOW, }, }; diff --git a/baseboard/octopus/baseboard.h b/baseboard/octopus/baseboard.h index 9311ab39ba..f1d3bc0d0f 100644 --- a/baseboard/octopus/baseboard.h +++ b/baseboard/octopus/baseboard.h @@ -187,7 +187,7 @@ #define CONFIG_USB_PD_VBUS_MEASURE_NOT_PRESENT #define CONFIG_USB_PD_TCPM_MUX #define CONFIG_USB_PD_TCPM_TCPCI -#define CONFIG_BC12_DETECT_BQ24392 +#define CONFIG_BC12_DETECT_MAX14637 #define CONFIG_CMD_PD_CONTROL #define CONFIG_CMD_PPC_DUMP |