|
| 1 | +menu "Platform Basic Configuration" |
| 2 | + |
| 3 | +config PLATFORM_CPU_NUM |
| 4 | + int "Number of CPUs" |
| 5 | + range 1 256 |
| 6 | + default 4 |
| 7 | + help |
| 8 | + Number of CPUs available on the platform. |
| 9 | + |
| 10 | +config PLATFORM_PHYS_MEM_BASE |
| 11 | + hex "Physical memory base address" |
| 12 | + default 0x40000000 |
| 13 | + help |
| 14 | + Base physical address of the system memory. |
| 15 | + |
| 16 | +config PLATFORM_PHYS_MEM_SIZE |
| 17 | + hex "Physical memory size" |
| 18 | + default 0x08000000 |
| 19 | + help |
| 20 | + Total size of the physical memory. |
| 21 | + |
| 22 | +config PLATFORM_KERNEL_BASE_PADDR |
| 23 | + hex "Kernel base physical address" |
| 24 | + default 0x40200000 |
| 25 | + help |
| 26 | + Physical load address of the kernel image. |
| 27 | + |
| 28 | +config PLATFORM_KERNEL_BASE_VADDR |
| 29 | + hex "Kernel base virtual address" |
| 30 | + default 0xffff000040200000 |
| 31 | + help |
| 32 | + Virtual address where the kernel is mapped. |
| 33 | + |
| 34 | +config PLATFORM_PHYS_VIRT_OFFSET |
| 35 | + hex "Physical to virtual address offset" |
| 36 | + default 0xffff000000000000 |
| 37 | + help |
| 38 | + Offset used to convert physical addresses to virtual addresses. |
| 39 | + |
| 40 | +config PLATFORM_PHYS_BUS_OFFSET |
| 41 | + hex "Physical to bus address offset" |
| 42 | + default 0x0 |
| 43 | + help |
| 44 | + Offset between physical address and bus address. |
| 45 | + |
| 46 | +config PLATFORM_KERNEL_ASPACE_BASE |
| 47 | + hex "Kernel address space base" |
| 48 | + default 0xffff000000000000 |
| 49 | + help |
| 50 | + Base address of the kernel virtual address space. |
| 51 | + |
| 52 | +config PLATFORM_KERNEL_ASPACE_SIZE |
| 53 | + hex "Kernel address space size" |
| 54 | + default 0x0000fffffffff000 |
| 55 | + help |
| 56 | + Size of the kernel virtual address space. |
| 57 | + |
| 58 | +config PLATFORM_BOOT_STACK_SIZE |
| 59 | + hex "Boot stack size" |
| 60 | + default 0x40000 |
| 61 | + help |
| 62 | + Stack size used during kernel boot. |
| 63 | + |
| 64 | +endmenu |
| 65 | + |
| 66 | +menu "Platform DMA and Power Management" |
| 67 | + |
| 68 | +config PLATFORM_DMA_MEM_BASE |
| 69 | + hex "DMA memory base address" |
| 70 | + default 0x40000000 |
| 71 | + help |
| 72 | + Base physical address of DMA memory. |
| 73 | + |
| 74 | +config PLATFORM_DMA_MEM_SIZE |
| 75 | + hex "DMA memory size" |
| 76 | + default 0x00200000 |
| 77 | + help |
| 78 | + Size of the DMA memory region. |
| 79 | + |
| 80 | +choice |
| 81 | + prompt "PSCI invocation method" |
| 82 | + default PLATFORM_PSCI_HVC |
| 83 | + |
| 84 | +config PLATFORM_PSCI_HVC |
| 85 | + bool "HVC (Hypervisor Call)" |
| 86 | + help |
| 87 | + Use HVC instruction for PSCI calls. |
| 88 | + |
| 89 | +config PLATFORM_PSCI_SMC |
| 90 | + bool "SMC (Secure Monitor Call)" |
| 91 | + help |
| 92 | + Use SMC instruction for PSCI calls. |
| 93 | + |
| 94 | +endchoice |
| 95 | + |
| 96 | +endmenu |
| 97 | + |
| 98 | +menu "Platform Devices and Interrupts" |
| 99 | + |
| 100 | +config PLATFORM_UART_PADDR |
| 101 | + hex "UART physical address" |
| 102 | + default 0x09000000 |
| 103 | + help |
| 104 | + Physical address of the UART controller. |
| 105 | + |
| 106 | +config PLATFORM_UART_IRQ |
| 107 | + int "UART IRQ number" |
| 108 | + default 33 |
| 109 | + help |
| 110 | + Interrupt number for UART device. |
| 111 | + |
| 112 | +config PLATFORM_TIMER_IRQ |
| 113 | + int "Timer IRQ number" |
| 114 | + default 30 |
| 115 | + help |
| 116 | + Interrupt number for the physical timer. |
| 117 | + |
| 118 | +config PLATFORM_IPI_IRQ |
| 119 | + int "IPI IRQ number" |
| 120 | + default 1 |
| 121 | + help |
| 122 | + Inter-Processor Interrupt number. |
| 123 | + |
| 124 | +config PLATFORM_PMU_IRQ |
| 125 | + int "PMU IRQ number" |
| 126 | + default 23 |
| 127 | + help |
| 128 | + Performance Monitoring Unit interrupt number. |
| 129 | + |
| 130 | +endmenu |
| 131 | + |
| 132 | +menu "Generic Interrupt Controller (GIC)" |
| 133 | + |
| 134 | +config PLATFORM_GICD_PADDR |
| 135 | + hex "GIC Distributor base address" |
| 136 | + default 0x08000000 |
| 137 | + help |
| 138 | + Base physical address of the GIC Distributor. |
| 139 | + |
| 140 | +config PLATFORM_GICC_PADDR |
| 141 | + hex "GIC CPU Interface base address" |
| 142 | + default 0x08010000 |
| 143 | + help |
| 144 | + Base physical address of the GIC CPU Interface. |
| 145 | + |
| 146 | +endmenu |
| 147 | + |
| 148 | +menu "RTC Configuration" |
| 149 | + |
| 150 | +config PLATFORM_RTC_PL031 |
| 151 | + bool "PL031 RTC" |
| 152 | + default y |
| 153 | + help |
| 154 | + Enable PL031 Real-Time Clock support. |
| 155 | + |
| 156 | +config PLATFORM_RTC_PADDR |
| 157 | + hex "RTC physical address" |
| 158 | + default 0x09010000 |
| 159 | + depends on PLATFORM_RTC_PL031 |
| 160 | + help |
| 161 | + Physical address of the PL031 RTC device. |
| 162 | + |
| 163 | +endmenu |
| 164 | + |
0 commit comments