summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYe.Li <B37916@freescale.com>2014-06-12 17:10:32 +0800
committerYe Li <ye.li@nxp.com>2016-03-25 13:32:09 +0800
commite1343191b9de227c582847e7eeb5ce9238be0754 (patch)
treeff618b34acb08bca1aa562cc42e26c90d17866ac /include
parent86135fb7e55c3046ead899b83f58dd6048eda9e8 (diff)
downloadu-boot-imx-e1343191b9de227c582847e7eeb5ce9238be0754.zip
u-boot-imx-e1343191b9de227c582847e7eeb5ce9238be0754.tar.gz
u-boot-imx-e1343191b9de227c582847e7eeb5ce9238be0754.tar.bz2
ENGR00315894-70 iMX6SX:Video Update MXS LCDIF driver
Add a new interface "mxs_lcd_panel_setup" to setup fb parameters and specifies the LCDIF controller for multiple controllers of iMX6SX. Pass fb parameters via "videomode" env remains work if the new interface is not called before video initialization. Modify LCDIF clock interface "mxs_set_lcdclk" to support multiple LCDIF controllers on iMX6SX. Signed-off-by: Ye.Li <B37916@freescale.com> Signed-off-by: Peng Fan <Peng.Fan@freescale.com> (cherry picked from commit d7f49b9378547c3a57b96bcdb907fc44616beb3d)
Diffstat (limited to 'include')
-rw-r--r--include/mxsfb.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/mxsfb.h b/include/mxsfb.h
new file mode 100644
index 0000000..85f24aa
--- /dev/null
+++ b/include/mxsfb.h
@@ -0,0 +1,27 @@
+/*
+ * Copyright (C) 2014-2016 Freescale Semiconductor, Inc.
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#ifndef __MXSFB_H__
+#define __MXSFB_H__
+
+#include <linux/fb.h>
+
+#ifdef CONFIG_VIDEO_MXS
+struct display_panel {
+ unsigned int reg_base;
+ unsigned int width;
+ unsigned int height;
+ unsigned int gdfindex;
+ unsigned int gdfbytespp;
+};
+
+void mxs_lcd_get_panel(struct display_panel *panel);
+void lcdif_power_down(void);
+int mxs_lcd_panel_setup(struct fb_videomode mode, int bpp,
+ uint32_t base_addr);
+#endif
+
+#endif /* __MXSFB_H__ */