diff options
author | Ye.Li <B37916@freescale.com> | 2014-06-12 17:10:32 +0800 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2016-03-25 13:32:09 +0800 |
commit | e1343191b9de227c582847e7eeb5ce9238be0754 (patch) | |
tree | ff618b34acb08bca1aa562cc42e26c90d17866ac /include | |
parent | 86135fb7e55c3046ead899b83f58dd6048eda9e8 (diff) | |
download | u-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.h | 27 |
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__ */ |