mbox series

[0/3] rcar-vin: add support for UDS (Up Down Scaler)

Message ID 20180914021345.9277-1-niklas.soderlund+renesas@ragnatech.se (mailing list archive)
Headers show
Series rcar-vin: add support for UDS (Up Down Scaler) | expand

Message

Niklas Söderlund Sept. 14, 2018, 2:13 a.m. UTC
Hi,

This series adds support for Renesas R-Car Gen3 VIN Up Down Scaler 
(UDS). Some VIN instances have access to a often shared UDS which can be 
used to scale the captured image up or down. If the scaler is shared it 
can only be used exclusively by one VIN at a time, switching in runtime 
and detection if a UDS are in use is supported in this series. If the 
user tries to start a capture on a VIN which would require the use of a 
scaler but that scaler is in use -EBUSY is returned.

Patch 1/3 fix a format alignment issue found when working with UDS 
support. While patch 2/3 ands the UDS logic and 3/3 defines which VIN on 
which SoC have access to a UDS and how it's shared.

The series is based on top of media-tree/master and is tested on R-Car 
Gen3 H3, M3-W, M3-N and Gen2 Koelsch (checking for regressions as Gen2 
have no UDS).

Niklas Söderlund (3):
  rcar-vin: align format width with hardware limits
  rcar-vin: add support for UDS (Up Down Scaler)
  rcar-vin: declare which VINs can use a Up Down Scaler (UDS)

 drivers/media/platform/rcar-vin/rcar-core.c |  18 +++
 drivers/media/platform/rcar-vin/rcar-dma.c  | 134 +++++++++++++++++++-
 drivers/media/platform/rcar-vin/rcar-v4l2.c |  15 +++
 drivers/media/platform/rcar-vin/rcar-vin.h  |  24 ++++
 4 files changed, 185 insertions(+), 6 deletions(-)