summaryrefslogtreecommitdiff
path: root/board/oak
diff options
context:
space:
mode:
authorAseda Aboagye <aaboagye@google.com>2017-07-31 11:01:00 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-07-31 17:08:28 -0700
commit553d00bdb4e55fdfc5cc75772f686e20cd764c3e (patch)
treead01a5002e717fa05081c238274797ccf52581ce /board/oak
parente67ca7945678399dffa19beb4bd54f7b935e4a7d (diff)
downloadchrome-ec-553d00bdb4e55fdfc5cc75772f686e20cd764c3e.tar.gz
driver: Move PI3USB9281 to bc12 directory.
The primary purpose of the Pericom PI3USB9281 is for BC1.2 detection. Therefore, move the driver to the bc12/ directory. Additonally, rename the config option to match. CONFIG_USB_SWITCH_PI3USB9281 => CONFIG_BC12_DETECT_PI3USB9281 BUG=None BRANCH=None TEST=`make -j buildall` Change-Id: I02f17064c0625e62d6779f895e69899c24898f74 Signed-off-by: Aseda Aboagye <aaboagye@google.com> Reviewed-on: https://chromium-review.googlesource.com/594710 Commit-Ready: Aseda Aboagye <aaboagye@chromium.org> Tested-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'board/oak')
-rw-r--r--board/oak/board.c2
-rw-r--r--board/oak/board.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/board/oak/board.c b/board/oak/board.c
index afaf16ab13..0c8af7b2ba 100644
--- a/board/oak/board.c
+++ b/board/oak/board.c
@@ -133,7 +133,7 @@ struct pi3usb9281_config pi3usb9281_chips[] = {
},
};
BUILD_ASSERT(ARRAY_SIZE(pi3usb9281_chips) ==
- CONFIG_USB_SWITCH_PI3USB9281_CHIP_COUNT);
+ CONFIG_BC12_DETECT_PI3USB9281_CHIP_COUNT);
/*
* Temperature sensors data; must be in same order as enum temp_sensor_id.
diff --git a/board/oak/board.h b/board/oak/board.h
index 6567b6dea5..61eeebf703 100644
--- a/board/oak/board.h
+++ b/board/oak/board.h
@@ -135,8 +135,8 @@
#define CONFIG_USB_MUX_PS8740
#endif
/* BC 1.2 charger */
-#define CONFIG_USB_SWITCH_PI3USB9281
-#define CONFIG_USB_SWITCH_PI3USB9281_CHIP_COUNT 2
+#define CONFIG_BC12_DETECT_PI3USB9281
+#define CONFIG_BC12_DETECT_PI3USB9281_CHIP_COUNT 2
#ifndef __ASSEMBLER__