video: tegra: host: remove nvhost_channel from nvhost_master
authorMayuresh Kulkarni <mkulkarni@nvidia.com>
Mon, 14 May 2012 09:08:22 +0000 (14:08 +0530)
committerRohan Somvanshi <rsomvanshi@nvidia.com>
Thu, 17 May 2012 13:13:18 +0000 (06:13 -0700)
commita3b39fa6020e7c53236a50bbda1ca0a2ab78b2c2
tree26fcb40c85645ef6ad1004ee65a3e28da8061288
parente6ce6a3069e2a83c0343d6de8656aee95c6b49f3
video: tegra: host: remove nvhost_channel from nvhost_master

- nvhost_master holds a reference to all the channels for
a chip architecture
- however, nvhost_master is a private data of host1x hardware
device. so it should contain only members needed by host1x
hardware device
- add chip specific apis to allocate and free channels
- this will also help to remove the static binding between
nvhost_device and a channel per SoC in future

Bug 871237

Change-Id: I2148db57b995b4cb60954ebb6e670f588552eca4
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/91687
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
drivers/video/tegra/host/bus_client.c
drivers/video/tegra/host/chip_support.h
drivers/video/tegra/host/dev.c
drivers/video/tegra/host/dev.h
drivers/video/tegra/host/nvhost_channel.c
drivers/video/tegra/host/nvhost_channel.h
drivers/video/tegra/host/t20/t20.c
drivers/video/tegra/host/t30/t30.c