summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Frid <afrid@nvidia.com>2010-10-02 23:12:22 -0700
committerYu-Huan Hsu <yhsu@nvidia.com>2010-10-08 12:54:38 -0700
commit7fcc229e1b68bf399311c8ae73d6a307aba7ad18 (patch)
treec938e24d22fc6290e73243595037b4e7d6c250db
parent73b3f1c4b0552d39e41abb50a3aaf3b778fefcc7 (diff)
[ARM/tegra] nvhost: Reset syncpoints on host initialization.
Added syncpoints reset to host initialization, to synchronize h/w state with shadow variables. Bug 743910 Change-Id: I09420fe2fb85b0e79f0e5d11ade8515e28e96910 Reviewed-on: http://git-master/r/8038 Tested-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Andrew Howe <ahowe@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
-rw-r--r--drivers/video/tegra/host/nvhost_dev.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/tegra/host/nvhost_dev.c b/drivers/video/tegra/host/nvhost_dev.c
index 334e9b6acdb9..c6be45647e2b 100644
--- a/drivers/video/tegra/host/nvhost_dev.c
+++ b/drivers/video/tegra/host/nvhost_dev.c
@@ -707,6 +707,10 @@ static int __init nvhost_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, host);
+ clk_enable(host->mod.clk[0]);
+ nvhost_syncpt_reset(&host->syncpt);
+ clk_disable(host->mod.clk[0]);
+
dev_info(&pdev->dev, "initialized\n");
return 0;