摘要: struct uclass *uclass_find(enum uclass_id key) { list_for_each_entry(uc, gd->uclass_root, sibling_node) } static int uclass_add(enum uclass_id id, str 阅读全文
posted @ 2022-02-24 14:02 liujunhuasd 阅读(704) 评论(0) 推荐(0) 编辑
摘要: static int initr_binman(void) initr_dm_devices https://www.cnblogs.com/zyly/p/15600819.html https://blog.csdn.net/a1598025967/article/details/10703064 阅读全文
posted @ 2022-02-24 12:18 liujunhuasd 阅读(79) 评论(0) 推荐(0) 编辑
摘要: dm_init_and_scan dm_init_and_scan(false)中主要有两点:一个是初始化驱动模型的根节点,另一个就是扫描设备书创建udevice、uclass绑定、申请空间等 static int initr_dm(void) { int ret; /* Save the pre- 阅读全文
posted @ 2022-02-24 12:18 liujunhuasd 阅读(379) 评论(0) 推荐(0) 编辑
摘要: /** * driver_check_compatible() - Check if a driver matches a compatible string * * @param of_match: List of compatible strings to match * @param of_i 阅读全文
posted @ 2022-02-24 12:16 liujunhuasd 阅读(51) 评论(0) 推荐(0) 编辑
摘要: int uclass_bind_device(struct udevice *dev) { struct uclass *uc; int ret; uc = dev->uclass;// list_add_tail(&dev->uclass_node, &uc->dev_head); if (dev 阅读全文
posted @ 2022-02-24 12:16 liujunhuasd 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 函数位置driver/core/lists.c文件 int lists_bind_fdt(struct udevice *parent, ofnode node, struct udevice **devp, bool pre_reloc_only) { struct driver *driver 阅读全文
posted @ 2022-02-24 12:14 liujunhuasd 阅读(96) 评论(0) 推荐(0) 编辑