Kconfig.storage 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. menu "Storage setting"
  2. choice
  3. prompt "Flash Size Select"
  4. config SPI_FLASH_SIZE_2M
  5. bool "2M"
  6. help
  7. SPI Flash Size 2M
  8. config SPI_FLASH_SIZE_4M
  9. bool "4M"
  10. help
  11. SPI Flash Size 4M
  12. config SPI_FLASH_SIZE_8M
  13. bool "8M"
  14. help
  15. SPI Flash Size 8M
  16. config SPI_FLASH_SIZE_16M
  17. bool "16M"
  18. help
  19. SPI Flash Size 16M
  20. config SPI_FLASH_SIZE_32M
  21. bool "32M"
  22. help
  23. SPI Flash Size 32M
  24. endchoice
  25. config CODE_FLASH_SIZE
  26. int
  27. default 2048 if SPI_FLASH_SIZE_2M
  28. default 4096 if SPI_FLASH_SIZE_4M
  29. default 8192 if SPI_FLASH_SIZE_8M
  30. default 16384 if SPI_FLASH_SIZE_16M
  31. default 32768 if SPI_FLASH_SIZE_32M
  32. config DATA_FLASH_SIZE
  33. int
  34. default 0
  35. choice
  36. prompt "Support nvm (user data) size"
  37. config SPI_SIMFS_FLASHSIZE_32K
  38. depends on SPI_FLASH_SIZE_2M
  39. bool "32K"
  40. config SPI_SIMFS_FLASHSIZE_64K
  41. depends on SPI_FLASH_SIZE_2M
  42. bool "64K"
  43. config SPI_SIMFS_FLASHSIZE_32K
  44. depends on SPI_FLASH_SIZE_4M
  45. bool "32K"
  46. config SPI_SIMFS_FLASHSIZE_64K
  47. depends on SPI_FLASH_SIZE_4M
  48. bool "64K"
  49. config SPI_SIMFS_FLASHSIZE_128K
  50. depends on SPI_FLASH_SIZE_4M
  51. bool "128K"
  52. config SPI_SIMFS_FLASHSIZE_256K
  53. depends on SPI_FLASH_SIZE_4M
  54. bool "256K"
  55. config SPI_SIMFS_FLASHSIZE_64K
  56. depends on SPI_FLASH_SIZE_8M
  57. bool "64K"
  58. config SPI_SIMFS_FLASHSIZE_128K
  59. depends on SPI_FLASH_SIZE_8M
  60. bool "128K"
  61. config SPI_SIMFS_FLASHSIZE_1M
  62. depends on SPI_FLASH_SIZE_8M
  63. bool "1M"
  64. config SPI_SIMFS_FLASHSIZE_2M
  65. depends on SPI_FLASH_SIZE_8M
  66. bool "2M"
  67. config SPI_SIMFS_FLASHSIZE_64K
  68. depends on SPI_FLASH_SIZE_16M
  69. bool "64K"
  70. config SPI_SIMFS_FLASHSIZE_128K
  71. depends on SPI_FLASH_SIZE_16M
  72. bool "128K"
  73. config SPI_SIMFS_FLASHSIZE_1M
  74. depends on SPI_FLASH_SIZE_16M
  75. bool "1M"
  76. config SPI_SIMFS_FLASHSIZE_2M
  77. depends on SPI_FLASH_SIZE_16M
  78. bool "2M"
  79. endchoice
  80. config SPI_SIMFS_FLASHSIZE
  81. int
  82. default 32 if SPI_SIMFS_FLASHSIZE_32K
  83. default 64 if SPI_SIMFS_FLASHSIZE_64K
  84. default 128 if SPI_SIMFS_FLASHSIZE_128K
  85. default 256 if SPI_SIMFS_FLASHSIZE_256K
  86. default 1024 if SPI_SIMFS_FLASHSIZE_1M
  87. default 2048 if SPI_SIMFS_FLASHSIZE_2M
  88. config FLASH_KEYSTORAGE_END_OFFSET
  89. hex
  90. #prompt "edid,hdcp/ci key save address"
  91. default 0x1f8000 if SPI_FLASH_SIZE_2M && SPI_SIMFS_FLASHSIZE_32K
  92. default 0x1f0000 if SPI_FLASH_SIZE_2M && SPI_SIMFS_FLASHSIZE_64K
  93. default 0x3f8000 if SPI_FLASH_SIZE_4M && SPI_SIMFS_FLASHSIZE_32K
  94. default 0x3f0000 if SPI_FLASH_SIZE_4M && SPI_SIMFS_FLASHSIZE_64K
  95. default 0x3e0000 if SPI_FLASH_SIZE_4M && SPI_SIMFS_FLASHSIZE_128K
  96. default 0x3c0000 if SPI_FLASH_SIZE_4M && SPI_SIMFS_FLASHSIZE_256K
  97. default 0x7f0000 if SPI_FLASH_SIZE_8M && SPI_SIMFS_FLASHSIZE_64K
  98. default 0x7e0000 if SPI_FLASH_SIZE_8M && SPI_SIMFS_FLASHSIZE_128K
  99. default 0x700000 if SPI_FLASH_SIZE_8M && SPI_SIMFS_FLASHSIZE_1M
  100. default 0x600000 if SPI_FLASH_SIZE_8M && SPI_SIMFS_FLASHSIZE_2M
  101. default 0xff0000 if SPI_FLASH_SIZE_16M && SPI_SIMFS_FLASHSIZE_64K
  102. default 0xfe0000 if SPI_FLASH_SIZE_16M && SPI_SIMFS_FLASHSIZE_128K
  103. default 0xf00000 if SPI_FLASH_SIZE_16M && SPI_SIMFS_FLASHSIZE_1M
  104. default 0xe00000 if SPI_FLASH_SIZE_16M && SPI_SIMFS_FLASHSIZE_2M
  105. config FLASH_KEYSTORAGE_ALIGNMENT_4K
  106. bool
  107. #prompt "Edid,HDCP,CI keys with 4k alignment"
  108. default y
  109. help
  110. Enable this feature will waste 8k flash size
  111. but get more flexible when update keys.
  112. if unsure say N.
  113. config SUPPORT_ROMTER
  114. bool
  115. prompt "SUPPORT_ROMTER"
  116. default n
  117. config NAND_FLASH
  118. bool
  119. prompt "Nand-flash support"
  120. default n
  121. endmenu # "Storage setting"