Browse Source

Add APB member in struct pci_config_data array to set

apb bar address before running kernel.

Target:LS2K

Change-Id: I4b45990e854fc4ce575ac551a701322f903b7aa7
Signed-off-by: Xuefeng Li <lixuefeng@loongson.cn>
master
Xuefeng Li 7 years ago
parent
commit
1b1ba8b1d6
  1. 5
      Targets/LS2K/ls2k/tgt_machdep.c

5
Targets/LS2K/ls2k/tgt_machdep.c

@ -1665,6 +1665,11 @@ struct pci_config_data {
}__attribute__((aligned(4)));
struct pci_config_data pci_config_array[] = {
/* APB */
[0] = {
.bus = 0, .dev = 0x2, .func = 0, .interrupt = 0, .primary = 0, .secondary = 0,
.subordinate = 0, .start = 0x1fe00000, .end = 0x1fe0ffff, .type = PCI_DEV,
},
/* GMAC0 */
[0] = {
.bus = 0, .dev = 0x3, .func = 0, .interrupt = 20, .primary = 0, .secondary = 0,

Loading…
Cancel
Save