Kconfig.platform 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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_HW_MUL_SUPPORT
  47. bool "Enable MUL instruction"
  48. default n
  49. help
  50. Set to true if you configured the Nios II to include the MUL
  51. instruction. This will enable the -mhw-mul compiler flag.
  52. config NIOS2_HW_MULX_SUPPORT
  53. bool "Enable MULX instruction"
  54. default n
  55. help
  56. Set to true if you configured the Nios II to include the MULX
  57. instruction. Enables the -mhw-mulx compiler flag.
  58. config NIOS2_HW_DIV_SUPPORT
  59. bool "Enable DIV instruction"
  60. default n
  61. help
  62. Set to true if you configured the Nios II to include the DIV
  63. instruction. Enables the -mhw-div compiler flag.
  64. config NIOS2_FPU_SUPPORT
  65. bool "Custom floating point instr support"
  66. default n
  67. help
  68. Enables the -mcustom-fpu-cfg=60-1 compiler flag.
  69. config NIOS2_CI_SWAB_SUPPORT
  70. bool "Byteswap custom instruction"
  71. default n
  72. help
  73. Use the byteswap (endian converter) Nios II custom instruction provided
  74. by Altera and which can be enabled in QSYS builder. This accelerates
  75. endian conversions in the kernel (e.g. ntohs).
  76. config NIOS2_CI_SWAB_NO
  77. int "Byteswap custom instruction number" if NIOS2_CI_SWAB_SUPPORT
  78. default 0
  79. help
  80. Number of the instruction as configured in QSYS Builder.
  81. comment "Cache settings"
  82. config CUSTOM_CACHE_SETTINGS
  83. bool "Custom cache settings"
  84. help
  85. This option allows you to tweak the cache settings used during early
  86. boot (where the information from device tree is not yet available).
  87. There should be no reason to change these values. Linux will work
  88. perfectly fine, even if the Nios II is configured with smaller caches.
  89. Say N here unless you know what you are doing.
  90. config NIOS2_DCACHE_SIZE
  91. hex "D-Cache size" if CUSTOM_CACHE_SETTINGS
  92. range 0x200 0x10000
  93. default "0x800"
  94. help
  95. Maximum possible data cache size.
  96. config NIOS2_DCACHE_LINE_SIZE
  97. hex "D-Cache line size" if CUSTOM_CACHE_SETTINGS
  98. range 0x10 0x20
  99. default "0x20"
  100. help
  101. Minimum possible data cache line size.
  102. config NIOS2_ICACHE_SIZE
  103. hex "I-Cache size" if CUSTOM_CACHE_SETTINGS
  104. range 0x200 0x10000
  105. default "0x1000"
  106. help
  107. Maximum possible instruction cache size.
  108. endmenu