summaryrefslogtreecommitdiff
path: root/board/agah
diff options
context:
space:
mode:
Diffstat (limited to 'board/agah')
-rw-r--r--board/agah/board.c5
-rw-r--r--board/agah/board.h3
-rw-r--r--board/agah/gpio.inc2
3 files changed, 9 insertions, 1 deletions
diff --git a/board/agah/board.c b/board/agah/board.c
index e4d48507ee..f37e1e504f 100644
--- a/board/agah/board.c
+++ b/board/agah/board.c
@@ -114,3 +114,8 @@ static int cc_blockseq(int argc, char *argv[])
return EC_SUCCESS;
}
DECLARE_CONSOLE_COMMAND(blockseq, cc_blockseq, "[on/off]", NULL);
+
+void gpu_overt_interrupt(enum gpio_signal signal)
+{
+ nvidia_gpu_over_temp(gpio_get_level(signal));
+}
diff --git a/board/agah/board.h b/board/agah/board.h
index d03aba2580..3b9aec23ec 100644
--- a/board/agah/board.h
+++ b/board/agah/board.h
@@ -223,6 +223,9 @@ void board_power_interrupt(enum gpio_signal signal);
/* IRQ for BJ plug/unplug. */
void bj_present_interrupt(enum gpio_signal signal);
+/* IRQ for over temperature. */
+void gpu_overt_interrupt(enum gpio_signal signal);
+
#endif /* !__ASSEMBLER__ */
#endif /* __CROS_EC_BOARD_H */
diff --git a/board/agah/gpio.inc b/board/agah/gpio.inc
index 7f38c87057..f382863952 100644
--- a/board/agah/gpio.inc
+++ b/board/agah/gpio.inc
@@ -27,6 +27,7 @@ GPIO_INT(USB_C2_BC12_INT_ODL, PIN(8, 3), GPIO_INT_FALLING, bc12_inter
GPIO_INT(USB_C2_TCPC_INT_ODL, PIN(A, 7), GPIO_INT_FALLING, tcpc_alert_event)
GPIO_INT(USB_C2_PPC_INT_ODL, PIN(7, 0), GPIO_INT_FALLING, ppc_interrupt)
GPIO_INT(BJ_ADP_PRESENT_ODL, PIN(5, 6), GPIO_INT_BOTH | GPIO_PULL_UP, bj_present_interrupt)
+GPIO_INT(GPU_OVERT_ODL, PIN(5, 0), GPIO_INT_BOTH, gpu_overt_interrupt)
/* USED GPIOs: */
GPIO(CCD_MODE_ODL, PIN(E, 5), GPIO_INPUT)
@@ -128,7 +129,6 @@ UNUSED(PIN(6, 6)) /* GPIO66 */
UNUSED(PIN(5, 7)) /* GPIO57/SER_IRQ/ESPI_ALERT_L */
UNUSED(PIN(8, 1)) /* GPIO81 */
UNUSED(PIN(7, 3)) /* GPIO73 */
-UNUSED(PIN(5, 0)) /* GPIO50 */
UNUSED(PIN(6, 0)) /* GPIO60 */
UNUSED(PIN(C, 2)) /* GPIOC2 */
UNUSED(PIN(E, 1)) /* GPIOE1 */