mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 17:41:54 +00:00
Lars: enable USB-A port power control
Lars: enable USB-A port power control dumb mode is used since lars ec only have control over the two usb-a ports' power enable/disable functionality. BUG=none BRANCH=lars TEST=Run "make -j BOARD=lars", "make -j BOARD=lars_pd" and "make buildall -j" to build code and ec.bin can be generated. Change-Id: I0231b36e3875b56bc822dbae1de37da2182e5736 Signed-off-by: Ryan Zhang <Ryan.Zhang@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/309005 Commit-Ready: 志偉 黃 <David.Huang@quantatw.com> Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
This commit is contained in:
@@ -499,8 +499,6 @@ void board_set_charge_limit(int charge_ma)
|
||||
/* Enable touchpad on chipset startup so that it can wake the system */
|
||||
static void board_chipset_startup(void)
|
||||
{
|
||||
gpio_set_level(GPIO_USB1_ENABLE, 1);
|
||||
gpio_set_level(GPIO_USB2_ENABLE, 1);
|
||||
gpio_set_level(GPIO_ENABLE_TOUCHPAD, 1);
|
||||
}
|
||||
DECLARE_HOOK(HOOK_CHIPSET_STARTUP, board_chipset_startup,
|
||||
@@ -509,8 +507,6 @@ DECLARE_HOOK(HOOK_CHIPSET_STARTUP, board_chipset_startup,
|
||||
/* Disable touchpad on chipset shutdown as it is no longer useful */
|
||||
static void board_chipset_shutdown(void)
|
||||
{
|
||||
gpio_set_level(GPIO_USB1_ENABLE, 0);
|
||||
gpio_set_level(GPIO_USB2_ENABLE, 0);
|
||||
gpio_set_level(GPIO_ENABLE_TOUCHPAD, 0);
|
||||
}
|
||||
DECLARE_HOOK(HOOK_CHIPSET_SHUTDOWN, board_chipset_shutdown,
|
||||
|
||||
@@ -80,6 +80,11 @@
|
||||
#define CONFIG_USBC_SS_MUX
|
||||
#define CONFIG_USBC_SS_MUX_DFP_ONLY
|
||||
#define CONFIG_USBC_VCONN
|
||||
|
||||
/* USB-A ports */
|
||||
#define USB_PORT_COUNT 2
|
||||
#define CONFIG_USB_PORT_POWER_DUMB
|
||||
|
||||
#define CONFIG_VBOOT_HASH
|
||||
|
||||
#define CONFIG_SPI_FLASH_PORT 1
|
||||
|
||||
Reference in New Issue
Block a user