summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-07-27 15:47:18 -0600
committerSimon Glass <sjg@chromium.org>2015-08-05 08:42:41 -0600
commit4bad2e7374e27f08225701e2c3554404e590d8ee (patch)
treed6f5dd772f2314dcc6f7c1d8e0841adc92e8ab4e /drivers
parent5f48d798eb151f50d79b93913b59190a679ee9b5 (diff)
downloadu-boot-imx-4bad2e7374e27f08225701e2c3554404e590d8ee.zip
u-boot-imx-4bad2e7374e27f08225701e2c3554404e590d8ee.tar.gz
u-boot-imx-4bad2e7374e27f08225701e2c3554404e590d8ee.tar.bz2
pci: Indicate prefetchable memory allocate when debugging
At present the PCI output displays 'Mem' when it allocates memory for a PCI device, whether it is prefetchable or not. There is a distinction since the memory comes from separate pools. Use 'Prf' instead of 'Mem' when allocating prefetchable memory. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pci/pci_auto.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/pci/pci_auto.c b/drivers/pci/pci_auto.c
index 51d2ac0..41d5447 100644
--- a/drivers/pci/pci_auto.c
+++ b/drivers/pci/pci_auto.c
@@ -148,8 +148,9 @@ void pciauto_setup_device(struct pci_controller *hose,
bar_res = mem;
#endif
- debug("PCI Autoconfig: BAR %d, Mem, size=0x%llx, ",
- bar_nr, (unsigned long long)bar_size);
+ debug("PCI Autoconfig: BAR %d, %s, size=0x%llx, ",
+ bar_nr, bar_res == prefetch ? "Prf" : "Mem",
+ (unsigned long long)bar_size);
}
#ifndef CONFIG_PCI_ENUM_ONLY