uboot imx6ull lcd初始化

本文详细介绍了在U-Boot中针对NXP i.MX6ULL芯片进行LCD初始化的步骤和调用流程,涉及关键配置和驱动程序的使用。
摘要由CSDN通过智能技术生成

lcd在uboot 中调用关系如下:

board_init_r
​    --->stdio_init_tables
​			--->drv_video_init
{
	/* Check if video initialization should be skipped */
	if (board_video_skip())
		return 0;

	/* Init video chip - returns with framebuffer cleared */
	if (cfg_video_init() == -1)
		return 0;
	...
}
board_video_skip主要功能:
1、根据单板提供的LCD信息struct display_info_t const displays[]来设置struct fb_videomodedepth(像素格式)、panel.isaBase(lcd控制器寄存器地址)、 setup=1(后续函数判断是否设置相关lcd参数)2、配置LCD需要用的引脚,参考imx6ull elcdif文章里面的External Signals
3、使能LCD时钟 CCM_CCGR3   bit11–10  lcdif1 pix clock (lcdif1_pix_clk_enable) CCM_CCGR2   bit29–28  lcd clocks (lcd_clk_enable)
   CSCDR2 000 derive clock from divided pre-muxed LCDIF1 clock
struct fb_videomode {
                                               typedef struct graphic_device {
    
	const char *name;	/* optional */                                          unsigned int isaBase;
	u32 refresh;		/* optional */                                         unsigned int isaBase;
	u32 xres;															  unsigned int pciBase;
	u32 yres;            												   unsigned int dprBase;
	u32 pixclock;                                                               unsigned int vprBase;
	u32 left_margin;                                                            unsigned int cprBase;
	u32 right_margin;                                                           unsigned int frameAdrs;
	u32 upper_margin;                                                           unsigned int memSize;
	u32 lower_margin
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值