Kconfig 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. if ARCH_AT91
  2. config HAVE_AT91_UTMI
  3. bool
  4. config HAVE_AT91_USB_CLK
  5. bool
  6. config HAVE_AT91_DBGU0
  7. bool
  8. config HAVE_AT91_DBGU1
  9. bool
  10. config AT91_USE_OLD_CLK
  11. bool
  12. config AT91_PMC_UNIT
  13. bool
  14. default !ARCH_AT91X40
  15. config COMMON_CLK_AT91
  16. bool
  17. default AT91_PMC_UNIT && USE_OF && !AT91_USE_OLD_CLK
  18. select COMMON_CLK
  19. config OLD_CLK_AT91
  20. bool
  21. default AT91_PMC_UNIT && AT91_USE_OLD_CLK
  22. config AT91_SAM9_ALT_RESET
  23. bool
  24. default !ARCH_AT91X40
  25. config AT91_SAM9G45_RESET
  26. bool
  27. default !ARCH_AT91X40
  28. config AT91_SAM9_TIME
  29. bool
  30. config HAVE_AT91_SMD
  31. bool
  32. config SOC_AT91SAM9
  33. bool
  34. select AT91_SAM9_TIME
  35. select CPU_ARM926T
  36. select GENERIC_CLOCKEVENTS
  37. select MULTI_IRQ_HANDLER
  38. select SPARSE_IRQ
  39. config SOC_SAMA5
  40. bool
  41. select AT91_SAM9_TIME
  42. select CPU_V7
  43. select GENERIC_CLOCKEVENTS
  44. select MULTI_IRQ_HANDLER
  45. select SPARSE_IRQ
  46. select USE_OF
  47. menu "Atmel AT91 System-on-Chip"
  48. choice
  49. prompt "Core type"
  50. config ARCH_AT91X40
  51. bool "ARM7 AT91X40"
  52. depends on !MMU
  53. select CPU_ARM7TDMI
  54. select ARCH_USES_GETTIMEOFFSET
  55. select MULTI_IRQ_HANDLER
  56. select SPARSE_IRQ
  57. help
  58. Select this if you are using one of Atmel's AT91X40 SoC.
  59. config SOC_SAM_V4_V5
  60. bool "ARM9 AT91SAM9/AT91RM9200"
  61. help
  62. Select this if you are using one of Atmel's AT91SAM9 or
  63. AT91RM9200 SoC.
  64. config SOC_SAM_V7
  65. bool "Cortex A5"
  66. help
  67. Select this if you are using one of Atmel's SAMA5D3 SoC.
  68. endchoice
  69. comment "Atmel AT91 Processor"
  70. if SOC_SAM_V7
  71. config SOC_SAMA5D3
  72. bool "SAMA5D3 family"
  73. select SOC_SAMA5
  74. select HAVE_FB_ATMEL
  75. select HAVE_AT91_DBGU1
  76. select HAVE_AT91_UTMI
  77. select HAVE_AT91_SMD
  78. select HAVE_AT91_USB_CLK
  79. help
  80. Select this if you are using one of Atmel's SAMA5D3 family SoC.
  81. This support covers SAMA5D31, SAMA5D33, SAMA5D34, SAMA5D35, SAMA5D36.
  82. endif
  83. if SOC_SAM_V4_V5
  84. config SOC_AT91RM9200
  85. bool "AT91RM9200"
  86. select CPU_ARM920T
  87. select GENERIC_CLOCKEVENTS
  88. select HAVE_AT91_DBGU0
  89. select MULTI_IRQ_HANDLER
  90. select SPARSE_IRQ
  91. select HAVE_AT91_USB_CLK
  92. config SOC_AT91SAM9260
  93. bool "AT91SAM9260, AT91SAM9XE or AT91SAM9G20"
  94. select HAVE_AT91_DBGU0
  95. select SOC_AT91SAM9
  96. select HAVE_AT91_USB_CLK
  97. help
  98. Select this if you are using one of Atmel's AT91SAM9260, AT91SAM9XE
  99. or AT91SAM9G20 SoC.
  100. config SOC_AT91SAM9261
  101. bool "AT91SAM9261 or AT91SAM9G10"
  102. select HAVE_AT91_DBGU0
  103. select HAVE_FB_ATMEL
  104. select SOC_AT91SAM9
  105. select HAVE_AT91_USB_CLK
  106. help
  107. Select this if you are using one of Atmel's AT91SAM9261 or AT91SAM9G10 SoC.
  108. config SOC_AT91SAM9263
  109. bool "AT91SAM9263"
  110. select HAVE_AT91_DBGU1
  111. select HAVE_FB_ATMEL
  112. select SOC_AT91SAM9
  113. select HAVE_AT91_USB_CLK
  114. config SOC_AT91SAM9RL
  115. bool "AT91SAM9RL"
  116. select HAVE_AT91_DBGU0
  117. select HAVE_FB_ATMEL
  118. select SOC_AT91SAM9
  119. select HAVE_AT91_UTMI
  120. config SOC_AT91SAM9G45
  121. bool "AT91SAM9G45 or AT91SAM9M10 families"
  122. select HAVE_AT91_DBGU1
  123. select HAVE_FB_ATMEL
  124. select SOC_AT91SAM9
  125. select HAVE_AT91_UTMI
  126. select HAVE_AT91_USB_CLK
  127. help
  128. Select this if you are using one of Atmel's AT91SAM9G45 family SoC.
  129. This support covers AT91SAM9G45, AT91SAM9G46, AT91SAM9M10 and AT91SAM9M11.
  130. config SOC_AT91SAM9X5
  131. bool "AT91SAM9x5 family"
  132. select HAVE_AT91_DBGU0
  133. select HAVE_FB_ATMEL
  134. select SOC_AT91SAM9
  135. select HAVE_AT91_UTMI
  136. select HAVE_AT91_SMD
  137. select HAVE_AT91_USB_CLK
  138. help
  139. Select this if you are using one of Atmel's AT91SAM9x5 family SoC.
  140. This means that your SAM9 name finishes with a '5' (except if it is
  141. AT91SAM9G45!).
  142. This support covers AT91SAM9G15, AT91SAM9G25, AT91SAM9X25, AT91SAM9G35
  143. and AT91SAM9X35.
  144. config SOC_AT91SAM9N12
  145. bool "AT91SAM9N12 family"
  146. select HAVE_AT91_DBGU0
  147. select HAVE_FB_ATMEL
  148. select SOC_AT91SAM9
  149. select HAVE_AT91_USB_CLK
  150. help
  151. Select this if you are using Atmel's AT91SAM9N12 SoC.
  152. # ----------------------------------------------------------
  153. endif # SOC_SAM_V4_V5
  154. if SOC_SAM_V4_V5 || ARCH_AT91X40
  155. source arch/arm/mach-at91/Kconfig.non_dt
  156. endif
  157. comment "Generic Board Type"
  158. config MACH_AT91RM9200_DT
  159. bool "Atmel AT91RM9200 Evaluation Kits with device-tree support"
  160. depends on SOC_AT91RM9200
  161. select USE_OF
  162. help
  163. Select this if you want to experiment device-tree with
  164. an Atmel RM9200 Evaluation Kit.
  165. config MACH_AT91SAM9_DT
  166. bool "Atmel AT91SAM Evaluation Kits with device-tree support"
  167. depends on SOC_AT91SAM9
  168. select USE_OF
  169. help
  170. Select this if you want to experiment device-tree with
  171. an Atmel Evaluation Kit.
  172. config MACH_SAMA5_DT
  173. bool "Atmel SAMA5 Evaluation Kits with device-tree support"
  174. depends on SOC_SAMA5
  175. select USE_OF
  176. select PHYLIB if NETDEVICES
  177. help
  178. Select this if you want to experiment device-tree with
  179. an Atmel Evaluation Kit.
  180. # ----------------------------------------------------------
  181. comment "AT91 Feature Selections"
  182. config AT91_SLOW_CLOCK
  183. bool "Suspend-to-RAM disables main oscillator"
  184. depends on SUSPEND
  185. help
  186. Select this if you want Suspend-to-RAM to save the most power
  187. possible (without powering off the CPU) by disabling the PLLs
  188. and main oscillator so that only the 32 KiHz clock is available.
  189. When only that slow-clock is available, some peripherals lose
  190. functionality. Many can't issue wakeup events unless faster
  191. clocks are available. Some lose their operating state and
  192. need to be completely re-initialized.
  193. config AT91_TIMER_HZ
  194. int "Kernel HZ (jiffies per second)"
  195. range 32 1024
  196. depends on ARCH_AT91
  197. default "128" if ARCH_AT91RM9200
  198. default "100"
  199. help
  200. On AT91rm9200 chips where you're using a system clock derived
  201. from the 32768 Hz hardware clock, this tick rate should divide
  202. it exactly: use a power-of-two value, such as 128 or 256, to
  203. reduce timing errors caused by rounding.
  204. On AT91sam926x chips, or otherwise when using a higher precision
  205. system clock (of at least several MHz), rounding is less of a
  206. problem so it can be safer to use a decimal values like 100.
  207. endmenu
  208. endif