|
| 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 | + def_string "microblaze" |
| 11 | + |
| 12 | +config CPU_MICROBLAZE |
| 13 | + def_bool y |
| 14 | + select ARCH_HAS_EXTRA_EXCEPTION_INFO |
| 15 | + help |
| 16 | + This option signifies the use of a MicroBlaze CPU |
| 17 | + |
| 18 | +config CPU_VERSION |
| 19 | + prompt "MicroBlaze CPU Version" |
| 20 | + def_string "v9.00.a" |
| 21 | + help |
| 22 | + Use features of, and schedule code for, the given CPU. |
| 23 | + Supported values are in the format "vX.YY.Z", |
| 24 | + where X is a major version, YY is the minor version, and Z is compatibility code. |
| 25 | + Example values are "v3.00.a", "v4.00.b", "v5.00.a", "v5.00.b", "v6.00.a". |
| 26 | + Taken from https://gcc.gnu.org/onlinedocs/gcc/MicroBlaze-Options.html |
| 27 | + |
| 28 | +config GEN_IRQ_VECTOR_TABLE |
| 29 | + bool |
| 30 | + default n if MICROBLAZE |
| 31 | + help |
| 32 | + MicroBlaze has a single interrupt and therefore doesn't have an IRQ vector table. |
| 33 | + |
| 34 | +config BIG_ENDIAN |
| 35 | + bool |
| 36 | + default n if MICROBLAZE |
| 37 | + help |
| 38 | + Our current default endianness is Little-endian. |
| 39 | + |
| 40 | +config ARCH_SW_ISR_TABLE_ALIGN |
| 41 | + prompt "SW_ISR Table Align Size" |
| 42 | + default 4 |
| 43 | + |
| 44 | +config NUM_IRQS |
| 45 | + def_int 1 |
| 46 | + help |
| 47 | + This isn't really a choice either because a barebones MicroBlaze offers |
| 48 | + only 1 external interrupt pin (which is usually connected to an Xlnx Intc |
| 49 | + or probably a single peripheral which a user wants IRQs from). |
| 50 | + |
| 51 | +choice |
| 52 | + prompt "Idle Sleep Option" |
| 53 | + default MICROBLAZE_IDLE_NOP |
| 54 | + |
| 55 | + config MICROBLAZE_IDLE_NOP |
| 56 | + bool "NOP (no power saving)" |
| 57 | + help |
| 58 | + Executes pseudo-assembly instruction nop in idle. |
| 59 | + Reset_Mode[0:1] is set to 10 |
| 60 | + |
| 61 | + config MICROBLAZE_IDLE_SLEEP |
| 62 | + bool "Sleep" |
| 63 | + help |
| 64 | + Executes pseudo-assembly instruction sleep in idle. |
| 65 | + Reset_Mode[0:1] is set to 10 |
| 66 | + |
| 67 | + config MICROBLAZE_IDLE_HIBERNATE |
| 68 | + bool "Hibernate" |
| 69 | + help |
| 70 | + Executes pseudo-assembly instruction hibernate in idle. |
| 71 | + |
| 72 | + config MICROBLAZE_IDLE_SUSPEND |
| 73 | + bool "Suspend" |
| 74 | + help |
| 75 | + Executes pseudo-assembly instruction suspend in idle. |
| 76 | +endchoice |
| 77 | + |
| 78 | +config MICROBLAZE_DUMP_ON_EXCEPTION |
| 79 | + bool "Dump core on exceptions" |
| 80 | + default y |
| 81 | + |
| 82 | +# Bump the kernel default stack size values. |
| 83 | +config MAIN_STACK_SIZE |
| 84 | + default 4096 if COVERAGE_GCOV |
| 85 | + default 2048 |
| 86 | + |
| 87 | +config IDLE_STACK_SIZE |
| 88 | + default 1024 |
| 89 | + |
| 90 | +config ISR_STACK_SIZE |
| 91 | + default 4096 |
| 92 | + |
| 93 | +config TEST_EXTRA_STACK_SIZE |
| 94 | + default 4096 if COVERAGE_GCOV |
| 95 | + default 2048 |
| 96 | + |
| 97 | +config SYSTEM_WORKQUEUE_STACK_SIZE |
| 98 | + default 4096 |
| 99 | + |
| 100 | +source "arch/microblaze/Kconfig.features" |
| 101 | + |
| 102 | +endmenu |
0 commit comments