diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2022-06-29 23:23:32 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-07-01 17:07:25 +0000 |
commit | 36b2c00b57094b66353d4c8ee7ec4b481bebe7db (patch) | |
tree | 1cf3f5a7241671c923f8ffe9fa42c6db6d7a33d0 /board | |
parent | f874b7358478fb9496f6a855ee5917c7504b780a (diff) | |
download | chrome-ec-36b2c00b57094b66353d4c8ee7ec4b481bebe7db.tar.gz |
Agah: Enable GPU over temperature notification
This patch makes the EC trigger GPU over temperature notification when
GPU_OVERT_ODL is asserted.
BUG=b:216485035
BRANCH=None
TEST=None
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Change-Id: I5b52166fa7d4bea233502ed6b67a423512f8aba5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3735919
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/agah/board.c | 5 | ||||
-rw-r--r-- | board/agah/board.h | 3 | ||||
-rw-r--r-- | board/agah/gpio.inc | 2 |
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 */ |