This is the 2nd attempt to support pci uart devices with driver model. The v1 patch series is at [1].
Instead of creating a pci-specific device driver for ns16550 in v1, this v2 patch supports binding pci devices using device tree. As previously mentioned in the ML, we should call fsp_notify() immediately after pci bus enumeration. Unfortunately with driver model, we have to put this call inside the pci_uclass_post_probe(). With this series, pci uart now works on Intel Crown Bay with driver model. [1]: http://lists.denx.de/pipermail/u-boot/2015-August/223876.html Changes in v2: - Drop the following v1 patches: - dm: pci: Only allow serial device to be bound before relocation - drivers: serial: Add ns16550 compatible pci uart driver - drivers: serial: Remove special handling for pci uart in the ns16550 driver - x86: crownbay: Support Topcliff integrated pci uart devices - x86: queensbay: Call fsp_init_phase_pci() again - Add some comments in x86_fsp_init() for malloc() adjustment Bin Meng (12): dm: pci: Support selected device/driver binding before relocation x86: fsp: Delay x86_fsp_init() call a little bit x86: fsp: Enlarge the size of malloc() pool before relocation x86: fsp: Add comments about U-Boot entering start.S twice x86: queensbay: Move unprotect_spi_flash() to arch_misc_init() x86: baytrail: Remove the fsp_init_phase_pci() call x86: fsp: Call fsp_init_phase_pci() in pci_uclass_post_probe() dm: pci: Remove the unnecessary pci_bus_find_devfn() in pci_bind_bus_devices() fdtdec: Fix possible infinite loop in fdtdec_get_pci_vendev() dm: pci: Save devfn without bus number in pci_uclass_child_post_bind() dm: pci: Really support binding pci device in the device tree dm: pci: Document binding of pci device drivers arch/x86/Kconfig | 9 +- arch/x86/cpu/baytrail/valleyview.c | 8 +- arch/x86/cpu/queensbay/tnc.c | 4 +- arch/x86/cpu/start.S | 14 ++- arch/x86/lib/fsp/fsp_car.S | 2 +- arch/x86/lib/fsp/fsp_common.c | 16 ++- common/board_f.c | 6 +- doc/driver-model/pci-info.txt | 25 ++++- drivers/pci/pci-uclass.c | 204 ++++++++++++++++++++++++++++++------- include/pci.h | 11 ++ lib/fdtdec.c | 3 +- 11 files changed, 246 insertions(+), 56 deletions(-) -- 1.8.2.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot