1. 23 May, 2011 5 commits
    • Amber Jain's avatar
      OMAP: DSS2: Add support for NV12 format · 0d66cbb5
      Amber Jain authored
      Add the support for NV12 color format.
      Configure base address for UV component of NV12 color format.
      Change the way chroma scaling is handled for YUV formats on OMAP4 by enabling
      chroma-resampling for video pipeline and hence using FIR2 register set for
      scaling UV.
      Changes to _dispc_set_scaling(), because of the reason above, are:
      - call _dispc_set_scaling_common() to handle scaling for all color formats
        except for OMAP4 where it only handles scaling for RGB or Y-component
      - call _dispc_set_scaling_uv() for special handling required for UV
        component on OMAP4.
      - dispc_set_scaling_uv() also resets chroma-resampling bit for RGB color modes.
      
      Contains chroma scaling (_dispc_set_scaling_uv) design and implemented by
      Lajos Molnar <molnar@ti.com>
      Signed-off-by: default avatarAmber Jain <amber@ti.com>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      0d66cbb5
    • Amber Jain's avatar
      OMAP: DSS2: Add new registers for NV12 support · ab5ca071
      Amber Jain authored
      Add new registers specific to UV color component that are introduced in OMAP4.
      Add simple helper functions to configure the newly added registers.
      These new registers are mainly:
      - UV base address registers used specifically for NV12 color-format
      - FIR registers used for UV-color-component scaling on OMAP4
      - Accumulator registers used for UV-color-component scaling
      Add these new registers to save/restore and DUMPREG functions.
      Also add two new features for OMAP4:
      - FEAT_HANDLE_UV_SEPARATE - this is used on OMAP4 as UV color-component requires
        separate handling.
      - FEAT_ATTR2 - this is used on OMAP4 to configure new ATTRIBUTES2 register.
      Signed-off-by: default avatarAmber Jain <amber@ti.com>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      ab5ca071
    • Amber Jain's avatar
      OMAP: DSS2: Use for loop where ever possible in SR(), RR() · 5719d35c
      Amber Jain authored
      Use for loop instead of individual entries for OVL_FIR_COEF_H, OVL_FIR_COEF_HV,
      OVL_FIR_COEF_V and OVL_CONV_COEF in SR() and  RR().
      Signed-off-by: default avatarAmber Jain <amber@ti.com>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      5719d35c
    • Amber Jain's avatar
      OMAP: DSS2: Ensure non-zero FIR values are configured · ed14a3ce
      Amber Jain authored
      FIR values can never be zero as per TRM, and the current code writes zero
      when scaling is not used. It was not causing any problem as scaling was
      disabled when zero was written. Its still safer to not write zero to
      it in any case.
      Now we configure correct FIR values even when scaling is not used (i.e. set FIR
      to 1024 when scaling is not used), but the scaling enable bits are still kept
      off if the scaling is not needed.
      Signed-off-by: default avatarAmber Jain <amber@ti.com>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      ed14a3ce
    • Amber Jain's avatar
      OMAP: DSS2: Add new color formats for OMAP4 · f20e4220
      Amber Jain authored
      Add new color formats supported by OMAP4: NV12, RGBA16, RGBX16,
      ARGB16_1555, XRGB16_1555.
      NV12 color format is defined here, its support in DSS will be added separately.
      Signed-off-by: default avatarAmber Jain <amber@ti.com>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      f20e4220
  2. 19 May, 2011 5 commits
  3. 16 May, 2011 4 commits
  4. 12 May, 2011 15 commits
  5. 11 May, 2011 11 commits