Browse Source

Loongson2k dtb check: fix dtb nonexist device io mem minimal size check.

Change-Id: If20e8165fad0c2d83d47f8c3c2e009bda6020d08
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
master
QiaoChong 5 years ago
parent
commit
72d10f1b6c
  1. 2
      Targets/LS2K/dev/load_dtb.c

2
Targets/LS2K/dev/load_dtb.c

@ -126,7 +126,7 @@ static int check_pci_bridge_ok(void)
}
else
{
if(data[5] != 0 || data[6+5] != 0)
if(data[5] != cpu_to_be32(0x100000) || data[6+5] != cpu_to_be32(0x1000))
return 0;
}
}

Loading…
Cancel
Save