1
0

Config.in.flash 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. menu "Flash device support"
  4. depends on ADK_TARGET_WITH_NAND || ADK_TARGET_WITH_MTD || ADK_TARGET_QEMU
  5. config ADK_LINUX_KERNEL_MTD
  6. bool
  7. select ADK_LINUX_KERNEL_GENERIC_IO
  8. config ADK_LINUX_KERNEL_GENERIC_IO
  9. bool
  10. config ADK_LINUX_KERNEL_MTD_MTDRAM
  11. bool
  12. config ADK_LINUX_KERNEL_MTD_NAND
  13. bool
  14. config ADK_LINUX_KERNEL_MTD_NAND_PLATFORM
  15. bool
  16. config ADK_LINUX_KERNEL_MTD_CMDLINE_PARTS
  17. bool
  18. config ADK_LINUX_KERNEL_MTD_CONCAT
  19. bool
  20. config ADK_LINUX_KERNEL_MTD_CHAR
  21. bool
  22. config ADK_LINUX_KERNEL_MTD_CMDLINE_PARTS
  23. bool
  24. config ADK_LINUX_KERNEL_MTD_BLKDEVS
  25. bool
  26. config ADK_LINUX_KERNEL_MTD_BLOCK
  27. bool
  28. config ADK_LINUX_KERNEL_MTD_PARTITIONS
  29. bool
  30. config ADK_LINUX_KERNEL_MTD_ROOTFS_ROOT_DEV
  31. bool
  32. config ADK_LINUX_KERNEL_MTD_CFI
  33. bool
  34. config ADK_LINUX_KERNEL_MTD_GEN_PROBE
  35. bool
  36. config ADK_LINUX_KERNEL_MTD_PHYSMAP
  37. bool
  38. config ADK_LINUX_KERNEL_MTD_PHYSMAP_OF
  39. bool
  40. config ADK_LINUX_KERNEL_MTD_CFI_ADV_OPTIONS
  41. bool
  42. config ADK_LINUX_KERNEL_MTD_NAND_RB4XX
  43. bool
  44. config ADK_LINUX_KERNEL_MTD_AR7_PARTS
  45. bool
  46. config ADK_LINUX_KERNEL_MTD_CFI_INTELEXT
  47. bool
  48. config ADK_LINUX_KERNEL_MTD_CFI_AMDSTD
  49. bool
  50. config ADK_LINUX_KERNEL_MTD_CFI_STAA
  51. bool
  52. config ADK_LINUX_KERNEL_MTD_OF_PARTS
  53. bool
  54. config ADK_LINUX_KERNEL_ETRAX_AXISFLASHMAP
  55. bool "Axis Flashmap driver"
  56. select ADK_LINUX_KERNEL_BLOCK
  57. select ADK_LINUX_KERNEL_MTD
  58. select ADK_LINUX_KERNEL_MTD_PARTITIONS
  59. select ADK_LINUX_KERNEL_MTD_CHAR
  60. select ADK_LINUX_KERNEL_MTD_BLKDEVS
  61. select ADK_LINUX_KERNEL_MTD_BLOCK
  62. select ADK_LINUX_KERNEL_MTD_ROOTFS_ROOT_DEV
  63. select ADK_LINUX_KERNEL_MTD_CFI
  64. select ADK_LINUX_KERNEL_MTD_CFI_INTELEXT
  65. depends on ADK_TARGET_SYSTEM_FOXBOARD_LX832
  66. default y if ADK_TARGET_SYSTEM_FOXBOARD_LX832
  67. config ADK_LINUX_KERNEL_MTD_M25P80
  68. bool "MTD M25P80 driver"
  69. select ADK_LINUX_KERNEL_BLOCK
  70. select ADK_LINUX_KERNEL_MTD
  71. select ADK_LINUX_KERNEL_MTD_PARTITIONS
  72. select ADK_LINUX_KERNEL_MTD_CHAR
  73. select ADK_LINUX_KERNEL_MTD_BLKDEVS
  74. select ADK_LINUX_KERNEL_MTD_BLOCK
  75. select ADK_LINUX_KERNEL_MTD_ROOTFS_ROOT_DEV
  76. select ADK_LINUX_KERNEL_MTD_CFI
  77. select ADK_LINUX_KERNEL_MTD_CFI_INTELEXT
  78. select ADK_LINUX_KERNEL_MTD_GEN_PROBE
  79. select ADK_LINUX_KERNEL_MTD_PHYSMAP
  80. select ADK_LINUX_KERNEL_MTD_PHYSMAP_OF
  81. select ADK_LINUX_KERNEL_MTD_OF_PARTS
  82. select ADK_LINUX_KERNEL_SPI
  83. select ADK_LINUX_KERNEL_SPI_MASTER
  84. depends on ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_S3ADSP1800 \
  85. || ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_ML605
  86. default n
  87. config ADK_LINUX_KERNEL_MTD_NAND_PLATFORM
  88. bool "NAND platform driver"
  89. select ADK_LINUX_KERNEL_BLOCK
  90. select ADK_LINUX_KERNEL_MISC_FILESYSTEMS
  91. select ADK_LINUX_KERNEL_MTD
  92. select ADK_LINUX_KERNEL_MTD_PARTITIONS
  93. select ADK_LINUX_KERNEL_MTD_NAND
  94. select ADK_LINUX_KERNEL_MTD_CHAR
  95. select ADK_LINUX_KERNEL_MTD_BLKDEVS
  96. select ADK_LINUX_KERNEL_MTD_BLOCK
  97. depends on ADK_TARGET_SYSTEM_MIKROTIK_RB532
  98. default y if ADK_TARGET_SYSTEM_MIKROTIK_RB532
  99. default n
  100. help
  101. platform nand driver
  102. config ADK_LINUX_KERNEL_MTD_NAND_FSL_NFC
  103. bool "NAND driver for Kinetis K70"
  104. select ADK_LINUX_KERNEL_MISC_FILESYSTEMS
  105. select ADK_LINUX_KERNEL_MTD
  106. select ADK_LINUX_KERNEL_MTD_PARTITIONS
  107. select ADK_LINUX_KERNEL_MTD_NAND
  108. select ADK_LINUX_KERNEL_MTD_CHAR
  109. select ADK_LINUX_KERNEL_MTD_CONCAT
  110. select ADK_LINUX_KERNEL_MTD_BLKDEVS
  111. select ADK_LINUX_KERNEL_MTD_BLOCK
  112. select ADK_LINUX_KERNEL_MTD_CMDLINE_PARTS
  113. depends on ADK_TARGET_SYSTEM_KINETIS_K70
  114. default y if ADK_TARGET_SYSTEM_KINETIS_K70
  115. default n
  116. config ADK_HARDWARE_FLASH_GRASSHOPPER
  117. bool "enable flash driver for grasshopper"
  118. select ADK_LINUX_KERNEL_MTD
  119. select ADK_LINUX_KERNEL_MTD_BLKDEVS
  120. select ADK_LINUX_KERNEL_MTD_BLOCK
  121. select ADK_LINUX_KERNEL_MTD_CMDLINE_PARTS
  122. select ADK_LINUX_KERNEL_MTD_CFI
  123. select ADK_LINUX_KERNEL_MTD_CFI_INTELEXT
  124. select ADK_LINUX_KERNEL_MTD_CFI_AMDSTD
  125. select ADK_LINUX_KERNEL_MTD_CFI_STAA
  126. select ADK_LINUX_KERNEL_MTD_PHYSMAP
  127. select ADK_LINUX_KERNEL_MTD_PHYSMAP_OF
  128. depends on ADK_TARGET_SYSTEM_GRASSHOPPER
  129. default y if ADK_TARGET_SYSTEM_GRASSHOPPER
  130. default n
  131. config ADK_TARGET_MTD_SIZE
  132. int
  133. depends on ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_S3ADSP1800 \
  134. || ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_ML605 \
  135. || ADK_TARGET_SYSTEM_QEMU_ARM_VEXPRESS_A9 \
  136. || ADK_TARGET_SYSTEM_MIKROTIK_RB532
  137. default "16777216" if ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_S3ADSP1800
  138. default "33554432" if ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_ML605
  139. default "134217728" if ADK_TARGET_SYSTEM_MIKROTIK_RB532
  140. default "0"
  141. config ADK_TARGET_FLASH_PEB_SIZE
  142. int
  143. default 131072 if ADK_TARGET_SYSTEM_MIKROTIK_RB532
  144. help
  145. Physical Erase Block size.
  146. config ADK_TARGET_FLASH_PAGE_SIZE
  147. int
  148. default 2048 if ADK_TARGET_SYSTEM_MIKROTIK_RB532
  149. help
  150. Minimum input/output size.
  151. config ADK_TARGET_FLASH_SUBPAGE_SIZE
  152. int
  153. default 512 if ADK_TARGET_SYSTEM_MIKROTIK_RB532
  154. help
  155. Size of NAND sub-pages (if supported).
  156. endmenu