soc/tegra: cbb: Add driver for Tegra234 CBB 2.0
authorSumit Gupta <sumitg@nvidia.com>
Wed, 11 May 2022 20:16:50 +0000 (01:46 +0530)
committerThierry Reding <treding@nvidia.com>
Thu, 15 Sep 2022 10:41:36 +0000 (12:41 +0200)
commitfc2f151d23145f68a6748c4684a81b70823a489d
treea43b318d6548a794bca83b7b72df7c8fe76e4ab6
parentb7134422146692e096e807751656fc58ee1a717d
soc/tegra: cbb: Add driver for Tegra234 CBB 2.0

Adding driver to handle errors from CBB version 2.0 which is used in
Tegra234 SoC. The driver prints debug information about failed
transaction on receiving interrupt from the error notifier. The error
notifier collates the interrupts from various error monitor blocks and
presents a single interrupt to the SoC interrupt controller.

For timeout errors, the driver also does the lookup to find timed out
clients and prints their client ID. Drivers for hardware that needs to
be reset on timeout will have to call BPMP from the client IP's driver.
BPMP firmware will also clear the timeout bit after resetting the IP
so that next transactions are send to them after reset.

Signed-off-by: Sumit Gupta <sumitg@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/soc/tegra/Kconfig
drivers/soc/tegra/cbb/Makefile
drivers/soc/tegra/cbb/tegra234-cbb.c [new file with mode: 0644]