Kconfig 27 KB

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