|
| 1 | +# Copyright (c) 2023 Advanced Micro Devices, Inc. (AMD) |
| 2 | +# Copyright (c) 2023 Alp Sayin < [email protected]> |
| 3 | +# SPDX-License-Identifier: Apache-2.0 |
| 4 | + |
| 5 | + |
| 6 | +menu "MicroBlaze Options" |
| 7 | + depends on MICROBLAZE |
| 8 | + |
| 9 | +config ARCH |
| 10 | + string |
| 11 | + default "microblaze" |
| 12 | + |
| 13 | +config CPU_MICROBLAZE |
| 14 | + bool |
| 15 | + default y |
| 16 | + help |
| 17 | + This option signifies the use of a MicroBlaze CPU |
| 18 | + |
| 19 | +config CPU_VERSION |
| 20 | + prompt "MicroBlaze CPU Version" |
| 21 | + string |
| 22 | + default "v9.00.a" |
| 23 | + help |
| 24 | + Use features of, and schedule code for, the given CPU. |
| 25 | + Supported values are in the format "vX.YY.Z", |
| 26 | + where X is a major version, YY is the minor version, and Z is compatibility code. |
| 27 | + Example values are "v3.00.a", "v4.00.b", "v5.00.a", "v5.00.b", "v6.00.a". |
| 28 | + Taken from https://gcc.gnu.org/onlinedocs/gcc/MicroBlaze-Options.html |
| 29 | + |
| 30 | +config GEN_IRQ_VECTOR_TABLE |
| 31 | + bool |
| 32 | + default n if MICROBLAZE |
| 33 | + help |
| 34 | + MicroBlaze has a single interrupt and therefore doesn't have an IRQ vector table. |
| 35 | + |
| 36 | +config BIG_ENDIAN |
| 37 | + bool |
| 38 | + default n if MICROBLAZE |
| 39 | + help |
| 40 | + Our current default endianness is Little-endian. |
| 41 | + |
| 42 | +config ARCH_SW_ISR_TABLE_ALIGN |
| 43 | + prompt "SW_ISR Table Align Size" |
| 44 | + default 4 |
| 45 | + |
| 46 | +config NUM_IRQS |
| 47 | + int |
| 48 | + default 1 |
| 49 | + help |
| 50 | + This isn't really a choice either because a barebones MicroBlaze offers |
| 51 | + only 1 external interrupt pin (which is usually connected to an Xlnx Intc |
| 52 | + or probably a single peripheral which a user wants IRQs from). |
| 53 | + |
| 54 | +choice |
| 55 | + prompt "Idle Sleep Option" |
| 56 | + default MICROBLAZE_IDLE_NOP |
| 57 | + |
| 58 | + config MICROBLAZE_IDLE_NOP |
| 59 | + bool "NOP (no power saving)" |
| 60 | + help |
| 61 | + Executes pseudo-assembly instruction nop in idle. |
| 62 | + Reset_Mode[0:1] is set to 10 |
| 63 | + |
| 64 | + config MICROBLAZE_IDLE_SLEEP |
| 65 | + bool "Sleep" |
| 66 | + help |
| 67 | + Executes pseudo-assembly instruction sleep in idle. |
| 68 | + Reset_Mode[0:1] is set to 10 |
| 69 | + |
| 70 | + config MICROBLAZE_IDLE_HIBERNATE |
| 71 | + bool "Hibernate" |
| 72 | + help |
| 73 | + Executes pseudo-assembly instruction hibernate in idle. |
| 74 | + |
| 75 | + config MICROBLAZE_IDLE_SUSPEND |
| 76 | + bool "Suspend" |
| 77 | + help |
| 78 | + Executes pseudo-assembly instruction suspend in idle. |
| 79 | +endchoice |
| 80 | + |
| 81 | +config MICROBLAZE_DUMP_ON_EXCEPTION |
| 82 | + bool "Dump core on exceptions" |
| 83 | + default y |
| 84 | + |
| 85 | +config EXTRA_EXCEPTION_INFO |
| 86 | + bool "Extra exception debug information" |
| 87 | + default y |
| 88 | + help |
| 89 | + Have exceptions print additional useful debugging information in |
| 90 | + human-readable form, at the expense of code size. For example, |
| 91 | + the cause code for an exception will be supplemented by a string |
| 92 | + describing what that cause code means. |
| 93 | + |
| 94 | +# Bump the kernel default stack size values. |
| 95 | +config MAIN_STACK_SIZE |
| 96 | + default 4096 if COVERAGE_GCOV |
| 97 | + default 2048 |
| 98 | + |
| 99 | +config IDLE_STACK_SIZE |
| 100 | + default 1024 |
| 101 | + |
| 102 | +config ISR_STACK_SIZE |
| 103 | + default 4096 |
| 104 | + |
| 105 | +config TEST_EXTRA_STACK_SIZE |
| 106 | + default 4096 if COVERAGE_GCOV |
| 107 | + default 2048 |
| 108 | + |
| 109 | +config SYSTEM_WORKQUEUE_STACK_SIZE |
| 110 | + default 4096 |
| 111 | + |
| 112 | +source "arch/microblaze/Kconfig.features" |
| 113 | + |
| 114 | +endmenu |
0 commit comments