1. 19 Dec, 2011 4 commits
    • Jingoo Han's avatar
      video: s3c-fb: add shadow register protect · ff8c9107
      Jingoo Han authored
      Shadow registers should be protectd whenever the registers are
      updated. Shadow registers are updated after SHADOWCON shadow
      register is cleared.
      Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
      Signed-off-by: default avatarFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
      ff8c9107
    • Jingoo Han's avatar
      video: s3c-fb: modify runtime pm functions · 35784b43
      Jingoo Han authored
      Runtime suspend and runtime resume are modified in order to
      reduce the complexity and improve the usability of runtime pm.
      After probe function, s3c-fb driver is not suspended until
      suspend or remove is called.
      
      The scheme is changed as follows:
       runtime_get is only called in probe and resume.
       runtime_put is only called in remove and suspend.
       open/close cannot call the runtime_get/put.
      
      Also, runtime_susepnd/resume are just called by runtime pm,
      not doing suspend/resume routine any longer. This is because
      open/close cannot call the runtime_get/put; the suspend/resume
      routine in runtime_suspend/resume were previously used when
      open and close were called.
      
      The name of s3c-fb dev_pm_ops is changed from s3cfb_pm_ops to
      s3c_fb_pm_ops in order to use more consistent naming.
      Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
      Signed-off-by: default avatarFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
      35784b43
    • Timur Tabi's avatar
      drivers/video: fsl-diu-fb: merge all allocated data into one block · ddd3d905
      Timur Tabi authored
      The Freescale DIU driver allocates multiple blocks of memory, including
      multiple DMA buffers.  Merge all of these blocks into one data structure.
      
      Specifically:
      
      1) struct fsl_diu_data now contains everything that needs to be allocated,
      except for the framebuffers themselves.  DMA'able objects are aligned correctly
      within the structure.
      
      2) struct diu_addr is no longer needed, because we don't have to manage
      multiple blocks of DMA memory.
      
      3) Since there's no diu_addr any more, macro DMA_ADDR is used to calculate
      the DMA address of any field in fsl_diu_data.
      
      4) Functions allocate_buf() and free_buf() are no longer needed, because we
      now assume that dma_alloc_coherent() will allocate a page-aligned block,
      and everything is properly aligned with fsl_diu_data already, so we no longer
      need to align any memory blocks ourselves.
      
      5) The "dummy" area descriptor is now defined separately from the other
      five ADs, so NUM_AOIS (previously called FSL_AOI_NUM) is now set to five
      instead of six.  Previously, all six were combined together to avoid a
      separate call to allocate_buf() just for the dummy AD.
      
      6) framebuffer_alloc() and framebuffer_release() are no longer used.  The
      framebuffer is initialized manually.
      
      7) Error handling is simplified since there's only one memory buffer
      allocated.
      Signed-off-by: default avatarTimur Tabi <timur@freescale.com>
      Signed-off-by: default avatarFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
      ddd3d905
    • Jingoo Han's avatar
      video: s3c-fb: set missing bitmask of enabled hardware window · 2d9ae7ac
      Jingoo Han authored
      This patch set missing bitmask of enabled hardware window which
      should be checked whenever the hardware window is enabled.
      Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
      Signed-off-by: default avatarFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
      2d9ae7ac
  2. 17 Dec, 2011 2 commits
  3. 16 Dec, 2011 22 commits
  4. 15 Dec, 2011 12 commits