uboot下设备id描述

来源:互联网 发布:短文本主题模型数据集 编辑:程序博客网 时间:2024/06/13 08:37
include/dm/device.h  OF_CONTROL
/** * struct udevice_id - Lists the compatible strings supported by a driver * @compatible: Compatible string * @data: Data for this compatible string */struct udevice_id { const char *compatible; ulong data;};
 
如:
static const struct udevice_id bcm2835_gpio_id[] = { {.compatible = "brcm,bcm2835-gpio"}, {}};
 
static const struct udevice_id bd82x6x_ids[] = { { .compatible = "intel,bd82x6x" }, { }};
 
static const struct udevice_id broadwell_igd_ids[] = { { .compatible = "intel,broadwell-igd" }, { }};
 
0 0
原创粉丝点击