|
| 1 | +# Architecture identifier. |
| 2 | +arch = "loongarch64" |
| 3 | +# Platform identifier. |
| 4 | +platform = "loongarch64-2k1000" |
| 5 | + |
| 6 | +# |
| 7 | +# Platform configs |
| 8 | +# |
| 9 | +[plat] |
| 10 | +# Platform family. |
| 11 | +family = "loongarch64-2k1000" |
| 12 | + |
| 13 | +# Base address of the whole physical memory. |
| 14 | +phys-memory-base = 0x9800_0000 # uint |
| 15 | +# Size of the whole physical memory. (128M) |
| 16 | +phys-memory-size = 0x2800_0000 # uint |
| 17 | +# Base physical address of the kernel image. |
| 18 | +kernel-base-paddr = 0x9800_0000 # uint |
| 19 | + |
| 20 | +# Base virtual address of the kernel image. |
| 21 | +kernel-base-vaddr = "0x9000_0000_9800_0000" # uint |
| 22 | +# Linear mapping offset, for quick conversions between physical and virtual |
| 23 | +# addresses. |
| 24 | +phys-virt-offset = "0xffff_ffc0_0000_0000" # uint |
| 25 | +# Offset of bus address and phys address. some boards, the bus address is |
| 26 | +# different from the physical address. |
| 27 | +phys-bus-offset = 0 # uint |
| 28 | +# Kernel address space base. |
| 29 | +kernel-aspace-base = "0xffff_ffc0_0000_0000" # uint |
| 30 | +# Kernel address space size. |
| 31 | +kernel-aspace-size = "0x0000_003f_ffff_f000" # uint |
| 32 | + |
| 33 | +# |
| 34 | +# Device specifications |
| 35 | +# |
| 36 | +[devices] |
| 37 | +# MMIO regions with format (`base_paddr`, `size`). |
| 38 | +mmio-regions = [ |
| 39 | + [0x1FE2_0000, 0x0000_1000], # UART |
| 40 | + [0x2000_0000, 0x1000_0000], # PCI |
| 41 | + [0x4000_0000, 0x0002_0000], # PCI RANGES |
| 42 | +] # [(uint, uint)] |
| 43 | +# VirtIO MMIO regions with format (`base_paddr`, `size`). |
| 44 | +virtio-mmio-regions = [] # [(uint, uint)] |
| 45 | +# Base physical address of the PCIe ECAM space. |
| 46 | +pci-ecam-base = 0x2000_0000 # uint |
| 47 | +# End PCI bus number. |
| 48 | +pci-bus-end = 0x7f # uint |
| 49 | +# PCI device memory ranges. |
| 50 | +pci-ranges = [ |
| 51 | + [0, 0], |
| 52 | + [0x4000_0000, 0x0002_0000] |
| 53 | +] # [(uint, uint)] |
| 54 | +# serial@1fe001e0 { |
| 55 | +# interrupt-parent = <0x00008003>; |
| 56 | +# interrupts = <0x00000002 0x00000004>; |
| 57 | +# clock-frequency = <0x05f5e100>; |
| 58 | +# reg = <0x00000000 0x1fe001e0 0x00000000 0x00000100>; |
| 59 | +# compatible = "ns16550a"; |
| 60 | +# }; |
| 61 | +uart-paddr = 0x1FE20000 # uint |
| 62 | + |
| 63 | +# Timer interrupt frequency in Hz. |
| 64 | +timer-frequency = 100_000_000 # uint |
0 commit comments