Skip to content

Commit

Permalink
dma: xilinx: Add support for BGR8 color format in Framebuffer
Browse files Browse the repository at this point in the history
Add support for BGR8 color format (Blue in LSB, 8 bits per component)
in Framebuffer.

Signed-off-by: Vishal Sagar <vsagar@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
  • Loading branch information
vishals-xlnx authored and Michal Simek committed Mar 9, 2018
1 parent 1492e0f commit 59643ff
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions drivers/dma/xilinx/xilinx_frmbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
#define XILINX_FRMBUF_FMT_BGRA8 26
#define XILINX_FRMBUF_FMT_BGRX8 27
#define XILINX_FRMBUF_FMT_UYVY8 28
#define XILINX_FRMBUF_FMT_BGR8 29

/**
* struct xilinx_frmbuf_desc_hw - Hardware Descriptor
Expand Down Expand Up @@ -355,6 +356,16 @@ static const struct xilinx_frmbuf_format_desc xilinx_frmbuf_formats[] = {
.v4l2_fmt = V4L2_PIX_FMT_Y10,
.fmt_bitmask = BIT(17),
},
{
.dts_name = "rgb888",
.id = XILINX_FRMBUF_FMT_BGR8,
.bpw = 24,
.ppw = 1,
.num_planes = 1,
.drm_fmt = DRM_FORMAT_RGB888,
.v4l2_fmt = V4L2_PIX_FMT_BGR24,
.fmt_bitmask = BIT(18),
},
};

/**
Expand Down

0 comments on commit 59643ff

Please sign in to comment.