]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: tegra186: Add HTE support
authorDipen Patel <dipenp@nvidia.com>
Fri, 22 Apr 2022 20:52:17 +0000 (13:52 -0700)
committerThierry Reding <treding@nvidia.com>
Wed, 4 May 2022 09:06:13 +0000 (11:06 +0200)
commit345f4bf5d91d4f76f36c2b7807f47a503210c516
tree58904b5ce82f2c9be040697c43bc02f1fc7d4962
parentb1af0138cd569f2bf39fdc3f80f2a68fe5bcaa13
gpio: tegra186: Add HTE support

Tegra194 AON GPIO controller with the use of its internal hardware
timestamping engine (HTE), also known as GTE, can timestamp GPIO lines
through system counter. This patch implements enable/disable callbacks
for the GPIO controller. In enable call, it will set timestamp function
bit and GPIO line rising/falling edges in the config register. In
disable call, it restores the state.

Signed-off-by: Dipen Patel <dipenp@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpio/gpio-tegra186.c