summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/dingdong/board.c2
-rw-r--r--board/dingdong/gpio.inc1
-rw-r--r--board/hoho/board.c4
-rw-r--r--board/hoho/gpio.inc2
4 files changed, 9 insertions, 0 deletions
diff --git a/board/dingdong/board.c b/board/dingdong/board.c
index 867eb1a4ed..cdeb95342c 100644
--- a/board/dingdong/board.c
+++ b/board/dingdong/board.c
@@ -105,6 +105,8 @@ static void board_init(void)
hpd_prev_level = gpio_get_level(GPIO_DP_HPD);
hpd_prev_ts = now.val;
gpio_enable_interrupt(GPIO_DP_HPD);
+
+ gpio_set_level(GPIO_STM_READY, 1); /* factory test only */
}
DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT);
diff --git a/board/dingdong/gpio.inc b/board/dingdong/gpio.inc
index 72a96f9e1f..95a75b88b1 100644
--- a/board/dingdong/gpio.inc
+++ b/board/dingdong/gpio.inc
@@ -6,6 +6,7 @@
*/
GPIO(DP_HPD, A, 0, GPIO_INT_BOTH, hpd_event)
GPIO(USB_C_CC1_PD, A, 1, GPIO_ANALOG, NULL)
+GPIO(STM_READY, A, 2, GPIO_OUT_LOW, NULL) /* factory test only */
GPIO(PD_DAC_REF, A, 4, GPIO_ANALOG, NULL)
GPIO(DP_AUX_N, A, 5, GPIO_INPUT, NULL)
GPIO(DP_AUX_P, A, 6, GPIO_INPUT, NULL)
diff --git a/board/hoho/board.c b/board/hoho/board.c
index d442d132a9..406bdebd77 100644
--- a/board/hoho/board.c
+++ b/board/hoho/board.c
@@ -142,6 +142,10 @@ static void board_init(void)
hpd_prev_level = gpio_get_level(GPIO_DP_HPD);
hpd_prev_ts = now.val;
gpio_enable_interrupt(GPIO_DP_HPD);
+
+ gpio_set_level(GPIO_STM_READY, 1); /* factory test only */
+ /* TODO(crosbug.com/p/34122): Add real check for MCDP function */
+ gpio_set_level(GPIO_MCDP_READY, 1); /* factory test only */
}
DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT);
diff --git a/board/hoho/gpio.inc b/board/hoho/gpio.inc
index faa26dba27..4bd01192a3 100644
--- a/board/hoho/gpio.inc
+++ b/board/hoho/gpio.inc
@@ -6,9 +6,11 @@
*/
GPIO(DP_HPD, A, 0, GPIO_INT_BOTH, hpd_event)
GPIO(USB_C_CC1_PD, A, 1, GPIO_ANALOG, NULL)
+GPIO(STM_READY, A, 2, GPIO_OUT_LOW, NULL) /* factory test only */
GPIO(MCDP_RESET_L, A, 3, GPIO_OUT_HIGH, NULL)
GPIO(PD_DAC_REF, A, 4, GPIO_ANALOG, NULL)
+GPIO(MCDP_READY, A, 7, GPIO_OUT_LOW, NULL) /* factory test only */
GPIO(PD_SBU_ENABLE, A, 8, GPIO_OUT_LOW, NULL)
GPIO(USB_DM, A, 11, GPIO_ANALOG, NULL)
GPIO(USB_DP, A, 12, GPIO_ANALOG, NULL)