dm: core: Add ofnode function to read PCI vendor and device id
authorBin Meng <bmeng.cn@gmail.com>
Fri, 3 Aug 2018 08:14:35 +0000 (01:14 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 8 Aug 2018 11:49:31 +0000 (12:49 +0100)
commit7b9cbaddd559830426443340fe4c7e1eacfec57d
tree6026628e313d0f3782a6a2b8d25240c0a9382abb
parentd494131bc6a709a0fc0b12bf6a975af3de27a6e8
dm: core: Add ofnode function to read PCI vendor and device id

We don't have the live-tree version of fdtdec_get_pci_vendev().
This adds the API.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/ofnode.c
include/dm/ofnode.h