[U-Boot] [PATCH v2 1/1] cmd: pci: add option to parse and display BAR information

Stefan Roese sr at denx.de
Mon Nov 7 07:55:34 CET 2016


On 06.11.2016 15:31, yehuday at marvell.com wrote:
> From: Yehuda Yitschak <yehuday at marvell.com>
> 
> 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 <yehuday at marvell.com>

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 <sr at denx.de>

Thanks,
Stefan


More information about the U-Boot mailing list