 db88c8f4e7
			
		
	
	
	db88c8f4e7
	
	
	
		
			
			DRM_GEM_CMA_HELPER is depend on HAVE_DMA_ATTRS, or it will break the
building. The related error (with allmodconfig under xtensa):
    CC [M]  drivers/gpu/drm/drm_gem_cma_helper.o
  drivers/gpu/drm/drm_gem_cma_helper.c: In function 'drm_gem_cma_create':
  drivers/gpu/drm/drm_gem_cma_helper.c:110:19: error: implicit declaration of function 'dma_alloc_writecombine' [-Werror=implicit-function-declaration]
    cma_obj->vaddr = dma_alloc_writecombine(drm->dev, size,
                     ^
  drivers/gpu/drm/drm_gem_cma_helper.c:110:17: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
    cma_obj->vaddr = dma_alloc_writecombine(drm->dev, size,
                   ^
  drivers/gpu/drm/drm_gem_cma_helper.c: In function 'drm_gem_cma_free_object':
  drivers/gpu/drm/drm_gem_cma_helper.c:193:3: error: implicit declaration of function 'dma_free_writecombine' [-Werror=implicit-function-declaration]
     dma_free_writecombine(gem_obj->dev->dev, cma_obj->base.size,
     ^
  drivers/gpu/drm/drm_gem_cma_helper.c: In function 'drm_gem_cma_mmap_obj':
  drivers/gpu/drm/drm_gem_cma_helper.c:330:8: error: implicit declaration of function 'dma_mmap_writecombine' [-Werror=implicit-function-declaration]
    ret = dma_mmap_writecombine(cma_obj->base.dev->dev, vma,
          ^
Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
		
	
			
		
			
				
	
	
		
			55 lines
		
	
	
	
		
			1.4 KiB
			
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
	
		
			1.4 KiB
			
		
	
	
	
		
			Text
		
	
	
	
	
	
| config DRM_IMX
 | |
| 	tristate "DRM Support for Freescale i.MX"
 | |
| 	select DRM_KMS_HELPER
 | |
| 	select DRM_KMS_FB_HELPER
 | |
| 	select VIDEOMODE_HELPERS
 | |
| 	select DRM_GEM_CMA_HELPER
 | |
| 	select DRM_KMS_CMA_HELPER
 | |
| 	depends on DRM && (ARCH_MXC || ARCH_MULTIPLATFORM) && HAVE_DMA_ATTRS
 | |
| 	depends on IMX_IPUV3_CORE
 | |
| 	help
 | |
| 	  enable i.MX graphics support
 | |
| 
 | |
| config DRM_IMX_FB_HELPER
 | |
| 	tristate "provide legacy framebuffer /dev/fb0"
 | |
| 	select DRM_KMS_CMA_HELPER
 | |
| 	depends on DRM_IMX
 | |
| 	help
 | |
| 	  The DRM framework can provide a legacy /dev/fb0 framebuffer
 | |
| 	  for your device. This is necessary to get a framebuffer console
 | |
| 	  and also for applications using the legacy framebuffer API
 | |
| 
 | |
| config DRM_IMX_PARALLEL_DISPLAY
 | |
| 	tristate "Support for parallel displays"
 | |
| 	select DRM_PANEL
 | |
| 	depends on DRM_IMX
 | |
| 	select VIDEOMODE_HELPERS
 | |
| 
 | |
| config DRM_IMX_TVE
 | |
| 	tristate "Support for TV and VGA displays"
 | |
| 	depends on DRM_IMX
 | |
| 	select REGMAP_MMIO
 | |
| 	help
 | |
| 	  Choose this to enable the internal Television Encoder (TVe)
 | |
| 	  found on i.MX53 processors.
 | |
| 
 | |
| config DRM_IMX_LDB
 | |
| 	tristate "Support for LVDS displays"
 | |
| 	depends on DRM_IMX && MFD_SYSCON
 | |
| 	help
 | |
| 	  Choose this to enable the internal LVDS Display Bridge (LDB)
 | |
| 	  found on i.MX53 and i.MX6 processors.
 | |
| 
 | |
| config DRM_IMX_IPUV3
 | |
| 	tristate
 | |
| 	depends on DRM_IMX
 | |
| 	depends on IMX_IPUV3_CORE
 | |
| 	default y if DRM_IMX=y
 | |
| 	default m if DRM_IMX=m
 | |
| 
 | |
| config DRM_IMX_HDMI
 | |
| 	tristate "Freescale i.MX DRM HDMI"
 | |
| 	select DRM_DW_HDMI
 | |
| 	depends on DRM_IMX
 | |
| 	help
 | |
| 	  Choose this if you want to use HDMI on i.MX6.
 |