
31 Dec
2014
31 Dec
'14
7:24 p.m.
On 31 December 2014 at 11:17, Simon Glass sjg@chromium.org wrote:
On 31 December 2014 at 01:05, Bin Meng bmeng.cn@gmail.com wrote:
This commit adds several APIs to decode PCI device node according to the Open Firmware PCI bus bindings, including:
- fdtdec_get_pci_addr() for encoded pci address
- fdtdec_get_pci_vendev() for vendor id and device id
- fdtdec_get_pci_bdf() for pci device bdf triplet
- fdtdec_get_pci_bar32() for pci device register bar
Signed-off-by: Bin Meng bmeng.cn@gmail.com
Changes in v4:
- Check compatible string 12th byte against '\0'
Acked-by: Simon Glass sjg@chromium.org
Applied to u-boot-x86/next, thanks!