提交 119e9909 编写于 作者: F Fabio Estevam 提交者: Stefano Babic

mx6sabresd: Fix LVDS width and color format

mx6sabresd boards have a 18-bit LVDS data width and the correct color format
is RGB666.
Suggested-by: NLiu Ying <Ying.Liu@freescale.com>
Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com>
上级 be4ab3dd
...@@ -294,15 +294,15 @@ static void enable_lvds(struct display_info_t const *dev) ...@@ -294,15 +294,15 @@ static void enable_lvds(struct display_info_t const *dev)
struct iomuxc *iomux = (struct iomuxc *) struct iomuxc *iomux = (struct iomuxc *)
IOMUXC_BASE_ADDR; IOMUXC_BASE_ADDR;
u32 reg = readl(&iomux->gpr[2]); u32 reg = readl(&iomux->gpr[2]);
reg |= IOMUXC_GPR2_DATA_WIDTH_CH0_24BIT | reg |= IOMUXC_GPR2_DATA_WIDTH_CH0_18BIT |
IOMUXC_GPR2_DATA_WIDTH_CH1_24BIT; IOMUXC_GPR2_DATA_WIDTH_CH1_18BIT;
writel(reg, &iomux->gpr[2]); writel(reg, &iomux->gpr[2]);
} }
static struct display_info_t const displays[] = {{ static struct display_info_t const displays[] = {{
.bus = -1, .bus = -1,
.addr = 0, .addr = 0,
.pixfmt = IPU_PIX_FMT_LVDS666, .pixfmt = IPU_PIX_FMT_RGB666,
.detect = NULL, .detect = NULL,
.enable = enable_lvds, .enable = enable_lvds,
.mode = { .mode = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册