]> git.dujemihanovic.xyz Git - u-boot.git/commit
pci: Add functions to update PCI configuration registers
authorSimon Glass <sjg@chromium.org>
Mon, 7 Mar 2016 02:27:52 +0000 (19:27 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 17 Mar 2016 02:27:23 +0000 (10:27 +0800)
commit319dba1f4d7bf2c82be1c5b0858c4b1c3d8b4cfe
tree6eaaacf60a8d96c7f46215d06a2fbf62ada3b311
parent17c43f1a42135cdca28991658615323c2ca92e37
pci: Add functions to update PCI configuration registers

It is common to read a config register value, clear and set some bits, then
write back the updated value. Add functions to do this in one step, for
convenience.

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