1. 29 12月, 2011 10 次提交
  2. 21 12月, 2011 5 次提交
    • J
      drm/exynos: Add plane support with fimd · 864ee9e6
      Joonyoung Shim 提交于
      The exynos fimd supports 5 window overlays. Only one window overlay of
      fimd is used by the crtc, so we need plane feature to use the rest
      window overlays.
      
      This creates one ioctl exynos specific - DRM_EXYNOS_PLANE_SET_ZPOS, it
      is the ioctl to decide for user to assign which window overlay.
      Signed-off-by: NJoonyoung Shim <jy0922.shim@samsung.com>
      Signed-off-by: NInki Dae <inki.dae@samsung.com>
      Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
      864ee9e6
    • J
      drm/exynos: add runtime pm feature for fimd · cb91f6a0
      Joonyoung Shim 提交于
      This adds runtime PM feature for fimd. The runtime PM functions control
      clocks for fimd and prevent to access the register of fimd for vblank
      when clock is turned off by suspend of runtime PM.
      Signed-off-by: NJoonyoung Shim <jy0922.shim@samsung.com>
      Signed-off-by: NInki Dae <inki.dae@samsung.com>
      Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
      cb91f6a0
    • I
      drm/exynos: updated crtc and encoder dpms framework. · ec05da95
      Inki Dae 提交于
      With DPMS ON and OFF requests, crtc dpms would be in charge of
      just only device power such as fimd or hdmi and encoder dpms
      in charge of device setting(mode setting and register updating)
      and also lcd panel and digital TV power.
      Signed-off-by: NInki Dae <inki.dae@samsung.com>
      Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
      ec05da95
    • J
      drm/exynos: Use struct drm_mode_fb_cmd2 · a794d57d
      Joonyoung Shim 提交于
      The exynos drm also should use struct drm_mode_fb_cmd2 by changes of
      308e5bcb commit(drm: add an fb creation
      ioctl that takes a pixel format v5).
      Signed-off-by: NJoonyoung Shim <jy0922.shim@samsung.com>
      Signed-off-by: NInki Dae <inki.dae@samsung.com>
      Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
      a794d57d
    • J
      drm/exynos: Fix compile errors · ac2bdf73
      Joonyoung Shim 提交于
      This compile errors occur by changes of
      e08e96de commit, so exynos drm should
      apply this changes.
      
        CC      drivers/gpu/drm/exynos/exynos_drm_drv.o
      drivers/gpu/drm/exynos/exynos_drm_drv.c:185: warning: braces around scalar initializer
      drivers/gpu/drm/exynos/exynos_drm_drv.c:185: warning: (near initialization for 'exynos_drm_driver.fops')
      drivers/gpu/drm/exynos/exynos_drm_drv.c:186: error: field name not in record or union initializer
      drivers/gpu/drm/exynos/exynos_drm_drv.c:186: error: (near initialization for 'exynos_drm_driver.fops')
      drivers/gpu/drm/exynos/exynos_drm_drv.c:186: warning: initialization from incompatible pointer type
      drivers/gpu/drm/exynos/exynos_drm_drv.c:187: error: field name not in record or union initializer
      drivers/gpu/drm/exynos/exynos_drm_drv.c:187: error: (near initialization for 'exynos_drm_driver.fops')
      drivers/gpu/drm/exynos/exynos_drm_drv.c:187: warning: excess elements in scalar initializer
      drivers/gpu/drm/exynos/exynos_drm_drv.c:187: warning: (near initialization for 'exynos_drm_driver.fops')
      drivers/gpu/drm/exynos/exynos_drm_drv.c:188: error: field name not in record or union initializer
      drivers/gpu/drm/exynos/exynos_drm_drv.c:188: error: (near initialization for 'exynos_drm_driver.fops')
      drivers/gpu/drm/exynos/exynos_drm_drv.c:188: warning: excess elements in scalar initializer
      drivers/gpu/drm/exynos/exynos_drm_drv.c:188: warning: (near initialization for 'exynos_drm_driver.fops')
      drivers/gpu/drm/exynos/exynos_drm_drv.c:189: error: field name not in record or union initializer
      drivers/gpu/drm/exynos/exynos_drm_drv.c:189: error: (near initialization for 'exynos_drm_driver.fops')
      drivers/gpu/drm/exynos/exynos_drm_drv.c:189: warning: excess elements in scalar initializer
      drivers/gpu/drm/exynos/exynos_drm_drv.c:189: warning: (near initialization for 'exynos_drm_driver.fops')
      drivers/gpu/drm/exynos/exynos_drm_drv.c:190: error: field name not in record or union initializer
      drivers/gpu/drm/exynos/exynos_drm_drv.c:190: error: (near initialization for 'exynos_drm_driver.fops')
      drivers/gpu/drm/exynos/exynos_drm_drv.c:190: warning: excess elements in scalar initializer
      drivers/gpu/drm/exynos/exynos_drm_drv.c:190: warning: (near initialization for 'exynos_drm_driver.fops')
      drivers/gpu/drm/exynos/exynos_drm_drv.c:191: error: field name not in record or union initializer
      drivers/gpu/drm/exynos/exynos_drm_drv.c:191: error: (near initialization for 'exynos_drm_driver.fops')
      drivers/gpu/drm/exynos/exynos_drm_drv.c:191: warning: excess elements in scalar initializer
      drivers/gpu/drm/exynos/exynos_drm_drv.c:191: warning: (near initialization for 'exynos_drm_driver.fops')
      drivers/gpu/drm/exynos/exynos_drm_drv.c:192: error: field name not in record or union initializer
      drivers/gpu/drm/exynos/exynos_drm_drv.c:192: error: (near initialization for 'exynos_drm_driver.fops')
      drivers/gpu/drm/exynos/exynos_drm_drv.c:192: warning: excess elements in scalar initializer
      drivers/gpu/drm/exynos/exynos_drm_drv.c:192: warning: (near initialization for 'exynos_drm_driver.fops')
      make[4]: *** [drivers/gpu/drm/exynos/exynos_drm_drv.o] Error 1
      make[3]: *** [drivers/gpu/drm/exynos] Error 2
      make[2]: *** [drivers/gpu/drm] Error 2
      make[1]: *** [drivers/gpu] Error 2
      make: *** [drivers] Error 2
      Signed-off-by: NJoonyoung Shim <jy0922.shim@samsung.com>
      Signed-off-by: NInki Dae <inki.dae@samsung.com>
      Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
      ac2bdf73
  3. 20 12月, 2011 1 次提交
  4. 17 11月, 2011 2 次提交
  5. 15 11月, 2011 14 次提交
  6. 18 10月, 2011 7 次提交
  7. 05 10月, 2011 1 次提交
    • I
      DRM: add DRM Driver for Samsung SoC EXYNOS4210. · 1c248b7d
      Inki Dae 提交于
      This patch is a DRM Driver for Samsung SoC Exynos4210 and now enables
      only FIMD yet but we will add HDMI support also in the future.
      
      this patch is based on git repository below:
      git://people.freedesktop.org/~airlied/linux.git
      branch name: drm-next
      commit-id: 88ef4e3f
      
      you can refer to our working repository below:
      http://git.infradead.org/users/kmpark/linux-2.6-samsung
      branch name: samsung-drm
      
      We tried to re-use lowlevel codes of the FIMD driver(s3c-fb.c
      based on Linux framebuffer) but couldn't so because lowlevel codes
      of s3c-fb.c are included internally and so FIMD module of this driver has
      its own lowlevel codes.
      
      We used GEM framework for buffer management and DMA APIs(dma_alloc_*)
      for buffer allocation so we can allocate physically continuous memory
      for DMA through it and also we could use CMA later if CMA is applied to
      mainline.
      
      Refer to this link for CMA(Continuous Memory Allocator):
      http://lkml.org/lkml/2011/7/20/45
      
      this driver supports only physically continuous memory(non-iommu).
      
      Links to previous versions of the patchset:
      v1: < https://lwn.net/Articles/454380/ >
      v2: < http://www.spinics.net/lists/kernel/msg1224275.html >
      v3: < http://www.spinics.net/lists/dri-devel/msg13755.html >
      v4: < http://permalink.gmane.org/gmane.comp.video.dri.devel/60439 >
      v5: < http://comments.gmane.org/gmane.comp.video.dri.devel/60802 >
      
      Changelog v2:
      DRM: add DRM_IOCTL_SAMSUNG_GEM_MMAP ioctl command.
      
          this feature maps user address space to physical memory region
          once user application requests DRM_IOCTL_SAMSUNG_GEM_MMAP ioctl.
      
      DRM: code clean and add exception codes.
      
      Changelog v3:
      DRM: Support multiple irq.
      
          FIMD and HDMI have their own irq handler but DRM Framework can regiter
          only one irq handler this patch supports mutiple irq for Samsung SoC.
      
      DRM: Consider modularization.
      
          each DRM, FIMD could be built as a module.
      
      DRM: Have indenpendent crtc object.
      
          crtc isn't specific to SoC Platform so this patch gets a crtc
          to be used as common object.
          created crtc could be attached to any encoder object.
      
      DRM: code clean and add exception codes.
      
      Changelog v4:
      DRM: remove is_defult from samsung_fb.
      
          is_default isn't used for default framebuffer.
      
      DRM: code refactoring to fimd module.
          this patch is be considered with multiple display objects and
          would use its own request_irq() to register a irq handler instead of
          drm framework's one.
      
      DRM: remove find_samsung_drm_gem_object()
      
      DRM: move kernel private data structures and definitions to driver folder.
      
          samsung_drm.h would contain only public information for userspace
          ioctl interface.
      
      DRM: code refactoring to gem modules.
          buffer module isn't dependent of gem module anymore.
      
      DRM: fixed security issue.
      
      DRM: remove encoder porinter from specific connector.
      
          samsung connector doesn't need to have generic encoder.
      
      DRM: code clean and add exception codes.
      
      Changelog v5:
      DRM: updated fimd(display controller) driver.
          added various pixel formats, color key and pixel blending features.
      
      DRM: removed end_buf_off from samsung_drm_overlay structure.
          this variable isn't used and end buffer address would be
          calculated by each sub driver.
      
      DRM: use generic function for mmap_offset.
          replaced samsung_drm_gem_create_mmap_offset() and
          samsung_drm_free_mmap_offset() with generic ones applied
          to mainline recentrly.
      
      DRM: removed unnecessary codes and added exception codes.
      
      DRM: added comments and code clean.
      
      Changelog v6:
      DRM: added default config options.
      
      DRM: added padding for 64-bit align.
      
      DRM: changed prefix 'samsung' to 'exynos'
      Signed-off-by: NInki Dae <inki.dae@samsung.com>
      Signed-off-by: NJoonyoung Shim <jy0922.shim@samsung.com>
      Signed-off-by: NSeung-Woo Kim <sw0312.kim@samsung.com>
      Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
      Reviewed-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      Reviewed-by: NDave Airlie <airlied@redhat.com>
      Reviewed-by: NRob Clark <robdclark@gmail.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      1c248b7d