Hi, On Fri, Sep 22, 2017 at 8:32 PM, Stefan Roese <s...@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 see. Please send a proper patch to change this setting > in mainline to the list. > Regards, Bin _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot