Kconfig.platform 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. menu "Platform options"
  2. comment "Memory settings"
  3. config NIOS2_MEM_BASE
  4. hex "Memory base address"
  5. default "0x00000000"
  6. help
  7. This is the physical address of the memory that the kernel will run
  8. from. This address is used to link the kernel and setup initial memory
  9. management. You should take the raw memory address without any MMU
  10. or cache bits set.
  11. Please not that this address is used directly so you have to manually
  12. do address translation if it's connected to a bridge.
  13. comment "Device tree"
  14. config NIOS2_DTB_AT_PHYS_ADDR
  15. bool "DTB at physical address"
  16. default n
  17. help
  18. When enabled you can select a physical address to load the dtb from.
  19. Normally this address is passed by a bootloader such as u-boot but
  20. using this you can use a devicetree without a bootloader.
  21. This way you can store a devicetree in NOR flash or an onchip rom.
  22. Please note that this address is used directly so you have to manually
  23. do address translation if it's connected to a bridge. Also take into
  24. account that when using an MMU you'd have to ad 0xC0000000 to your
  25. address
  26. config NIOS2_DTB_PHYS_ADDR
  27. hex "DTB Address"
  28. depends on NIOS2_DTB_AT_PHYS_ADDR
  29. default "0xC0000000"
  30. help
  31. Physical address of a dtb blob.
  32. config NIOS2_DTB_SOURCE_BOOL
  33. bool "Compile and link device tree into kernel image"
  34. default n
  35. help
  36. This allows you to specify a dts (device tree source) file
  37. which will be compiled and linked into the kernel image.
  38. config NIOS2_DTB_SOURCE
  39. string "Device tree source file"
  40. depends on NIOS2_DTB_SOURCE_BOOL
  41. default ""
  42. help
  43. Absolute path to the device tree source (dts) file describing your
  44. system.
  45. comment "Nios II instructions"
  46. config NIOS2_ARCH_REVISION
  47. int "Select Nios II architecture revision"
  48. range 1 2
  49. default 1
  50. help
  51. Select between Nios II R1 and Nios II R2 . The architectures
  52. are binary incompatible. Default is R1 .
  53. config NIOS2_HW_MUL_SUPPORT
  54. bool "Enable MUL instruction"
  55. default n
  56. help
  57. Set to true if you configured the Nios II to include the MUL
  58. instruction. This will enable the -mhw-mul compiler flag.
  59. config NIOS2_HW_MULX_SUPPORT
  60. bool "Enable MULX instruction"
  61. default n
  62. help
  63. Set to true if you configured the Nios II to include the MULX
  64. instruction. Enables the -mhw-mulx compiler flag.
  65. config NIOS2_HW_DIV_SUPPORT
  66. bool "Enable DIV instruction"
  67. default n
  68. help
  69. Set to true if you configured the Nios II to include the DIV
  70. instruction. Enables the -mhw-div compiler flag.
  71. config NIOS2_BMX_SUPPORT
  72. bool "Enable BMX instructions"
  73. depends on NIOS2_ARCH_REVISION = 2
  74. default n
  75. help
  76. Set to true if you configured the Nios II R2 to include
  77. the BMX Bit Manipulation Extension instructions. Enables
  78. the -mbmx compiler flag.
  79. config NIOS2_CDX_SUPPORT
  80. bool "Enable CDX instructions"
  81. depends on NIOS2_ARCH_REVISION = 2
  82. default n
  83. help
  84. Set to true if you configured the Nios II R2 to include
  85. the CDX Bit Manipulation Extension instructions. Enables
  86. the -mcdx compiler flag.
  87. config NIOS2_FPU_SUPPORT
  88. bool "Custom floating point instr support"
  89. default n
  90. help
  91. Enables the -mcustom-fpu-cfg=60-1 compiler flag.
  92. config NIOS2_CI_SWAB_SUPPORT
  93. bool "Byteswap custom instruction"
  94. default n
  95. help
  96. Use the byteswap (endian converter) Nios II custom instruction provided
  97. by Altera and which can be enabled in QSYS builder. This accelerates
  98. endian conversions in the kernel (e.g. ntohs).
  99. config NIOS2_CI_SWAB_NO
  100. int "Byteswap custom instruction number" if NIOS2_CI_SWAB_SUPPORT
  101. default 0
  102. help
  103. Number of the instruction as configured in QSYS Builder.
  104. comment "Cache settings"
  105. config CUSTOM_CACHE_SETTINGS
  106. bool "Custom cache settings"
  107. help
  108. This option allows you to tweak the cache settings used during early
  109. boot (where the information from device tree is not yet available).
  110. There should be no reason to change these values. Linux will work
  111. perfectly fine, even if the Nios II is configured with smaller caches.
  112. Say N here unless you know what you are doing.
  113. config NIOS2_DCACHE_SIZE
  114. hex "D-Cache size" if CUSTOM_CACHE_SETTINGS
  115. range 0x200 0x10000
  116. default "0x800"
  117. help
  118. Maximum possible data cache size.
  119. config NIOS2_DCACHE_LINE_SIZE
  120. hex "D-Cache line size" if CUSTOM_CACHE_SETTINGS
  121. range 0x10 0x20
  122. default "0x20"
  123. help
  124. Minimum possible data cache line size.
  125. config NIOS2_ICACHE_SIZE
  126. hex "I-Cache size" if CUSTOM_CACHE_SETTINGS
  127. range 0x200 0x10000
  128. default "0x1000"
  129. help
  130. Maximum possible instruction cache size.
  131. endmenu