Browse Source

Loongson2K: not reserve memory if no gpu.

Change-Id: I210e55f5f81fe0a9383404b7040e5dc867ccde7c
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
master
QiaoChong 6 years ago
parent
commit
934f3964fe
  1. 2
      Targets/LS2K/dev/load_dtb.c

2
Targets/LS2K/dev/load_dtb.c

@ -272,7 +272,7 @@ static int check_mem_args(const void * ssp)
u32 *p;
max_mem = memorysize_total << 20;
if(!pcie_dev){
if(!pcie_dev && fdt_path_offset (ssp, "/soc/gpu@0x40080000") >= 0){
max_mem -= 0x20000000ULL; //512M for internal Graphics card
}
nodeoffset = fdt_path_offset (ssp, "/memory");

Loading…
Cancel
Save