From: Stefan Roese Date: Mon, 7 Nov 2016 07:55:34 +0100 Subject: [U-Boot] [PATCH v2 1/1] cmd: pci: add option to parse and display BAR information In-Reply-To: <1478442662-21577-2-git-send-email-yehuday@marvell.com> References: <1478442662-21577-1-git-send-email-yehuday@marvell.com> <1478442662-21577-2-git-send-email-yehuday@marvell.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 06.11.2016 15:31, yehuday at marvell.com wrote: > From: Yehuda Yitschak > > Currently the PCI command only allows to see the BAR register > values but not the size and actual base address. > This little extension parses the BAR registers and displays > the base, size and type of each BAR. > > Signed-off-by: Yehuda Yitschak I've tested this patch on a DM based PCI driver. And it looks good so far: => pci bar 0.0.0 ID Base Size Width Type ---------------------------------------------------------- 0 0x00000000f9000000 0x0000000000100000 32 MEM => pci bar 0.0.1 No such device => pci bar 1.0.0 ID Base Size Width Type ---------------------------------------------------------- 0 0x00000000f8000000 0x0000000000020000 32 MEM 1 0x00000000f8020000 0x0000000000020000 32 MEM 2 0x00000000ffffffe0 0x0000000000000020 32 I/O So: Tested-by: Stefan Roese Thanks, Stefan