Skip to content
  • Simon Glass's avatar
    dm: pci: Add support for PCI driver matching · aba92962
    Simon Glass authored
    
    
    At present all PCI devices must be present in the device tree in order to
    be used. Many or most PCI devices don't require any configuration other than
    that which is done automatically by U-Boot. It is inefficent to add a node
    with nothing but a compatible string in order to get a device working.
    
    Add a mechanism whereby PCI drivers can be declared along with the device
    parameters they support (vendor/device/class). When no suitable driver is
    found in the device tree the list of such devices is consulted to determine
    the correct driver. If this also fails, then a generic driver is used as
    before.
    
    The mechanism used is very similar to that provided by Linux and the header
    file defintions are copied from Linux 4.1.
    
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
    Reviewed-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
    aba92962