video: tegra: host: change vic03 init strategy
authorMayuresh Kulkarni <mkulkarni@nvidia.com>
Wed, 24 Jul 2013 10:53:36 +0000 (15:53 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:34:08 +0000 (13:34 -0700)
commit64e838682919b818b080f8b86cddee06121bbd60
tree42bd99625c971bc502262c4dff0a0108d1c14b20
parent8662785af57a12b7d2e2c2387903f94d2d5a74a1
video: tegra: host: change vic03 init strategy

- always call vic03_boot from nvhost_vic03_init.
- this is to ensure that we load a new instance of firmware in it.
- if suppose, before call to nvhost_vic03_deinit, it gets power-gated then
runtime pm call-back will restore it
- if user space closes the channel before it is power-gated,
it gets ready for next channel open
- add a flag to indicate that vic is booted and do not attempt
to reboot it
- fix misc issues (related to pin/unpin and cleanup)

Change-Id: I2d40aec16f21cf3c556988373de7e374663f4d0b
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/253398
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
drivers/video/tegra/host/vic03/vic03.c
drivers/video/tegra/host/vic03/vic03.h