]> git.sur5r.net Git - u-boot/blobdiff - cmd/pci.c
ddr: altera: Add ECC DRAM scrubbing support for Arria10
[u-boot] / cmd / pci.c
index 41b4fffcf9e42b7dd28fd7ee9e8b366bf52b0067..2c5ee2a19d87d2912de28c63134f2a2f997d0fd6 100644 (file)
--- a/cmd/pci.c
+++ b/cmd/pci.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * (C) Copyright 2001 Sysgo Real-Time Solutions, GmbH <www.elinos.com>
  * Andreas Heppel <aheppel@sysgo.de>
@@ -5,8 +6,6 @@
  * (C) Copyright 2002
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  * Wolfgang Grandegger, DENX Software Engineering, wg@denx.de.
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 /*
@@ -150,7 +149,8 @@ int pci_bar_show(struct udevice *dev)
                if ((!is_64 && size_low) || (is_64 && size)) {
                        size = ~size + 1;
                        printf(" %d   %#016llx  %#016llx  %d     %s   %s\n",
-                              bar_id, base, size, is_64 ? 64 : 32,
+                              bar_id, (unsigned long long)base,
+                              (unsigned long long)size, is_64 ? 64 : 32,
                               is_io ? "I/O" : "MEM",
                               prefetchable ? "Prefetchable" : "");
                }
@@ -693,7 +693,7 @@ static int do_pci(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
                if ((bdf = get_pci_dev(argv[2])) == -1)
                        return 1;
                break;
-#if defined(CONFIG_CMD_PCI_ENUM) || defined(CONFIG_DM_PCI)
+#if defined(CONFIG_DM_PCI)
        case 'e':
                pci_init();
                return 0;
@@ -781,7 +781,7 @@ static int do_pci(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 static char pci_help_text[] =
        "[bus] [long]\n"
        "    - short or long list of PCI devices on bus 'bus'\n"
-#if defined(CONFIG_CMD_PCI_ENUM) || defined(CONFIG_DM_PCI)
+#if defined(CONFIG_DM_PCI)
        "pci enum\n"
        "    - Enumerate PCI buses\n"
 #endif