diff options
-rw-r--r-- | drivers/gpu/drm/Kconfig | 10 | ||||
-rw-r--r-- | drivers/gpu/drm/Makefile | 9 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_crtc.c | 1 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/Kconfig | 1 |
4 files changed, 16 insertions, 5 deletions
diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig index ebafad18e316..8c7309177c08 100644 --- a/drivers/gpu/drm/Kconfig +++ b/drivers/gpu/drm/Kconfig | |||
@@ -18,6 +18,13 @@ menuconfig DRM | |||
18 | details. You should also select and configure AGP | 18 | details. You should also select and configure AGP |
19 | (/dev/agpgart) support. | 19 | (/dev/agpgart) support. |
20 | 20 | ||
21 | config DRM_MODE_HELPER | ||
22 | tristate | ||
23 | depends on DRM | ||
24 | select FB | ||
25 | help | ||
26 | FB and CRTC helpers for kms drivers. | ||
27 | |||
21 | config DRM_TTM | 28 | config DRM_TTM |
22 | tristate | 29 | tristate |
23 | depends on DRM | 30 | depends on DRM |
@@ -48,7 +55,6 @@ config DRM_RADEON | |||
48 | select FB_CFB_FILLRECT | 55 | select FB_CFB_FILLRECT |
49 | select FB_CFB_COPYAREA | 56 | select FB_CFB_COPYAREA |
50 | select FB_CFB_IMAGEBLIT | 57 | select FB_CFB_IMAGEBLIT |
51 | select FB | ||
52 | select FRAMEBUFFER_CONSOLE if !EMBEDDED | 58 | select FRAMEBUFFER_CONSOLE if !EMBEDDED |
53 | select FW_LOADER | 59 | select FW_LOADER |
54 | help | 60 | help |
@@ -84,10 +90,10 @@ config DRM_I830 | |||
84 | config DRM_I915 | 90 | config DRM_I915 |
85 | tristate "i915 driver" | 91 | tristate "i915 driver" |
86 | depends on AGP_INTEL | 92 | depends on AGP_INTEL |
93 | select DRM_MODE_HELPER | ||
87 | select FB_CFB_FILLRECT | 94 | select FB_CFB_FILLRECT |
88 | select FB_CFB_COPYAREA | 95 | select FB_CFB_COPYAREA |
89 | select FB_CFB_IMAGEBLIT | 96 | select FB_CFB_IMAGEBLIT |
90 | select FB | ||
91 | select FRAMEBUFFER_CONSOLE if !EMBEDDED | 97 | select FRAMEBUFFER_CONSOLE if !EMBEDDED |
92 | # i915 depends on ACPI_VIDEO when ACPI is enabled | 98 | # i915 depends on ACPI_VIDEO when ACPI is enabled |
93 | # but for select to work, need to select ACPI_VIDEO's dependencies, ick | 99 | # but for select to work, need to select ACPI_VIDEO's dependencies, ick |
diff --git a/drivers/gpu/drm/Makefile b/drivers/gpu/drm/Makefile index 99071684de25..7e96d74242f3 100644 --- a/drivers/gpu/drm/Makefile +++ b/drivers/gpu/drm/Makefile | |||
@@ -10,12 +10,15 @@ drm-y := drm_auth.o drm_bufs.o drm_cache.o \ | |||
10 | drm_lock.o drm_memory.o drm_proc.o drm_stub.o drm_vm.o \ | 10 | drm_lock.o drm_memory.o drm_proc.o drm_stub.o drm_vm.o \ |
11 | drm_agpsupport.o drm_scatter.o ati_pcigart.o drm_pci.o \ | 11 | drm_agpsupport.o drm_scatter.o ati_pcigart.o drm_pci.o \ |
12 | drm_sysfs.o drm_hashtab.o drm_sman.o drm_mm.o \ | 12 | drm_sysfs.o drm_hashtab.o drm_sman.o drm_mm.o \ |
13 | drm_crtc.o drm_crtc_helper.o drm_modes.o drm_edid.o \ | 13 | drm_crtc.o drm_modes.o drm_edid.o \ |
14 | drm_info.o drm_debugfs.o drm_encoder_slave.o \ | 14 | drm_info.o drm_debugfs.o drm_encoder_slave.o |
15 | drm_fb_helper.o | ||
16 | 15 | ||
17 | drm-$(CONFIG_COMPAT) += drm_ioc32.o | 16 | drm-$(CONFIG_COMPAT) += drm_ioc32.o |
18 | 17 | ||
18 | drm_helper-y := drm_fb_helper.o drm_crtc_helper.o | ||
19 | |||
20 | obj-$(CONFIG_DRM_MODE_HELPER) += drm_helper.o | ||
21 | |||
19 | obj-$(CONFIG_DRM) += drm.o | 22 | obj-$(CONFIG_DRM) += drm.o |
20 | obj-$(CONFIG_DRM_TTM) += ttm/ | 23 | obj-$(CONFIG_DRM_TTM) += ttm/ |
21 | obj-$(CONFIG_DRM_TDFX) += tdfx/ | 24 | obj-$(CONFIG_DRM_TDFX) += tdfx/ |
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index c20fcdc65497..ba728ad77f2a 100644 --- a/drivers/gpu/drm/drm_crtc.c +++ b/drivers/gpu/drm/drm_crtc.c | |||
@@ -168,6 +168,7 @@ char *drm_get_encoder_name(struct drm_encoder *encoder) | |||
168 | encoder->base.id); | 168 | encoder->base.id); |
169 | return buf; | 169 | return buf; |
170 | } | 170 | } |
171 | EXPORT_SYMBOL(drm_get_encoder_name); | ||
171 | 172 | ||
172 | char *drm_get_connector_name(struct drm_connector *connector) | 173 | char *drm_get_connector_name(struct drm_connector *connector) |
173 | { | 174 | { |
diff --git a/drivers/gpu/drm/radeon/Kconfig b/drivers/gpu/drm/radeon/Kconfig index 2168d67f09a6..fdd9c8949922 100644 --- a/drivers/gpu/drm/radeon/Kconfig +++ b/drivers/gpu/drm/radeon/Kconfig | |||
@@ -1,6 +1,7 @@ | |||
1 | config DRM_RADEON_KMS | 1 | config DRM_RADEON_KMS |
2 | bool "Enable modesetting on radeon by default" | 2 | bool "Enable modesetting on radeon by default" |
3 | depends on DRM_RADEON | 3 | depends on DRM_RADEON |
4 | select DRM_MODE_HELPER | ||
4 | select DRM_TTM | 5 | select DRM_TTM |
5 | help | 6 | help |
6 | Choose this option if you want kernel modesetting enabled by default, | 7 | Choose this option if you want kernel modesetting enabled by default, |