]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
video: tegra: host: tsec: Add t186 bindings
authorArto Merilainen <amerilainen@nvidia.com>
Tue, 25 Nov 2014 16:18:57 +0000 (18:18 +0200)
committerArto Merilainen <amerilainen@nvidia.com>
Wed, 3 Dec 2014 14:01:29 +0000 (06:01 -0800)
This patch adds T186 bindings to TSEC driver.

Bug 1525992

Change-Id: Iddfa2925c37845a945957f89a4931285f63670d6
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/655427

drivers/video/tegra/host/tsec/Makefile
drivers/video/tegra/host/tsec/tsec.c

index 60657d4c1a93836bbc29204b9a40c645f52ff775..a99a462e736c167a2cced05399281ab045f0b9e0 100644 (file)
@@ -3,6 +3,10 @@ ccflags-y += -Idrivers/video/tegra/host
 ccflags-y += -Idrivers/video/tegra/dc
 ccflags-y += -Werror
 
+ifeq ($(CONFIG_ARCH_TEGRA_18x_SOC),y)
+ccflags-y += -I../kernel-t18x/drivers/video/tegra/host/
+endif
+
 nvhost-tsec-objs  = \
        tsec.o
 
index 272313140f9e9d3405d3f42c210d6c090de9517f..ca9b2beaef769f56d659db60fbabf65f8ea82a49 100644 (file)
 #include "tsec_methods.h"
 #include "tsec_drv.h"
 
+#ifdef CONFIG_ARCH_TEGRA_18x_SOC
+#include "t186/t186.h"
+#endif
+
 #define TSEC_IDLE_TIMEOUT_DEFAULT      10000   /* 10 milliseconds */
 #define TSEC_IDLE_CHECK_PERIOD         10      /* 10 usec */
 #define TSEC_KEY_LENGTH                        16
@@ -922,6 +926,14 @@ static struct of_device_id tegra_tsec_of_match[] = {
        { .name = "tsecb",
                .compatible = "nvidia,tegra210-tsec",
                .data = (struct nvhost_device_data *)&t21_tsecb_info },
+#endif
+#ifdef CONFIG_ARCH_TEGRA_18x_SOC
+       { .name = "tsec",
+               .compatible = "nvidia,tegra186-tsec",
+               .data = (struct nvhost_device_data *)&t18_tsec_info },
+       { .name = "tsecb",
+               .compatible = "nvidia,tegra186-tsec",
+               .data = (struct nvhost_device_data *)&t18_tsecb_info },
 #endif
        { },
 };