video: tegra: host: t30: Add syncpt/epp in ISP ch
Songhee Baek [Fri, 6 Jul 2012 18:26:40 +0000 (11:26 -0700)]
This change is for programming VI and EPP through ISP channel
to support RGB input and dual video capturing.

1. Added syncpt in the ISP channel to submit the channel.
2. Added epp clock to use VI2EPP for RGB capture.

Note: To use this channel, EPP should be free from 2D.

Bug 988546

Change-Id: I17fe278c9325aac2ea1e29cbaf50c8a4499d8551
Signed-off-by: Songhee Baek <sbaek@nvidia.com>
Reviewed-on: http://git-master/r/113965
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

drivers/video/tegra/host/t30/t30.c

index 4d042a9..0c8d626 100644 (file)
@@ -166,7 +166,11 @@ static struct nvhost_device tegra_isp01_device = {
        .resource = isp_resources_t20,
        .num_resources = ARRAY_SIZE(isp_resources_t20),
        .index          = 3,
-       .syncpts        = 0,
+       .syncpts        = BIT(NVSYNCPT_VI_ISP_2) | BIT(NVSYNCPT_VI_ISP_3) |
+                         BIT(NVSYNCPT_VI_ISP_4),
+       .clocks         = { {"epp", 0}
+                         },
+       .keepalive      = true,
        NVHOST_MODULE_NO_POWERGATE_IDS,
        NVHOST_DEFAULT_CLOCKGATE_DELAY,
        .moduleid       = NVHOST_MODULE_ISP,