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" }, { } };