summaryrefslogtreecommitdiff
path: root/baseboard/octopus/baseboard.c
diff options
context:
space:
mode:
authorScott Collyer <scollyer@google.com>2018-09-27 12:56:07 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-10-02 05:19:05 -0700
commit3b7ac6bedfa39ee10e000c705a400e2ede8fa4e5 (patch)
tree52d26f25605bb13180c37543bf7267c20b0f5702 /baseboard/octopus/baseboard.c
parentb729f9f10151438a86779d6c939b86572c0c1cda (diff)
downloadchrome-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/baseboard.c')
-rw-r--r--baseboard/octopus/baseboard.c8
1 files changed, 4 insertions, 4 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,
},
};