]> Git Repo - J-u-boot.git/commit
dm: serial: Convert ns16550 driver to use driver model PCI API
authorSimon Glass <[email protected]>
Sun, 29 Nov 2015 20:17:54 +0000 (13:17 -0700)
committerSimon Glass <[email protected]>
Tue, 12 Jan 2016 17:19:09 +0000 (10:19 -0700)
commitfcc0a8774bb78a601a0d6d4e1f73dcfc07b3d4a4
treebfbd10068f4e1514a6a9796ee56fba412d4cc5fc
parentbab17cf143c4888d03eb51f20aa6b86210448608
dm: serial: Convert ns16550 driver to use driver model PCI API

Use the driver model version of the function to find the BAR. This updates
the fdtdec function, of which ns16550 is the only user.

The fdtdec_get_pci_bdf() function is dropped for several reasons:
- with driver model we should use 'struct udevice *' rather than passing the
   device tree offset explicitly
- there are no other users in the tree
- the function parses for information which is already available in the PCI
device structure (specifically struct pci_child_platdata which is available
at dev_get_parent_platdata(dev)

Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Tested-by: Bin Meng <[email protected]>
drivers/serial/ns16550.c
include/fdtdec.h
lib/fdtdec.c
This page took 0.02725 seconds and 4 git commands to generate.