summaryrefslogtreecommitdiffstats
path: root/lib/fdt_sw.c
diff options
context:
space:
mode:
authorGuoqing Li <ligq@marvell.com>2013-09-13 14:59:45 +0800
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-09-20 12:52:32 +0300
commit9a27d5916b1d0338f76a4a8cb6fabc5320664453 (patch)
treeab0e09e7e188f6fdde524ecf03a56290b3f47c20 /lib/fdt_sw.c
parent91f8628b7f7fe82af389ca99fffa1f132cb6afbf (diff)
downloadtalos-op-linux-9a27d5916b1d0338f76a4a8cb6fabc5320664453.tar.gz
talos-op-linux-9a27d5916b1d0338f76a4a8cb6fabc5320664453.zip
video: mmp: rb swap setting update for mmp display
We could set rb swap in two modules: DMA controler input part and dsi interface output part. DMA input part is based on pix_fmt to set rbswap, dsi output interface part will set rbswap based on platform dsi_rbswap configuration. This patch include below change and enhancement: 1) The input format which support rbswap is based on RGB format, eg. RGB565 indicates the source data in memory is that Red is [15~11], Green is [10~5], Blue is [4:0], Red is MSB, Blue is LSB, but for the display dma input default setting(rbswap = 0), it only support Blue is [15~11], Green is [10~5], Red is [4:0], Red is LSB, Blue is MSB, so for this format(RGB565), display controller need to set rbswap = 1 and it can support the MSB/LSB correctly. BGR/YUV format will not set it in mmp display driver. 2) The dsi output part of rbswap is depend on dsi_rbswap which is defined in specific platfrom. For output dsi interface, it has this feature to do rbswap again if it needs specifc byte sequence of RGB byte for DSI panel. eg. If display content is set RGB565 in memory and DMA input part set rbswap in driver to support Red as MSB , Blue LSB, but dsi panel only support Red as LSB, Blue as MSB, then it can use this feature. If there is no this requirement of panel, this dsi output part is not needed. Signed-off-by: Guoqing Li <ligq@marvell.com> Signed-off-by: Jett.Zhou <jtzhou@marvell.com> Signed-off-by: Zhou Zhu <zzhu3@marvell.com> Reviewed-by: Daniel Drake <dsd@laptop.org> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'lib/fdt_sw.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud