摘要: #if CONFIG_IS_ENABLED(OF_CONTROL) && !CONFIG_IS_ENABLED(OF_PLATDATA) #define of_match_ptr(_ptr) (_ptr) #else #define of_match_ptr(_ptr) NULL #endif /* 阅读全文
posted @ 2022-02-20 19:51 liujunhuasd 阅读(348) 评论(0) 推荐(0) 编辑
摘要: 设备 /* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (c) 2013 Google, Inc * * (C) Copyright 2012 * Pavel Herrmann <morpheus.ibis@gmail.com> * Mar 阅读全文
posted @ 2022-02-20 17:25 liujunhuasd 阅读(1175) 评论(0) 推荐(0) 编辑
摘要: http://betheme.net/news/txtlist_i88327v.html 两个关键宏U_BOOT_DRIVER及U_BOOT_DEVICES的作用 static const struct driver_info root_info = { .name = "root_driver", 阅读全文
posted @ 2022-02-20 16:22 liujunhuasd 阅读(393) 评论(0) 推荐(0) 编辑
摘要: #ifndef _DM_UCLASS_H #define _DM_UCLASS_H #include <dm/ofnode.h> #include <dm/uclass-id.h> #include <linker_lists.h> #include <linux/list.h> /** * str 阅读全文
posted @ 2022-02-20 15:39 liujunhuasd 阅读(1070) 评论(0) 推荐(0) 编辑