From f374e1804ea3bfd7c4c31c5c58df403d9ca60802 Mon Sep 17 00:00:00 2001 From: Mikko Perttunen Date: Thu, 29 Sep 2022 13:36:50 +0300 Subject: [PATCH] drm/tegra: Add OFA support Add support for the optical flow accelerator. Implementation is the same as for other Falcons except that we omit some legacy things since the engine only exists from T234 onwards, and the addition of having to initialize the OFA's safety RAM before boot. Signed-off-by: Mikko Perttunen Change-Id: I9612e82a116cc76be492a0c533afce67c42f6a2c Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2784964 Reviewed-by: Jonathan Hunter GVS: Gerrit_Virtual_Submit --- drivers/gpu/host1x/dev.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/host1x/dev.c b/drivers/gpu/host1x/dev.c index 3449aa5f..acf5130d 100644 --- a/drivers/gpu/host1x/dev.c +++ b/drivers/gpu/host1x/dev.c @@ -340,6 +340,18 @@ static const struct host1x_sid_entry tegra234_sid_table[] = { .offset = 0x0030, .limit = 0x0034 }, + { + /* OFA channel */ + .base = 0x1768, + .offset = 0x30, + .limit = 0x30, + }, + { + /* OFA MMIO */ + .base = 0x16e8, + .offset = 0x34, + .limit = 0x34, + }, }; static const struct host1x_info host1x08_info = {