diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2022-06-21 21:52:03 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-06-29 23:39:58 +0000 |
commit | 122ce784c72a2c623dd9615eda5d2ff6a0fe2c94 (patch) | |
tree | e6ecf93296b0e8d000b129b9e9093ae75fe85a53 /zephyr/Kconfig.throttle_ap | |
parent | 8d9a5c873a739513fe72c4e3b6ad28ce4e39279a (diff) | |
download | chrome-ec-122ce784c72a2c623dd9615eda5d2ff6a0fe2c94.tar.gz |
GPU: Add Nvidia GPU D-Notify driver
(Based on the driver written by Tim Wawrzynczak.)
This patch adds Nvidia GPU D-Notify driver. It asserts a GPIO, sends a
host event, and sets D-Notify level in shared memory when power
availability changes (i.e. AC plug/unplug, battery charge/discharge).
BUG=b:216485035
BRANCH=None
TEST=make run-nvidia_gpu && make buildall
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Change-Id: I231619157fe03fb357882540ffa34b4d48fba253
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3716794
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'zephyr/Kconfig.throttle_ap')
-rw-r--r-- | zephyr/Kconfig.throttle_ap | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/zephyr/Kconfig.throttle_ap b/zephyr/Kconfig.throttle_ap index ad5bfe9c77..74498a4e9f 100644 --- a/zephyr/Kconfig.throttle_ap +++ b/zephyr/Kconfig.throttle_ap @@ -58,4 +58,14 @@ config PLATFORM_EC_THROTTLE_AP_ON_BAT_LOW_VOLTAGE_THRESH default 0 endif +config PLATFORM_EC_GPU_NVIDIA + bool "Nvidia GPU supports throttling" + default n + help + Enable GPU throttling. When the GPU is throttled, a software (D-Notify) + and a hardware throttle (GPIO_NVIDIA_GPU_ACOFF_ODL) are enabled. A + hardware throttle will be automatically disabled after a fixed period + of time but a software throttle may remain and keep changing as the + situation changes. + endif # PLATFORM_EC_THROTTLE_AP |