diff options
author | Jessie Hao <juan.hao@nxp.com> | 2017-06-08 18:33:42 +0800 |
---|---|---|
committer | Jaesung Chung <jaesung@google.com> | 2017-06-22 17:53:42 +0900 |
commit | bf997be66003afdfa4aaa7d27846453316839ba4 (patch) | |
tree | 98c9d8ee1f0ab1497d6605d345ace8f28d29981f | |
parent | 6ce8c140bf32606b925d15bef2473dc67e7bcd48 (diff) | |
download | imx-v4.1-bf997be66003afdfa4aaa7d27846453316839ba4.tar.gz |
MA-9666-3 add RGBA32 format support when bus-width is 18.
Cannot open Develop options->show surface updates on 6sx and 6sx_auto.
Although imx6sx-sabreauto.dts settings is:
display1: display {
bits-per-pixel = <32>;
bus-width = <18>;
+ fbpix = "ABGR32";
But the framebuffer format is RGB24 not ABGR32. This is because lack logic
when bus-width is 18.
Bug: 38400091, Bug: 38511042
Change-Id: I2ea7ada3e8e124f361979383404a3602a7f0fa0a
Signed-off-by: Jaesung Chung <jaesung@google.com>
-rw-r--r-- | drivers/video/fbdev/mxsfb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/fbdev/mxsfb.c b/drivers/video/fbdev/mxsfb.c index 14228d430084..614a766a88f7 100644 --- a/drivers/video/fbdev/mxsfb.c +++ b/drivers/video/fbdev/mxsfb.c @@ -680,6 +680,8 @@ static int mxsfb_check_var(struct fb_var_screeninfo *var, if (pixfmt_is_equal(var, def_rgb666)) /* 24 bit to 18 bit mapping */ rgb = def_rgb666; + else if (host->pix_fmt && pixfmt_to_bf(host->pix_fmt)) + rgb = pixfmt_to_bf(host->pix_fmt); else rgb = def_rgb888; break; |