video: tegra: host: Implement TSEC exclusive access
authorTerje Bergstrom <tbergstrom@nvidia.com>
Tue, 16 Oct 2012 09:31:22 +0000 (12:31 +0300)
committerSimone Willett <swillett@nvidia.com>
Wed, 28 Nov 2012 22:15:35 +0000 (14:15 -0800)
commit608412ad44f2e778ad1391b30459058490caac54
tree6fc9a2ea0dfc6a987a5758e6c14a9547e2616056
parent3f037b69b9e33ef74fb117328206919ce91ce9df
video: tegra: host: Implement TSEC exclusive access

Add wiring to nvhost interrupt managemend so that TSEC driver can
handle TSEC irq.

TSEC driver adds a handshake with firmware. Firmware will set a state
variable to indicate that it wants exclusive host1x access, and
assert interrupt. TSEC driver will receive the interrupt and stop
CPUs for the duration of TSEC activity, and keeps polling the
variable. TSEC releases access by setting the state variable, at which
point TSEC driver will return system to normal.

TSEC sync point is also renumbered and renamed.

Bug 1164232
Bug 1157821

Change-Id: I9002e25769d9bef7206dce2bad4bf4f21bc60d28
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/159796
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Marvin Zhang <mzhang@nvidia.com>
Tested-by: Marvin Zhang <mzhang@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
drivers/video/tegra/host/chip_support.h
drivers/video/tegra/host/host1x/host1x_intr.c
drivers/video/tegra/host/host1x/hw_host1x01_sync.h
drivers/video/tegra/host/host1x/hw_host1x02_sync.h
drivers/video/tegra/host/nvhost_intr.c
drivers/video/tegra/host/nvhost_intr.h
drivers/video/tegra/host/t114/t114.c
drivers/video/tegra/host/t114/t114.h
drivers/video/tegra/host/tsec/hw_tsec.h
drivers/video/tegra/host/tsec/tsec.c
drivers/video/tegra/host/tsec/tsec.h