Kconfig 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955
  1. if ARCH_SUNXI
  2. config SPL_LDSCRIPT
  3. default "arch/arm/cpu/armv7/sunxi/u-boot-spl.lds" if !ARM64
  4. config IDENT_STRING
  5. default " Allwinner Technology"
  6. config DRAM_SUN4I
  7. bool
  8. help
  9. Select this dram controller driver for Sun4/5/7i platforms,
  10. like A10/A13/A20.
  11. config DRAM_SUN6I
  12. bool
  13. help
  14. Select this dram controller driver for Sun6i platforms,
  15. like A31/A31s.
  16. config DRAM_SUN8I_A23
  17. bool
  18. help
  19. Select this dram controller driver for Sun8i platforms,
  20. for A23 SOC.
  21. config DRAM_SUN8I_A33
  22. bool
  23. help
  24. Select this dram controller driver for Sun8i platforms,
  25. for A33 SOC.
  26. config DRAM_SUN8I_A83T
  27. bool
  28. help
  29. Select this dram controller driver for Sun8i platforms,
  30. for A83T SOC.
  31. config DRAM_SUN9I
  32. bool
  33. help
  34. Select this dram controller driver for Sun9i platforms,
  35. like A80.
  36. config SUN6I_P2WI
  37. bool "Allwinner sun6i internal P2WI controller"
  38. help
  39. If you say yes to this option, support will be included for the
  40. P2WI (Push/Pull 2 Wire Interface) controller embedded in some sunxi
  41. SOCs.
  42. The P2WI looks like an SMBus controller (which supports only byte
  43. accesses), except that it only supports one slave device.
  44. This interface is used to connect to specific PMIC devices (like the
  45. AXP221).
  46. config SUN6I_PRCM
  47. bool
  48. help
  49. Support for the PRCM (Power/Reset/Clock Management) unit available
  50. in A31 SoC.
  51. config AXP_PMIC_BUS
  52. bool "Sunxi AXP PMIC bus access helpers"
  53. help
  54. Select this PMIC bus access helpers for Sunxi platform PRCM or other
  55. AXP family PMIC devices.
  56. config SUN8I_RSB
  57. bool "Allwinner sunXi Reduced Serial Bus Driver"
  58. help
  59. Say y here to enable support for Allwinner's Reduced Serial Bus
  60. (RSB) support. This controller is responsible for communicating
  61. with various RSB based devices, such as AXP223, AXP8XX PMICs,
  62. and AC100/AC200 ICs.
  63. config SUNXI_HIGH_SRAM
  64. bool
  65. default n
  66. ---help---
  67. Older Allwinner SoCs have their mask boot ROM mapped just below 4GB,
  68. with the first SRAM region being located at address 0.
  69. Some newer SoCs map the boot ROM at address 0 instead and move the
  70. SRAM to 64KB, just behind the mask ROM.
  71. Chips using the latter setup are supposed to select this option to
  72. adjust the addresses accordingly.
  73. config SUNXI_A64_TIMER_ERRATUM
  74. bool
  75. # Note only one of these may be selected at a time! But hidden choices are
  76. # not supported by Kconfig
  77. config SUNXI_GEN_SUN4I
  78. bool
  79. ---help---
  80. Select this for sunxi SoCs which have resets and clocks set up
  81. as the original A10 (mach-sun4i).
  82. config SUNXI_GEN_SUN6I
  83. bool
  84. ---help---
  85. Select this for sunxi SoCs which have sun6i like periphery, like
  86. separate ahb reset control registers, custom pmic bus, new style
  87. watchdog, etc.
  88. config SUNXI_DRAM_DW
  89. bool
  90. ---help---
  91. Select this for sunxi SoCs which uses a DRAM controller like the
  92. DesignWare controller used in H3, mainly SoCs after H3, which do
  93. not have official open-source DRAM initialization code, but can
  94. use modified H3 DRAM initialization code.
  95. if SUNXI_DRAM_DW
  96. config SUNXI_DRAM_DW_16BIT
  97. bool
  98. ---help---
  99. Select this for sunxi SoCs with DesignWare DRAM controller and
  100. have only 16-bit memory buswidth.
  101. config SUNXI_DRAM_DW_32BIT
  102. bool
  103. ---help---
  104. Select this for sunxi SoCs with DesignWare DRAM controller with
  105. 32-bit memory buswidth.
  106. endif
  107. config MACH_SUNXI_H3_H5
  108. bool
  109. select DM_I2C
  110. select PHY_SUN4I_USB
  111. select SUNXI_DE2
  112. select SUNXI_DRAM_DW
  113. select SUNXI_DRAM_DW_32BIT
  114. select SUNXI_GEN_SUN6I
  115. select SUPPORT_SPL
  116. choice
  117. prompt "Sunxi SoC Variant"
  118. optional
  119. config MACH_SUN4I
  120. bool "sun4i (Allwinner A10)"
  121. select CPU_V7A
  122. select ARM_CORTEX_CPU_IS_UP
  123. select PHY_SUN4I_USB
  124. select DRAM_SUN4I
  125. select SUNXI_GEN_SUN4I
  126. select SUPPORT_SPL
  127. config MACH_SUN5I
  128. bool "sun5i (Allwinner A13)"
  129. select CPU_V7A
  130. select ARM_CORTEX_CPU_IS_UP
  131. select DRAM_SUN4I
  132. select PHY_SUN4I_USB
  133. select SUNXI_GEN_SUN4I
  134. select SUPPORT_SPL
  135. imply CONS_INDEX_2 if !DM_SERIAL
  136. config MACH_SUN6I
  137. bool "sun6i (Allwinner A31)"
  138. select CPU_V7A
  139. select CPU_V7_HAS_NONSEC
  140. select CPU_V7_HAS_VIRT
  141. select ARCH_SUPPORT_PSCI
  142. select DRAM_SUN6I
  143. select PHY_SUN4I_USB
  144. select SUN6I_P2WI
  145. select SUN6I_PRCM
  146. select SUNXI_GEN_SUN6I
  147. select SUPPORT_SPL
  148. select ARMV7_BOOT_SEC_DEFAULT if OLD_SUNXI_KERNEL_COMPAT
  149. config MACH_SUN7I
  150. bool "sun7i (Allwinner A20)"
  151. select CPU_V7A
  152. select CPU_V7_HAS_NONSEC
  153. select CPU_V7_HAS_VIRT
  154. select ARCH_SUPPORT_PSCI
  155. select DRAM_SUN4I
  156. select PHY_SUN4I_USB
  157. select SUNXI_GEN_SUN4I
  158. select SUPPORT_SPL
  159. select ARMV7_BOOT_SEC_DEFAULT if OLD_SUNXI_KERNEL_COMPAT
  160. config MACH_SUN8I_A23
  161. bool "sun8i (Allwinner A23)"
  162. select CPU_V7A
  163. select CPU_V7_HAS_NONSEC
  164. select CPU_V7_HAS_VIRT
  165. select ARCH_SUPPORT_PSCI
  166. select DRAM_SUN8I_A23
  167. select PHY_SUN4I_USB
  168. select SUNXI_GEN_SUN6I
  169. select SUPPORT_SPL
  170. select ARMV7_BOOT_SEC_DEFAULT if OLD_SUNXI_KERNEL_COMPAT
  171. imply CONS_INDEX_5 if !DM_SERIAL
  172. config MACH_SUN8I_A33
  173. bool "sun8i (Allwinner A33)"
  174. select CPU_V7A
  175. select CPU_V7_HAS_NONSEC
  176. select CPU_V7_HAS_VIRT
  177. select ARCH_SUPPORT_PSCI
  178. select DRAM_SUN8I_A33
  179. select PHY_SUN4I_USB
  180. select SUNXI_GEN_SUN6I
  181. select SUPPORT_SPL
  182. select ARMV7_BOOT_SEC_DEFAULT if OLD_SUNXI_KERNEL_COMPAT
  183. imply CONS_INDEX_5 if !DM_SERIAL
  184. config MACH_SUN8I_A83T
  185. bool "sun8i (Allwinner A83T)"
  186. select CPU_V7A
  187. select DRAM_SUN8I_A83T
  188. select PHY_SUN4I_USB
  189. select SUNXI_GEN_SUN6I
  190. select MMC_SUNXI_HAS_NEW_MODE
  191. select SUPPORT_SPL
  192. config MACH_SUN8I_H3
  193. bool "sun8i (Allwinner H3)"
  194. select CPU_V7A
  195. select CPU_V7_HAS_NONSEC
  196. select CPU_V7_HAS_VIRT
  197. select ARCH_SUPPORT_PSCI
  198. select MACH_SUNXI_H3_H5
  199. select ARMV7_BOOT_SEC_DEFAULT if OLD_SUNXI_KERNEL_COMPAT
  200. config MACH_SUN8I_R40
  201. bool "sun8i (Allwinner R40)"
  202. select CPU_V7A
  203. select CPU_V7_HAS_NONSEC
  204. select CPU_V7_HAS_VIRT
  205. select ARCH_SUPPORT_PSCI
  206. select SUNXI_GEN_SUN6I
  207. select SUPPORT_SPL
  208. select SUNXI_DRAM_DW
  209. select SUNXI_DRAM_DW_32BIT
  210. config MACH_SUN8I_V3S
  211. bool "sun8i (Allwinner V3s)"
  212. select CPU_V7A
  213. select CPU_V7_HAS_NONSEC
  214. select CPU_V7_HAS_VIRT
  215. select ARCH_SUPPORT_PSCI
  216. select SUNXI_GEN_SUN6I
  217. select SUNXI_DRAM_DW
  218. select SUNXI_DRAM_DW_16BIT
  219. select SUPPORT_SPL
  220. select ARMV7_BOOT_SEC_DEFAULT if OLD_SUNXI_KERNEL_COMPAT
  221. config MACH_SUN9I
  222. bool "sun9i (Allwinner A80)"
  223. select CPU_V7A
  224. select DRAM_SUN9I
  225. select SUN6I_PRCM
  226. select SUNXI_HIGH_SRAM
  227. select SUNXI_GEN_SUN6I
  228. select SUN8I_RSB
  229. select SUPPORT_SPL
  230. config MACH_SUN50I
  231. bool "sun50i (Allwinner A64)"
  232. select ARM64
  233. select DM_I2C
  234. select PHY_SUN4I_USB
  235. select SUNXI_DE2
  236. select SUNXI_GEN_SUN6I
  237. select SUNXI_HIGH_SRAM
  238. select SUPPORT_SPL
  239. select SUNXI_DRAM_DW
  240. select SUNXI_DRAM_DW_32BIT
  241. select FIT
  242. select SPL_LOAD_FIT
  243. select SUNXI_A64_TIMER_ERRATUM
  244. config MACH_SUN50I_H5
  245. bool "sun50i (Allwinner H5)"
  246. select ARM64
  247. select MACH_SUNXI_H3_H5
  248. select SUNXI_HIGH_SRAM
  249. select FIT
  250. select SPL_LOAD_FIT
  251. endchoice
  252. # The sun8i SoCs share a lot, this helps to avoid a lot of "if A23 || A33"
  253. config MACH_SUN8I
  254. bool
  255. select SUN8I_RSB
  256. select SUN6I_PRCM
  257. default y if MACH_SUN8I_A23
  258. default y if MACH_SUN8I_A33
  259. default y if MACH_SUN8I_A83T
  260. default y if MACH_SUNXI_H3_H5
  261. default y if MACH_SUN8I_R40
  262. default y if MACH_SUN8I_V3S
  263. config RESERVE_ALLWINNER_BOOT0_HEADER
  264. bool "reserve space for Allwinner boot0 header"
  265. select ENABLE_ARM_SOC_BOOT0_HOOK
  266. ---help---
  267. Prepend a 1536 byte (empty) header to the U-Boot image file, to be
  268. filled with magic values post build. The Allwinner provided boot0
  269. blob relies on this information to load and execute U-Boot.
  270. Only needed on 64-bit Allwinner boards so far when using boot0.
  271. config ARM_BOOT_HOOK_RMR
  272. bool
  273. depends on ARM64
  274. default y
  275. select ENABLE_ARM_SOC_BOOT0_HOOK
  276. ---help---
  277. Insert some ARM32 code at the very beginning of the U-Boot binary
  278. which uses an RMR register write to bring the core into AArch64 mode.
  279. The very first instruction acts as a switch, since it's carefully
  280. chosen to be a NOP in one mode and a branch in the other, so the
  281. code would only be executed if not already in AArch64.
  282. This allows both the SPL and the U-Boot proper to be entered in
  283. either mode and switch to AArch64 if needed.
  284. if SUNXI_DRAM_DW
  285. config SUNXI_DRAM_DDR3
  286. bool
  287. config SUNXI_DRAM_DDR2
  288. bool
  289. config SUNXI_DRAM_LPDDR3
  290. bool
  291. choice
  292. prompt "DRAM Type and Timing"
  293. default SUNXI_DRAM_DDR3_1333 if !MACH_SUN8I_V3S
  294. default SUNXI_DRAM_DDR2_V3S if MACH_SUN8I_V3S
  295. config SUNXI_DRAM_DDR3_1333
  296. bool "DDR3 1333"
  297. select SUNXI_DRAM_DDR3
  298. depends on !MACH_SUN8I_V3S
  299. ---help---
  300. This option is the original only supported memory type, which suits
  301. many H3/H5/A64 boards available now.
  302. config SUNXI_DRAM_LPDDR3_STOCK
  303. bool "LPDDR3 with Allwinner stock configuration"
  304. select SUNXI_DRAM_LPDDR3
  305. ---help---
  306. This option is the LPDDR3 timing used by the stock boot0 by
  307. Allwinner.
  308. config SUNXI_DRAM_DDR2_V3S
  309. bool "DDR2 found in V3s chip"
  310. select SUNXI_DRAM_DDR2
  311. depends on MACH_SUN8I_V3S
  312. ---help---
  313. This option is only for the DDR2 memory chip which is co-packaged in
  314. Allwinner V3s SoC.
  315. endchoice
  316. endif
  317. config DRAM_TYPE
  318. int "sunxi dram type"
  319. depends on MACH_SUN8I_A83T
  320. default 3
  321. ---help---
  322. Set the dram type, 3: DDR3, 7: LPDDR3
  323. config DRAM_CLK
  324. int "sunxi dram clock speed"
  325. default 792 if MACH_SUN9I
  326. default 648 if MACH_SUN8I_R40
  327. default 312 if MACH_SUN6I || MACH_SUN8I
  328. default 360 if MACH_SUN4I || MACH_SUN5I || MACH_SUN7I || \
  329. MACH_SUN8I_V3S
  330. default 672 if MACH_SUN50I
  331. ---help---
  332. Set the dram clock speed, valid range 240 - 480 (prior to sun9i),
  333. must be a multiple of 24. For the sun9i (A80), the tested values
  334. (for DDR3-1600) are 312 to 792.
  335. if MACH_SUN5I || MACH_SUN7I
  336. config DRAM_MBUS_CLK
  337. int "sunxi mbus clock speed"
  338. default 300
  339. ---help---
  340. Set the mbus clock speed. The maximum on sun5i hardware is 300MHz.
  341. endif
  342. config DRAM_ZQ
  343. int "sunxi dram zq value"
  344. default 123 if MACH_SUN4I || MACH_SUN5I || MACH_SUN6I || MACH_SUN8I
  345. default 127 if MACH_SUN7I
  346. default 14779 if MACH_SUN8I_V3S
  347. default 3881979 if MACH_SUN8I_R40
  348. default 4145117 if MACH_SUN9I
  349. default 3881915 if MACH_SUN50I
  350. ---help---
  351. Set the dram zq value.
  352. config DRAM_ODT_EN
  353. bool "sunxi dram odt enable"
  354. default n if !MACH_SUN8I_A23
  355. default y if MACH_SUN8I_A23
  356. default y if MACH_SUN8I_R40
  357. default y if MACH_SUN50I
  358. ---help---
  359. Select this to enable dram odt (on die termination).
  360. if MACH_SUN4I || MACH_SUN5I || MACH_SUN7I
  361. config DRAM_EMR1
  362. int "sunxi dram emr1 value"
  363. default 0 if MACH_SUN4I
  364. default 4 if MACH_SUN5I || MACH_SUN7I
  365. ---help---
  366. Set the dram controller emr1 value.
  367. config DRAM_TPR3
  368. hex "sunxi dram tpr3 value"
  369. default 0
  370. ---help---
  371. Set the dram controller tpr3 parameter. This parameter configures
  372. the delay on the command lane and also phase shifts, which are
  373. applied for sampling incoming read data. The default value 0
  374. means that no phase/delay adjustments are necessary. Properly
  375. configuring this parameter increases reliability at high DRAM
  376. clock speeds.
  377. config DRAM_DQS_GATING_DELAY
  378. hex "sunxi dram dqs_gating_delay value"
  379. default 0
  380. ---help---
  381. Set the dram controller dqs_gating_delay parmeter. Each byte
  382. encodes the DQS gating delay for each byte lane. The delay
  383. granularity is 1/4 cycle. For example, the value 0x05060606
  384. means that the delay is 5 quarter-cycles for one lane (1.25
  385. cycles) and 6 quarter-cycles (1.5 cycles) for 3 other lanes.
  386. The default value 0 means autodetection. The results of hardware
  387. autodetection are not very reliable and depend on the chip
  388. temperature (sometimes producing different results on cold start
  389. and warm reboot). But the accuracy of hardware autodetection
  390. is usually good enough, unless running at really high DRAM
  391. clocks speeds (up to 600MHz). If unsure, keep as 0.
  392. choice
  393. prompt "sunxi dram timings"
  394. default DRAM_TIMINGS_VENDOR_MAGIC
  395. ---help---
  396. Select the timings of the DDR3 chips.
  397. config DRAM_TIMINGS_VENDOR_MAGIC
  398. bool "Magic vendor timings from Android"
  399. ---help---
  400. The same DRAM timings as in the Allwinner boot0 bootloader.
  401. config DRAM_TIMINGS_DDR3_1066F_1333H
  402. bool "JEDEC DDR3-1333H with down binning to DDR3-1066F"
  403. ---help---
  404. Use the timings of the standard JEDEC DDR3-1066F speed bin for
  405. DRAM_CLK <= 533MHz and the timings of the DDR3-1333H speed bin
  406. for DRAM_CLK > 533MHz. This covers the majority of DDR3 chips
  407. used in Allwinner A10/A13/A20 devices. In the case of DDR3-1333
  408. or DDR3-1600 chips, be sure to check the DRAM datasheet to confirm
  409. that down binning to DDR3-1066F is supported (because DDR3-1066F
  410. uses a bit faster timings than DDR3-1333H).
  411. config DRAM_TIMINGS_DDR3_800E_1066G_1333J
  412. bool "JEDEC DDR3-800E / DDR3-1066G / DDR3-1333J"
  413. ---help---
  414. Use the timings of the slowest possible JEDEC speed bin for the
  415. selected DRAM_CLK. Depending on the DRAM_CLK value, it may be
  416. DDR3-800E, DDR3-1066G or DDR3-1333J.
  417. endchoice
  418. endif
  419. if MACH_SUN8I_A23
  420. config DRAM_ODT_CORRECTION
  421. int "sunxi dram odt correction value"
  422. default 0
  423. ---help---
  424. Set the dram odt correction value (range -255 - 255). In allwinner
  425. fex files, this option is found in bits 8-15 of the u32 odt_en variable
  426. in the [dram] section. When bit 31 of the odt_en variable is set
  427. then the correction is negative. Usually the value for this is 0.
  428. endif
  429. config SYS_CLK_FREQ
  430. default 1008000000 if MACH_SUN4I
  431. default 1008000000 if MACH_SUN5I
  432. default 1008000000 if MACH_SUN6I
  433. default 912000000 if MACH_SUN7I
  434. default 816000000 if MACH_SUN50I || MACH_SUN50I_H5
  435. default 1008000000 if MACH_SUN8I
  436. default 1008000000 if MACH_SUN9I
  437. config SYS_CONFIG_NAME
  438. default "sun4i" if MACH_SUN4I
  439. default "sun5i" if MACH_SUN5I
  440. default "sun6i" if MACH_SUN6I
  441. default "sun7i" if MACH_SUN7I
  442. default "sun8i" if MACH_SUN8I
  443. default "sun9i" if MACH_SUN9I
  444. default "sun50i" if MACH_SUN50I
  445. config SYS_BOARD
  446. default "sunxi"
  447. config SYS_SOC
  448. default "sunxi"
  449. config UART0_PORT_F
  450. bool "UART0 on MicroSD breakout board"
  451. default n
  452. ---help---
  453. Repurpose the SD card slot for getting access to the UART0 serial
  454. console. Primarily useful only for low level u-boot debugging on
  455. tablets, where normal UART0 is difficult to access and requires
  456. device disassembly and/or soldering. As the SD card can't be used
  457. at the same time, the system can be only booted in the FEL mode.
  458. Only enable this if you really know what you are doing.
  459. config OLD_SUNXI_KERNEL_COMPAT
  460. bool "Enable workarounds for booting old kernels"
  461. default n
  462. ---help---
  463. Set this to enable various workarounds for old kernels, this results in
  464. sub-optimal settings for newer kernels, only enable if needed.
  465. config MACPWR
  466. string "MAC power pin"
  467. default ""
  468. help
  469. Set the pin used to power the MAC. This takes a string in the format
  470. understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of port H.
  471. config MMC0_CD_PIN
  472. string "Card detect pin for mmc0"
  473. default "PF6" if MACH_SUN8I_A83T || MACH_SUNXI_H3_H5 || MACH_SUN50I
  474. default ""
  475. ---help---
  476. Set the card detect pin for mmc0, leave empty to not use cd. This
  477. takes a string in the format understood by sunxi_name_to_gpio, e.g.
  478. PH1 for pin 1 of port H.
  479. config MMC1_CD_PIN
  480. string "Card detect pin for mmc1"
  481. default ""
  482. ---help---
  483. See MMC0_CD_PIN help text.
  484. config MMC2_CD_PIN
  485. string "Card detect pin for mmc2"
  486. default ""
  487. ---help---
  488. See MMC0_CD_PIN help text.
  489. config MMC3_CD_PIN
  490. string "Card detect pin for mmc3"
  491. default ""
  492. ---help---
  493. See MMC0_CD_PIN help text.
  494. config MMC1_PINS
  495. string "Pins for mmc1"
  496. default ""
  497. ---help---
  498. Set the pins used for mmc1, when applicable. This takes a string in the
  499. format understood by sunxi_name_to_gpio_bank, e.g. PH for port H.
  500. config MMC2_PINS
  501. string "Pins for mmc2"
  502. default ""
  503. ---help---
  504. See MMC1_PINS help text.
  505. config MMC3_PINS
  506. string "Pins for mmc3"
  507. default ""
  508. ---help---
  509. See MMC1_PINS help text.
  510. config MMC_SUNXI_SLOT_EXTRA
  511. int "mmc extra slot number"
  512. default -1
  513. ---help---
  514. sunxi builds always enable mmc0, some boards also have a second sdcard
  515. slot or emmc on mmc1 - mmc3. Setting this to 1, 2 or 3 will enable
  516. support for this.
  517. config INITIAL_USB_SCAN_DELAY
  518. int "delay initial usb scan by x ms to allow builtin devices to init"
  519. default 0
  520. ---help---
  521. Some boards have on board usb devices which need longer than the
  522. USB spec's 1 second to connect from board powerup. Set this config
  523. option to a non 0 value to add an extra delay before the first usb
  524. bus scan.
  525. config USB0_VBUS_PIN
  526. string "Vbus enable pin for usb0 (otg)"
  527. default ""
  528. ---help---
  529. Set the Vbus enable pin for usb0 (otg). This takes a string in the
  530. format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of port H.
  531. config USB0_VBUS_DET
  532. string "Vbus detect pin for usb0 (otg)"
  533. default ""
  534. ---help---
  535. Set the Vbus detect pin for usb0 (otg). This takes a string in the
  536. format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of port H.
  537. config USB0_ID_DET
  538. string "ID detect pin for usb0 (otg)"
  539. default ""
  540. ---help---
  541. Set the ID detect pin for usb0 (otg). This takes a string in the
  542. format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of port H.
  543. config USB1_VBUS_PIN
  544. string "Vbus enable pin for usb1 (ehci0)"
  545. default "PH6" if MACH_SUN4I || MACH_SUN7I
  546. default "PH27" if MACH_SUN6I
  547. ---help---
  548. Set the Vbus enable pin for usb1 (ehci0, usb0 is the otg). This takes
  549. a string in the format understood by sunxi_name_to_gpio, e.g.
  550. PH1 for pin 1 of port H.
  551. config USB2_VBUS_PIN
  552. string "Vbus enable pin for usb2 (ehci1)"
  553. default "PH3" if MACH_SUN4I || MACH_SUN7I
  554. default "PH24" if MACH_SUN6I
  555. ---help---
  556. See USB1_VBUS_PIN help text.
  557. config USB3_VBUS_PIN
  558. string "Vbus enable pin for usb3 (ehci2)"
  559. default ""
  560. ---help---
  561. See USB1_VBUS_PIN help text.
  562. config I2C0_ENABLE
  563. bool "Enable I2C/TWI controller 0"
  564. default y if MACH_SUN4I || MACH_SUN5I || MACH_SUN7I || MACH_SUN8I_R40
  565. default n if MACH_SUN6I || MACH_SUN8I
  566. select CMD_I2C
  567. ---help---
  568. This allows enabling I2C/TWI controller 0 by muxing its pins, enabling
  569. its clock and setting up the bus. This is especially useful on devices
  570. with slaves connected to the bus or with pins exposed through e.g. an
  571. expansion port/header.
  572. config I2C1_ENABLE
  573. bool "Enable I2C/TWI controller 1"
  574. default n
  575. select CMD_I2C
  576. ---help---
  577. See I2C0_ENABLE help text.
  578. config I2C2_ENABLE
  579. bool "Enable I2C/TWI controller 2"
  580. default n
  581. select CMD_I2C
  582. ---help---
  583. See I2C0_ENABLE help text.
  584. if MACH_SUN6I || MACH_SUN7I
  585. config I2C3_ENABLE
  586. bool "Enable I2C/TWI controller 3"
  587. default n
  588. select CMD_I2C
  589. ---help---
  590. See I2C0_ENABLE help text.
  591. endif
  592. if SUNXI_GEN_SUN6I
  593. config R_I2C_ENABLE
  594. bool "Enable the PRCM I2C/TWI controller"
  595. # This is used for the pmic on H3
  596. default y if SY8106A_POWER
  597. select CMD_I2C
  598. ---help---
  599. Set this to y to enable the I2C controller which is part of the PRCM.
  600. endif
  601. if MACH_SUN7I
  602. config I2C4_ENABLE
  603. bool "Enable I2C/TWI controller 4"
  604. default n
  605. select CMD_I2C
  606. ---help---
  607. See I2C0_ENABLE help text.
  608. endif
  609. config AXP_GPIO
  610. bool "Enable support for gpio-s on axp PMICs"
  611. default n
  612. ---help---
  613. Say Y here to enable support for the gpio pins of the axp PMIC ICs.
  614. config VIDEO_SUNXI
  615. bool "Enable graphical uboot console on HDMI, LCD or VGA"
  616. depends on !MACH_SUN8I_A83T
  617. depends on !MACH_SUNXI_H3_H5
  618. depends on !MACH_SUN8I_R40
  619. depends on !MACH_SUN8I_V3S
  620. depends on !MACH_SUN9I
  621. depends on !MACH_SUN50I
  622. select VIDEO
  623. imply VIDEO_DT_SIMPLEFB
  624. default y
  625. ---help---
  626. Say Y here to add support for using a cfb console on the HDMI, LCD
  627. or VGA output found on most sunxi devices. See doc/README.video for
  628. info on how to select the video output and mode.
  629. config VIDEO_HDMI
  630. bool "HDMI output support"
  631. depends on VIDEO_SUNXI && !MACH_SUN8I
  632. default y
  633. ---help---
  634. Say Y here to add support for outputting video over HDMI.
  635. config VIDEO_VGA
  636. bool "VGA output support"
  637. depends on VIDEO_SUNXI && (MACH_SUN4I || MACH_SUN7I)
  638. default n
  639. ---help---
  640. Say Y here to add support for outputting video over VGA.
  641. config VIDEO_VGA_VIA_LCD
  642. bool "VGA via LCD controller support"
  643. depends on VIDEO_SUNXI && (MACH_SUN5I || MACH_SUN6I || MACH_SUN8I)
  644. default n
  645. ---help---
  646. Say Y here to add support for external DACs connected to the parallel
  647. LCD interface driving a VGA connector, such as found on the
  648. Olimex A13 boards.
  649. config VIDEO_VGA_VIA_LCD_FORCE_SYNC_ACTIVE_HIGH
  650. bool "Force sync active high for VGA via LCD controller support"
  651. depends on VIDEO_VGA_VIA_LCD
  652. default n
  653. ---help---
  654. Say Y here if you've a board which uses opendrain drivers for the vga
  655. hsync and vsync signals. Opendrain drivers cannot generate steep enough
  656. positive edges for a stable video output, so on boards with opendrain
  657. drivers the sync signals must always be active high.
  658. config VIDEO_VGA_EXTERNAL_DAC_EN
  659. string "LCD panel power enable pin"
  660. depends on VIDEO_VGA_VIA_LCD
  661. default ""
  662. ---help---
  663. Set the enable pin for the external VGA DAC. This takes a string in the
  664. format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of port H.
  665. config VIDEO_COMPOSITE
  666. bool "Composite video output support"
  667. depends on VIDEO_SUNXI && (MACH_SUN4I || MACH_SUN5I || MACH_SUN7I)
  668. default n
  669. ---help---
  670. Say Y here to add support for outputting composite video.
  671. config VIDEO_LCD_MODE
  672. string "LCD panel timing details"
  673. depends on VIDEO_SUNXI
  674. default ""
  675. ---help---
  676. LCD panel timing details string, leave empty if there is no LCD panel.
  677. This is in drivers/video/videomodes.c: video_get_params() format, e.g.
  678. x:800,y:480,depth:18,pclk_khz:33000,le:16,ri:209,up:22,lo:22,hs:30,vs:1,sync:0,vmode:0
  679. Also see: http://linux-sunxi.org/LCD
  680. config VIDEO_LCD_DCLK_PHASE
  681. int "LCD panel display clock phase"
  682. depends on VIDEO_SUNXI || DM_VIDEO
  683. default 1
  684. ---help---
  685. Select LCD panel display clock phase shift, range 0-3.
  686. config VIDEO_LCD_POWER
  687. string "LCD panel power enable pin"
  688. depends on VIDEO_SUNXI
  689. default ""
  690. ---help---
  691. Set the power enable pin for the LCD panel. This takes a string in the
  692. format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of port H.
  693. config VIDEO_LCD_RESET
  694. string "LCD panel reset pin"
  695. depends on VIDEO_SUNXI
  696. default ""
  697. ---help---
  698. Set the reset pin for the LCD panel. This takes a string in the format
  699. understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of port H.
  700. config VIDEO_LCD_BL_EN
  701. string "LCD panel backlight enable pin"
  702. depends on VIDEO_SUNXI
  703. default ""
  704. ---help---
  705. Set the backlight enable pin for the LCD panel. This takes a string in the
  706. the format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of
  707. port H.
  708. config VIDEO_LCD_BL_PWM
  709. string "LCD panel backlight pwm pin"
  710. depends on VIDEO_SUNXI
  711. default ""
  712. ---help---
  713. Set the backlight pwm pin for the LCD panel. This takes a string in the
  714. format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of port H.
  715. config VIDEO_LCD_BL_PWM_ACTIVE_LOW
  716. bool "LCD panel backlight pwm is inverted"
  717. depends on VIDEO_SUNXI
  718. default y
  719. ---help---
  720. Set this if the backlight pwm output is active low.
  721. config VIDEO_LCD_PANEL_I2C
  722. bool "LCD panel needs to be configured via i2c"
  723. depends on VIDEO_SUNXI
  724. default n
  725. select CMD_I2C
  726. ---help---
  727. Say y here if the LCD panel needs to be configured via i2c. This
  728. will add a bitbang i2c controller using gpios to talk to the LCD.
  729. config VIDEO_LCD_PANEL_I2C_SDA
  730. string "LCD panel i2c interface SDA pin"
  731. depends on VIDEO_LCD_PANEL_I2C
  732. default "PG12"
  733. ---help---
  734. Set the SDA pin for the LCD i2c interface. This takes a string in the
  735. format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of port H.
  736. config VIDEO_LCD_PANEL_I2C_SCL
  737. string "LCD panel i2c interface SCL pin"
  738. depends on VIDEO_LCD_PANEL_I2C
  739. default "PG10"
  740. ---help---
  741. Set the SCL pin for the LCD i2c interface. This takes a string in the
  742. format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of port H.
  743. # Note only one of these may be selected at a time! But hidden choices are
  744. # not supported by Kconfig
  745. config VIDEO_LCD_IF_PARALLEL
  746. bool
  747. config VIDEO_LCD_IF_LVDS
  748. bool
  749. config SUNXI_DE2
  750. bool
  751. default n
  752. config VIDEO_DE2
  753. bool "Display Engine 2 video driver"
  754. depends on SUNXI_DE2
  755. select DM_VIDEO
  756. select DISPLAY
  757. imply VIDEO_DT_SIMPLEFB
  758. default y
  759. ---help---
  760. Say y here if you want to build DE2 video driver which is present on
  761. newer SoCs. Currently only HDMI output is supported.
  762. choice
  763. prompt "LCD panel support"
  764. depends on VIDEO_SUNXI
  765. ---help---
  766. Select which type of LCD panel to support.
  767. config VIDEO_LCD_PANEL_PARALLEL
  768. bool "Generic parallel interface LCD panel"
  769. select VIDEO_LCD_IF_PARALLEL
  770. config VIDEO_LCD_PANEL_LVDS
  771. bool "Generic lvds interface LCD panel"
  772. select VIDEO_LCD_IF_LVDS
  773. config VIDEO_LCD_PANEL_MIPI_4_LANE_513_MBPS_VIA_SSD2828
  774. bool "MIPI 4-lane, 513Mbps LCD panel via SSD2828 bridge chip"
  775. select VIDEO_LCD_SSD2828
  776. select VIDEO_LCD_IF_PARALLEL
  777. ---help---
  778. 7.85" 768x1024 LCD panels, such as LG LP079X01 or AUO B079XAN01.0
  779. config VIDEO_LCD_PANEL_EDP_4_LANE_1620M_VIA_ANX9804
  780. bool "eDP 4-lane, 1.62G LCD panel via ANX9804 bridge chip"
  781. select VIDEO_LCD_ANX9804
  782. select VIDEO_LCD_IF_PARALLEL
  783. select VIDEO_LCD_PANEL_I2C
  784. ---help---
  785. Select this for eDP LCD panels with 4 lanes running at 1.62G,
  786. connected via an ANX9804 bridge chip.
  787. config VIDEO_LCD_PANEL_HITACHI_TX18D42VM
  788. bool "Hitachi tx18d42vm LCD panel"
  789. select VIDEO_LCD_HITACHI_TX18D42VM
  790. select VIDEO_LCD_IF_LVDS
  791. ---help---
  792. 7.85" 1024x768 Hitachi tx18d42vm LCD panel support
  793. config VIDEO_LCD_TL059WV5C0
  794. bool "tl059wv5c0 LCD panel"
  795. select VIDEO_LCD_PANEL_I2C
  796. select VIDEO_LCD_IF_PARALLEL
  797. ---help---
  798. 6" 480x800 tl059wv5c0 panel support, as used on the Utoo P66 and
  799. Aigo M60/M608/M606 tablets.
  800. endchoice
  801. config SATAPWR
  802. string "SATA power pin"
  803. default ""
  804. help
  805. Set the pins used to power the SATA. This takes a string in the
  806. format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of
  807. port H.
  808. config GMAC_TX_DELAY
  809. int "GMAC Transmit Clock Delay Chain"
  810. default 0
  811. ---help---
  812. Set the GMAC Transmit Clock Delay Chain value.
  813. config SPL_STACK_R_ADDR
  814. default 0x4fe00000 if MACH_SUN4I
  815. default 0x4fe00000 if MACH_SUN5I
  816. default 0x4fe00000 if MACH_SUN6I
  817. default 0x4fe00000 if MACH_SUN7I
  818. default 0x4fe00000 if MACH_SUN8I
  819. default 0x2fe00000 if MACH_SUN9I
  820. default 0x4fe00000 if MACH_SUN50I
  821. config SPL_SPI_SUNXI
  822. bool "Support for SPI Flash on Allwinner SoCs in SPL"
  823. depends on MACH_SUN4I || MACH_SUN5I || MACH_SUN7I || MACH_SUNXI_H3_H5 || MACH_SUN50I
  824. help
  825. Enable support for SPI Flash. This option allows SPL to read from
  826. sunxi SPI Flash. It uses the same method as the boot ROM, so does
  827. not need any extra configuration.
  828. endif