soc: tegra: cbb: Add driver for Tegra234 CBB2.0
PATCH 7/8 soc: tegra: cbb: Add driver for Tegra234 CBB2.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 Error Notifier. 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 timedout clients and prints client id. The IP's who want to reset if there is a 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.
--- drivers/soc/tegra/Kconfig | 2 +- drivers/soc/tegra/cbb/Makefile | 1 + drivers/soc/tegra/cbb/tegra234-cbb.c | 738 +++++++++++++++++++++++++++ include/soc/tegra/tegra234-cbb.h | 340 ++++++++++++ 4 files changed, 1080 insertions(+), 1 deletion(-) create mode 100644 drivers/soc/tegra/cbb/tegra234-cbb.c create mode 100644 include/soc/tegra/tegra234-cbb.h
drivers/soc/tegra/Kconfig +1 -1
@@ -164,7 +164,7 @@ config SOC_TEGRA30_VOLTAGE_COUPLER config SOC_TEGRA_CBB tristate "Tegra driver to handle error from CBB" - depends on ARCH_TEGRA_194_SOC + depends on ARCH_TEGRA_194_SOC || ARCH_TEGRA_234_SOC default y help Support for handling error from Tegra Control Backbone(CBB).
drivers/soc/tegra/cbb/Makefile +1 -0
@@ -5,4 +5,5 @@ ifdef CONFIG_SOC_TEGRA_CBB obj-y += tegra-cbb.o obj-$(CONFIG_ARCH_TEGRA_194_SOC) += tegra194-cbb.o +obj-$(CONFIG_ARCH_TEGRA_234_SOC) += tegra234-cbb.o endif
drivers/soc/tegra/cbb/tegra234-cbb.c new file +738 -0
738 lines not on this page · raw message
include/soc/tegra/tegra234-cbb.h new file +340 -0
340 lines not on this page · raw message
Signature · 1 line
2.17.1