diff options
author | Simon Glass <sjg@chromium.org> | 2015-11-29 13:18:05 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-01-12 10:19:09 -0700 |
commit | 7e78b9ef2c9f263214adf7e2f7be9912a1af564b (patch) | |
tree | 8fb74bbd1beed74d6a268e8a277194cf8586b4b1 /include/pci.h | |
parent | 552ddbe3ceaae1346b6f223248141b846afc6c80 (diff) | |
download | u-boot-imx-7e78b9ef2c9f263214adf7e2f7be9912a1af564b.zip u-boot-imx-7e78b9ef2c9f263214adf7e2f7be9912a1af564b.tar.gz u-boot-imx-7e78b9ef2c9f263214adf7e2f7be9912a1af564b.tar.bz2 |
dm: pci: Switch to DM API for PCI address mapping
We should use the new address mapping functions unless we are in
compatibility mode. Disable the old functions by default.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/pci.h')
-rw-r--r-- | include/pci.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/pci.h b/include/pci.h index b61f760..cb2562f 100644 --- a/include/pci.h +++ b/include/pci.h @@ -621,6 +621,7 @@ static inline void pci_set_ops(struct pci_controller *hose, extern void pci_setup_indirect(struct pci_controller* hose, u32 cfg_addr, u32 cfg_data); #endif +#if !defined(CONFIG_DM_PCI) || defined(CONFIG_DM_PCI_COMPAT) extern phys_addr_t pci_hose_bus_to_phys(struct pci_controller* hose, pci_addr_t addr, unsigned long flags); extern pci_addr_t pci_hose_phys_to_bus(struct pci_controller* hose, @@ -656,7 +657,6 @@ extern pci_addr_t pci_hose_phys_to_bus(struct pci_controller* hose, pci_bus_to_virt((dev), (addr), PCI_REGION_IO, (len), (map_flags)) /* For driver model these are defined in macros in pci_compat.c */ -#if !defined(CONFIG_DM_PCI) || defined(CONFIG_DM_PCI_COMPAT) extern int pci_hose_read_config_byte(struct pci_controller *hose, pci_dev_t dev, int where, u8 *val); extern int pci_hose_read_config_word(struct pci_controller *hose, |