]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau: support for probing platform devices
authorAlexandre Courbot <acourbot@nvidia.com>
Thu, 26 Jun 2014 05:33:32 +0000 (14:33 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Sat, 9 Aug 2014 19:11:10 +0000 (05:11 +1000)
commitd22a949f4e5bb4f713e28c24cc70ca9b5397c8e1
treecea1200782a3e1cd4e62d78d1f4dcf9e38679e3d
parent80d6de2cacf8643e9afa7e3d24f7e673105b4018
drm/nouveau: support for probing platform devices

Add a platform driver for Nouveau devices declared using the device tree
or platform data. This driver currently supports GK20A on Tegra
platforms and is only compiled for these platforms if Nouveau is
enabled.

Nouveau will probe the chip type itself using the BOOT0 register, so all
this driver really needs to do is to make sure the module is powered and
its clocks active before calling nouveau_drm_platform_probe().

Heavily based on work done by Thierry Reding.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/Kconfig
drivers/gpu/drm/nouveau/Makefile
drivers/gpu/drm/nouveau/nouveau_drm.c
drivers/gpu/drm/nouveau/nouveau_drm.h
drivers/gpu/drm/nouveau/nouveau_platform.c [new file with mode: 0644]
drivers/gpu/drm/nouveau/nouveau_platform.h [new file with mode: 0644]