dm: pci: Add a uclass for PCI
Add a uclass for PCI controllers and a generic one for PCI devices. Adjust
the 'pci' command and the existing PCI support to work with this new uclass.
Keep most of the compatibility code in a separate file so that it can be
removed one day.
TODO: Add more header file comments to the new parts of pci.h
Signed-off-by:
Simon Glass <sjg@chromium.org>
Showing
- common/board_r.c 2 additions, 0 deletionscommon/board_r.c
- common/cmd_pci.c 11 additions, 3 deletionscommon/cmd_pci.c
- doc/driver-model/pci-info.txt 70 additions, 0 deletionsdoc/driver-model/pci-info.txt
- drivers/pci/Kconfig 12 additions, 0 deletionsdrivers/pci/Kconfig
- drivers/pci/Makefile 7 additions, 1 deletiondrivers/pci/Makefile
- drivers/pci/pci-uclass.c 639 additions, 0 deletionsdrivers/pci/pci-uclass.c
- drivers/pci/pci_auto.c 13 additions, 3 deletionsdrivers/pci/pci_auto.c
- drivers/pci/pci_compat.c 43 additions, 0 deletionsdrivers/pci/pci_compat.c
- include/dm/uclass-id.h 2 additions, 0 deletionsinclude/dm/uclass-id.h
- include/pci.h 282 additions, 7 deletionsinclude/pci.h
Loading
Please register or sign in to comment