summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2016-06-17 09:43:57 -0600
committerSimon Glass <sjg@chromium.org>2016-06-19 17:05:55 -0600
commit0f67e2395be44db2c1bef17b6ada2e46221908ed (patch)
tree51733116f48f2b63eb690c5d6debdaa14f554490 /arch
parent769d52ef0f04812fd65ef2f3ab921ad2e8562ab1 (diff)
downloadu-boot-imx-0f67e2395be44db2c1bef17b6ada2e46221908ed.zip
u-boot-imx-0f67e2395be44db2c1bef17b6ada2e46221908ed.tar.gz
u-boot-imx-0f67e2395be44db2c1bef17b6ada2e46221908ed.tar.bz2
mailbox: add Tegra186 HSP driver
Tegra186's HSP module implements doorbells, mailboxes, semaphores, and shared interrupts. This patch provides a driver for HSP, and hooks it into the mailbox API. Currently, only doorbells are supported. Signed-off-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/dts/tegra186.dtsi13
-rw-r--r--arch/arm/mach-tegra/Kconfig2
2 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/dts/tegra186.dtsi b/arch/arm/dts/tegra186.dtsi
index 18b6a26..fce34fa6 100644
--- a/arch/arm/dts/tegra186.dtsi
+++ b/arch/arm/dts/tegra186.dtsi
@@ -1,6 +1,7 @@
#include "skeleton.dtsi"
#include <dt-bindings/gpio/tegra-gpio.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/mailbox/tegra-hsp.h>
/ {
compatible = "nvidia,tegra186";
@@ -40,6 +41,18 @@
status = "disabled";
};
+ hsp: hsp@3c00000 {
+ compatible = "nvidia,tegra186-hsp";
+ reg = <0x0 0x03c00000 0x0 0xa0000>;
+ interrupts = <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>;
+ nvidia,num-SM = <0x8>;
+ nvidia,num-AS = <0x2>;
+ nvidia,num-SS = <0x2>;
+ nvidia,num-DB = <0x7>;
+ nvidia,num-SI = <0x8>;
+ #mbox-cells = <1>;
+ };
+
gpio@c2f0000 {
compatible = "nvidia,tegra186-gpio-aon";
reg-names = "security", "gpio";
diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfig
index b18a12e..f4affa5 100644
--- a/arch/arm/mach-tegra/Kconfig
+++ b/arch/arm/mach-tegra/Kconfig
@@ -56,8 +56,10 @@ config TEGRA210
config TEGRA186
bool "Tegra186 family"
+ select DM_MAILBOX
select TEGRA186_GPIO
select TEGRA_ARMV8_COMMON
+ select TEGRA_HSP
endchoice