video: tegra: host: add DT support
authorMayuresh Kulkarni <mkulkarni@nvidia.com>
Thu, 3 Jan 2013 15:14:03 +0000 (20:14 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 08:29:22 +0000 (01:29 -0700)
commit569698a55aafa6bd8e9d20654b8d924fa2ad6524
tree130287c8ff9eb8df29f660fd90004175dd34bb0e
parentf59c7eecb72b93dc0998cb5281d66e3b1566b838
video: tegra: host: add DT support

- this commit adds the infrastructure to parse and
allocate device from DT
- it also adds support to parse and add resources from DT
into the newly allocated device
- it also matches the device and drivers using .compatible
property
- of_platform_populate() assigns platform_bus as host1x parent, so
condition in nvhost_get_parent() was modified

bug 1041377

Change-Id: Iba99e27cdd67150b7a3853b8a75149fccea9f9ab
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/145937
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>
drivers/video/tegra/host/gr2d/gr2d.c
drivers/video/tegra/host/gr3d/gr3d.c
drivers/video/tegra/host/host1x/host1x.c
drivers/video/tegra/host/host1x/host1x.h
drivers/video/tegra/host/isp/isp.c
drivers/video/tegra/host/mpe/mpe.c
drivers/video/tegra/host/msenc/msenc.c
drivers/video/tegra/host/nvhost_acm.c
drivers/video/tegra/host/nvhost_syncpt.c
drivers/video/tegra/host/tsec/tsec.c
drivers/video/tegra/host/vi/vi.c