summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/fruitpie/board.c2
-rw-r--r--board/fruitpie/ec.tasklist2
-rw-r--r--board/fruitpie/usb_pd_config.h4
3 files changed, 4 insertions, 4 deletions
diff --git a/board/fruitpie/board.c b/board/fruitpie/board.c
index 6a3a326633..c715b86c0e 100644
--- a/board/fruitpie/board.c
+++ b/board/fruitpie/board.c
@@ -50,7 +50,7 @@ const struct gpio_info gpio_list[] = {
/* Power and muxes control */
{"PP5000_EN", GPIO_A, (1<<5), GPIO_OUT_HIGH, NULL},
{"CC_HOST", GPIO_A, (1<<6), GPIO_OUT_LOW, NULL},
- {"CHARGE_EN_L", GPIO_A, (1<<8), GPIO_OUT_HIGH, NULL},
+ {"CHARGE_EN_L", GPIO_A, (1<<8), GPIO_OUT_LOW, NULL},
{"USB_C_5V_EN", GPIO_A, (1<<10), GPIO_OUT_LOW, NULL},
{"VCONN1_EN", GPIO_B, (1<<15), GPIO_OUT_LOW, NULL},
{"VCONN2_EN", GPIO_C, (1<<14), GPIO_OUT_LOW, NULL},
diff --git a/board/fruitpie/ec.tasklist b/board/fruitpie/ec.tasklist
index e9c8c1cc1f..a8250d57c1 100644
--- a/board/fruitpie/ec.tasklist
+++ b/board/fruitpie/ec.tasklist
@@ -18,5 +18,5 @@
*/
#define CONFIG_TASK_LIST \
TASK_ALWAYS(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \
- TASK_ALWAYS(CONSOLE, console_task, NULL, TASK_STACK_SIZE) \
+ TASK_ALWAYS(CONSOLE, console_task, NULL, LARGER_TASK_STACK_SIZE) \
TASK_ALWAYS(PD, pd_task, NULL, TASK_STACK_SIZE)
diff --git a/board/fruitpie/usb_pd_config.h b/board/fruitpie/usb_pd_config.h
index 52f5448aa2..e3a0ab2302 100644
--- a/board/fruitpie/usb_pd_config.h
+++ b/board/fruitpie/usb_pd_config.h
@@ -82,8 +82,8 @@ static inline void pd_set_host_mode(int enable)
/* UFP-side : threshold for DFP connection detection */
#define PD_SNK_VA 200 /* mV */
-/* we are a dev board, wait for the user to tell us what we should do */
-#define PD_DEFAULT_STATE PD_STATE_DISABLED
+/* start as a sink in case we have no other power supply/battery */
+#define PD_DEFAULT_STATE PD_STATE_SNK_DISCONNECTED
/* delay necessary for the voltage transition on the power supply */
#define PD_POWER_SUPPLY_TRANSITION_DELAY 50000 /* us */