tegra: video: host: reset syncpoints on host initialization
authorVarun Wadekar <vwadekar@nvidia.com>
Wed, 24 Nov 2010 08:42:30 +0000 (14:12 +0530)
committerErik Gilling <konkers@android.com>
Mon, 6 Dec 2010 22:18:12 +0000 (14:18 -0800)
Added syncpoints reset to host initialization, to synchronize h/w state
with shadow variables.

Change-Id: Ia0a3a644dc5b30ef98158906bcc96954d1c613ff
Author: Alex Frid <afrid@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
drivers/video/tegra/host/dev.c

index d98327978ed4477b8422b4fd7c13ec70b393d0b8..20a4eda0fb53e34e55c0026aace2021b5125c825 100644 (file)
@@ -713,6 +713,10 @@ static int __devinit 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]);
+
        nvhost_bus_register(host);
 
        nvhost_debug_init(host);