OSDN Git Service

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)
commit8ba9ff11632cb05d6f55555711d8425e32ee44b0
treecea1200782a3e1cd4e62d78d1f4dcf9e38679e3d
parent04384435fbcd2c5cb70b2e58c8b643822d7e337f
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]