From 553d00bdb4e55fdfc5cc75772f686e20cd764c3e Mon Sep 17 00:00:00 2001 From: Aseda Aboagye Date: Mon, 31 Jul 2017 11:01:00 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/594710 Commit-Ready: Aseda Aboagye Tested-by: Aseda Aboagye Reviewed-by: Shawn N --- board/elm/board.c | 2 +- board/elm/board.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'board/elm') diff --git a/board/elm/board.c b/board/elm/board.c index e6734bd4ad..2ec3e08de0 100644 --- a/board/elm/board.c +++ b/board/elm/board.c @@ -134,7 +134,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/elm/board.h b/board/elm/board.h index ea2452c34a..5fda2789a4 100644 --- a/board/elm/board.h +++ b/board/elm/board.h @@ -110,8 +110,8 @@ #undef CONFIG_UART_RX_DMA /* BC 1.2 charger */ -#define CONFIG_USB_SWITCH_PI3USB9281 -#define CONFIG_USB_SWITCH_PI3USB9281_CHIP_COUNT 1 +#define CONFIG_BC12_DETECT_PI3USB9281 +#define CONFIG_BC12_DETECT_PI3USB9281_CHIP_COUNT 1 /* Optional features */ #define CONFIG_CMD_CHARGER_ADC_AMON_BMON -- cgit v1.2.1