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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com> |
||
---|---|---|
.. | ||
bzip2 | ||
dhry | ||
efi | ||
libfdt | ||
lzma | ||
lzo | ||
rsa | ||
tizen | ||
zlib | ||
Kconfig | ||
Makefile | ||
addr_map.c | ||
aes.c | ||
asm-offsets.c | ||
bch.c | ||
bitrev.c | ||
circbuf.c | ||
crc7.c | ||
crc8.c | ||
crc16.c | ||
crc32.c | ||
ctype.c | ||
display_options.c | ||
div64.c | ||
errno.c | ||
errno_str.c | ||
fdtdec.c | ||
fdtdec_common.c | ||
fdtdec_test.c | ||
gunzip.c | ||
gzip.c | ||
hang.c | ||
hashtable.c | ||
initcall.c | ||
ldiv.c | ||
linux_compat.c | ||
linux_string.c | ||
list_sort.c | ||
lmb.c | ||
lz4.c | ||
lz4_wrapper.c | ||
md5.c | ||
membuff.c | ||
net_utils.c | ||
panic.c | ||
physmem.c | ||
qsort.c | ||
rand.c | ||
rbtree.c | ||
rc4.c | ||
sha1.c | ||
sha256.c | ||
slre.c | ||
string.c | ||
strmhz.c | ||
strto.c | ||
time.c | ||
tiny-printf.c | ||
tpm.c | ||
trace.c | ||
uuid.c | ||
vsprintf.c |