commit | 8cce4cfe92e74aea4171b4dd7f5934db1305a659 | [log] [tgz] |
---|---|---|
author | Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> | Tue Sep 19 23:18:03 2017 +0300 |
committer | Tom Rini <trini@konsulko.com> | Fri Oct 06 11:27:40 2017 -0400 |
tree | 8dffd731258ba71229fdc9440eefc60f380284ce | |
parent | a68ca9e71eff010bd47781e7edc257855f1c959f [diff] |
pci: Add helper for implementing memory-mapped config space accesses This sort of pattern for implementing memory-mapped PCI config space accesses appears in U-Boot twice already, and a third user is coming up. So add helper functions to avoid code duplication, similar to how Linux has pci_generic_config_write and pci_generic_config_read. Signed-off-by: Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>