component_match_add(dev, &match, compare_of, port->parent); //将每个ports属性加入数组中 rock...
static int rockchip_drm_platform_probe(struct platform_device *pdev) { struct component_match *match = NULL; ... for (i = 0;; i++) { ... ## 1. 添加待匹配的component设备,即添加crtc component_match_add(dev, &match, compare_of, port->parent); ... } ... for (i = 0;; i+...
基于component框架, 在probe阶段解析dts中各个设备的信息, 加到component match 列表中, 等所有设备加 载...
component即普通设备,执行probe使用component_add函数注册自己到component框架中。 ##Master初始化 1staticintkirin_drm_platform_probe(structplatform_device *pdev)2{3structdevice*dev = &pdev->dev;4structdevice_node*np = dev->of_node;5structcomponent_match*match =NULL;6structdevice_node*remote;78remote...
在各种encoder driver和crtc driver的probe函数中:通过component_add将自己注册进系统; 在Rockchip DRM Master driver的probe函数中; 通过rockchip_drm_match_add为每个component(各种encoder和crtc)注册一个component_match_array到component_match; 通过component_master_add_with_match触发各种encoder和crtccomponent的bind...
平台驱动rockchip-drm匹配到设备树,会到设备树dts查找ports节点和iommus节点,使用component_master_add_with_match函数注册自己到component框架中,设置了rockchip_drm_ops,其component可以通过component_add函数增加, master匹配上所有component后,会调用master的bind回调函数,最后通过drm_dev_register()函数注册到DRM core。
超级设备通过component_master_add_with_match()函数进行match注册,实现文件:rockchip_drm_drv.c,内容如下: staticintrockchip_drm_platform_probe(structplatform_device*pdev){ .../* * Bind the crtc ports first, so that * drm_of_find_possible_crtcs called from encoder .bind callbacks * works as ...
simple->priv = of_device_get_match_data(dev); simple->dev = dev; dev_set_drvdata(dev, simple); ret = encoder_parse_dt(dev); if (ret) return ret; return component_add(dev, &encoder_component_ops); } static int vs_encoder_remove(struct platform_device *pdev) { struct device *dev...
master负责绑定各个component组件,当所有组件均匹配、绑定成功后,DRM图显系统才能正常工作。任何一个组件或master被移除,都会引起解绑定事件并将subsystem的状态设置为down。 2. component组件 component组件的驱动程序执行probe时: 通过component_add()加入组件系统 ...
comp_type == MTK_DISP_OVL_2L || comp_type == MTK_DISP_RDMA || comp_type == MTK_DP_INTF || comp_type == MTK_DPI || comp_type == MTK_DSI) { dev_info(dev, "Adding component match for %pOF\n", 0 comments on commit d86c156 Please sign in to comment. Footer...