1. 31 3月, 2015 1 次提交
    • P
      drm/imx: imx-ldb: add drm_panel support · 751e2676
      Philipp Zabel 提交于
      This patch allows to optionally attach the lvds-channel to a panel
      supported by a drm_panel driver using of-graph bindings, instead of
      supplying the modes via display-timings in the device tree.
      
      This depends on of_graph_get_port_by_id and uses the OF graph to
      link the optional DRM panel to the LDB lvds-channel. The output
      port number is 1 on devices without the 4-port input multiplexer
      (i.MX5) and 4 on devices with the mux (i.MX6).
      
      Before:
      
      	ldb {
      		...
      
      		lvds-channel@0 {
      			...
      
      			display-timings {
      				native-timing = <&timing1>;
      				timing1: etm0700g0dh6 {
      					hactive = <800>;
      					vactive = <480>;
      					clock-frequency = <33260000>;
      					hsync-len = <128>;
      					hback-porch = <88>;
      					hfront-porch = <40>;
      					vsync-len = <2>;
      					vback-porch = <33>;
      					vfront-porch = <10>;
      					hsync-active = <0>;
      					vsync-active = <0>;
      					...
      				};
      			};
      			...
      		};
      	};
      
      After:
      	ldb {
      		...
      
      		lvds-channel@0 {
      			...
      
      			port@4 {
      				reg = <4>;
      
      				lvds_out: endpoint {
      					remote_endpoint = <&panel_in>;
      				};
      			};
      		};
      	};
      
      	panel {
      		compatible = "edt,etm0700g0dh6", "simple-panel";
      		...
      
      		port {
      			panel_in: endpoint {
      				remote-endpoint = <&lvds_out>;
      			};
      		};
      	};
      
      [Fixed build error due to missing select on DRM_PANEL --rmk]
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
      751e2676
  2. 03 2月, 2015 1 次提交
    • C
      drm: Kconfig: Let all DRM_GEM_CMA_HELPER related macros depend on HAVE_DMA_ATTRS · db88c8f4
      Chen Gang S 提交于
      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: NChen Gang <gang.chen.5i5j@gmail.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      db88c8f4
  3. 08 1月, 2015 1 次提交
  4. 26 11月, 2014 1 次提交
    • P
      drm: imx: Move imx-drm driver out of staging · 6556f7f8
      Philipp Zabel 提交于
      The imx-drm driver was put into staging mostly for the following reasons,
      all of which have been addressed or superseded:
       - convert the irq driver to use linear irq domains
       - work out the device tree bindings, this lead to the common of_graph
         bindings being used
       - factor out common helper functions, this mostly resulted in the
         component framework and drm of_graph helpers.
      
      Before adding new fixes, and certainly before adding new features,
      move it into its proper place below drivers/gpu/drm.
      Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      6556f7f8
  5. 04 11月, 2014 1 次提交
  6. 04 6月, 2014 1 次提交
  7. 28 2月, 2014 1 次提交
    • P
      imx-drm: parallel-display: Add drm_panel support · 628f435b
      Philipp Zabel 提交于
      This patch allows to optionally attach the parallel-display to a panel
      supported by a drm_panel driver instead of supplying the modes via
      device tree.
      
      Before:
      	parallel-display {
      		compatible = "fsl,imx-parallel-display";
      		...
      
      		display-timings {
      			native-timing = <&timing1>;
      			timing1: etm0700g0dh6 {
      				hactive = <800>;
      				vactive = <480>;
      				clock-frequency = <33260000>;
      				hsync-len = <128>;
      				hback-porch = <88>;
      				hfront-porch = <40>;
      				vsync-len = <2>;
      				vback-porch = <33>;
      				vfront-porch = <10>;
      				hsync-active = <0>;
      				vsync-active = <0>;
      				...
      			};
      		};
      		...
      	};
      
      After:
      	parallel-display {
      		compatible = "fsl,imx-parallel-display";
      		fsl,panel = <&panel>;
      		...
      	};
      
      	panel: panel {
      		compatible = "edt,etm0700g0dh6", "simple-panel";
      	};
      Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      628f435b
  8. 09 12月, 2013 1 次提交
  9. 12 10月, 2013 1 次提交
    • D
      drm: Add separate Kconfig option for fbdev helpers · 92b6f89f
      Daniel Vetter 提交于
      For drivers which might want to disable fbdev legacy support.
      
      Select the new option in all drivers for now, so this shouldn't result
      in any change. Drivers need some work anyway to make fbdev support
      optional (if they have it implemented, that is), so the recommended
      way to expose this is by adding per-driver options. At least as long
      as most drivers don't support disabling the fbdev support.
      
      v2: Update for new drm drivers msm and rcar-du. Note that Rob's msm
      driver can already take advantage of this, which allows us to build
      msm without any fbdev depencies in the kernel!
      
      v3: Move the MODULE_* stuff from the fbdev helper file to
      drm_crtc_helper.c.
      
      Cc: David Herrmann <dh.herrmann@gmail.com>
      Cc: Rob Clark <robdclark@gmail.com>
      Reviewed-by: NRob Clark <robdclark@gmail.com>
      Acked-by: NDave Airlie <airlied@linux.ie>
      Reviewed-by: NChon Ming Lee <chon.ming.lee@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      92b6f89f
  10. 02 8月, 2013 1 次提交
  11. 24 7月, 2013 2 次提交
  12. 19 6月, 2013 1 次提交
  13. 22 5月, 2013 1 次提交
  14. 17 5月, 2013 1 次提交
    • A
      staging/drm: imx: add missing dependencies · fcce7680
      Arnd Bergmann 提交于
      The imx DRM driver needs a couple of extra Kconfig dependencies
      to avoid random build failures:
      
      drivers/staging/imx-drm/ipuv3-crtc.c:448:
       undefined reference to `ipu_idmac_put'
       drivers/staging/imx-drm/ipuv3-crtc.c:450: undefined reference to
       `ipu_dmfc_put' drivers/staging/imx-drm/ipuv3-crtc.c:452:
       undefined reference to `ipu_dp_put'
       drivers/staging/imx-drm/ipuv3-crtc.c:454: undefined reference to
       `ipu_di_put'
      drivers/built-in.o: In function `ipu_probe':
       :(.text+0x4b4174): undefined reference to `device_reset'
      drivers/built-in.o: In function `imx_tve_probe':
       drivers/staging/imx-drm/imx-tve.c:648: undefined reference to
       `devm_regmap_init_mmio_clk'
      drivers/built-in.o: In function
       `imx_pd_connector_get_modes':
       drivers/staging/imx-drm/parallel-display.c:78: undefined
       reference to `of_get_drm_display_mode'
      
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Shawn Guo <shawn.guo@linaro.org>
      Cc: Philipp Zabel <p.zabel@pengutronix.de>
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      fcce7680
  15. 10 4月, 2013 1 次提交
  16. 31 10月, 2012 1 次提交
  17. 22 9月, 2012 4 次提交