
Hi Bin,
On 22.09.2017 15:33, Bin Meng wrote:
On Fri, Sep 22, 2017 at 8:32 PM, Stefan Roese sr@denx.de wrote:
On 22.09.2017 14:13, Владислав wrote:
I try to port sm750fb driver to uboot. I need to access bar0 because its framebuffer memory of video card.
After little research i find out pciauto_region_allocate failed for allocation region for bar0:
PCI Autoconfig: BAR 0, Mem, size=0x4000000, No room in resource (addr: 0xE8000000, size: 0x4000000, res->bus_start: 0xE8000000, res->size: 0x2000000)
PCI Autoconfig: BAR 1, Mem, size=0x200000, address=0xe8000000 bus_lower=0xe8200000
I find out definition in pci_mvebu.c:
#define PCIE_MEM_SIZE (32 << 20)
After changing it to (128 << 20) autoconfig working vell and bar0 is fully accessible and work
Can we convert this pci_mvebu.c to DM PCI? So that this won't be hardcoded in the driver, instead using device tree settings from the boards.
I agree, that this would be much better. But I currently don't have the time to port this driver over to DM. Patches from others are very welcome... ;)
Thanks, Stefan