Kconfig 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670
  1. if ARCH_SUNXI
  2. config IDENT_STRING
  3. default " Allwinner Technology"
  4. config PRE_CONSOLE_BUFFER
  5. default y
  6. config SPL_GPIO_SUPPORT
  7. default y
  8. config SPL_LIBCOMMON_SUPPORT
  9. default y
  10. config SPL_LIBDISK_SUPPORT
  11. default y
  12. config SPL_LIBGENERIC_SUPPORT
  13. default y
  14. config SPL_MMC_SUPPORT
  15. default y
  16. config SPL_POWER_SUPPORT
  17. default y
  18. config SPL_SERIAL_SUPPORT
  19. default y
  20. # Note only one of these may be selected at a time! But hidden choices are
  21. # not supported by Kconfig
  22. config SUNXI_GEN_SUN4I
  23. bool
  24. ---help---
  25. Select this for sunxi SoCs which have resets and clocks set up
  26. as the original A10 (mach-sun4i).
  27. config SUNXI_GEN_SUN6I
  28. bool
  29. ---help---
  30. Select this for sunxi SoCs which have sun6i like periphery, like
  31. separate ahb reset control registers, custom pmic bus, new style
  32. watchdog, etc.
  33. choice
  34. prompt "Sunxi SoC Variant"
  35. optional
  36. config MACH_SUN4I
  37. bool "sun4i (Allwinner A10)"
  38. select CPU_V7
  39. select SUNXI_GEN_SUN4I
  40. select SUPPORT_SPL
  41. config MACH_SUN5I
  42. bool "sun5i (Allwinner A13)"
  43. select CPU_V7
  44. select SUNXI_GEN_SUN4I
  45. select SUPPORT_SPL
  46. config MACH_SUN6I
  47. bool "sun6i (Allwinner A31)"
  48. select CPU_V7
  49. select CPU_V7_HAS_NONSEC
  50. select CPU_V7_HAS_VIRT
  51. select ARCH_SUPPORT_PSCI
  52. select SUNXI_GEN_SUN6I
  53. select SUPPORT_SPL
  54. select ARMV7_BOOT_SEC_DEFAULT if OLD_SUNXI_KERNEL_COMPAT
  55. config MACH_SUN7I
  56. bool "sun7i (Allwinner A20)"
  57. select CPU_V7
  58. select CPU_V7_HAS_NONSEC
  59. select CPU_V7_HAS_VIRT
  60. select ARCH_SUPPORT_PSCI
  61. select SUNXI_GEN_SUN4I
  62. select SUPPORT_SPL
  63. select ARMV7_BOOT_SEC_DEFAULT if OLD_SUNXI_KERNEL_COMPAT
  64. config MACH_SUN8I_A23
  65. bool "sun8i (Allwinner A23)"
  66. select CPU_V7
  67. select CPU_V7_HAS_NONSEC
  68. select CPU_V7_HAS_VIRT
  69. select ARCH_SUPPORT_PSCI
  70. select SUNXI_GEN_SUN6I
  71. select SUPPORT_SPL
  72. select ARMV7_BOOT_SEC_DEFAULT if OLD_SUNXI_KERNEL_COMPAT
  73. config MACH_SUN8I_A33
  74. bool "sun8i (Allwinner A33)"
  75. select CPU_V7
  76. select CPU_V7_HAS_NONSEC
  77. select CPU_V7_HAS_VIRT
  78. select ARCH_SUPPORT_PSCI
  79. select SUNXI_GEN_SUN6I
  80. select SUPPORT_SPL
  81. select ARMV7_BOOT_SEC_DEFAULT if OLD_SUNXI_KERNEL_COMPAT
  82. config MACH_SUN8I_A83T
  83. bool "sun8i (Allwinner A83T)"
  84. select CPU_V7
  85. select SUNXI_GEN_SUN6I
  86. select SUPPORT_SPL
  87. config MACH_SUN8I_H3
  88. bool "sun8i (Allwinner H3)"
  89. select CPU_V7
  90. select CPU_V7_HAS_NONSEC
  91. select CPU_V7_HAS_VIRT
  92. select ARCH_SUPPORT_PSCI
  93. select SUNXI_GEN_SUN6I
  94. select SUPPORT_SPL
  95. select ARMV7_BOOT_SEC_DEFAULT if OLD_SUNXI_KERNEL_COMPAT
  96. config MACH_SUN9I
  97. bool "sun9i (Allwinner A80)"
  98. select CPU_V7
  99. select SUNXI_GEN_SUN6I
  100. select SUPPORT_SPL
  101. config MACH_SUN50I
  102. bool "sun50i (Allwinner A64)"
  103. select ARM64
  104. select SUNXI_GEN_SUN6I
  105. endchoice
  106. # The sun8i SoCs share a lot, this helps to avoid a lot of "if A23 || A33"
  107. config MACH_SUN8I
  108. bool
  109. default y if MACH_SUN8I_A23 || MACH_SUN8I_A33 || MACH_SUN8I_H3 || MACH_SUN8I_A83T
  110. config DRAM_TYPE
  111. int "sunxi dram type"
  112. depends on MACH_SUN8I_A83T
  113. default 3
  114. ---help---
  115. Set the dram type, 3: DDR3, 7: LPDDR3
  116. config DRAM_CLK
  117. int "sunxi dram clock speed"
  118. default 792 if MACH_SUN9I
  119. default 312 if MACH_SUN6I || MACH_SUN8I
  120. default 360 if MACH_SUN4I || MACH_SUN5I || MACH_SUN7I
  121. ---help---
  122. Set the dram clock speed, valid range 240 - 480 (prior to sun9i),
  123. must be a multiple of 24. For the sun9i (A80), the tested values
  124. (for DDR3-1600) are 312 to 792.
  125. if MACH_SUN5I || MACH_SUN7I
  126. config DRAM_MBUS_CLK
  127. int "sunxi mbus clock speed"
  128. default 300
  129. ---help---
  130. Set the mbus clock speed. The maximum on sun5i hardware is 300MHz.
  131. endif
  132. config DRAM_ZQ
  133. int "sunxi dram zq value"
  134. default 123 if MACH_SUN4I || MACH_SUN5I || MACH_SUN6I || MACH_SUN8I
  135. default 127 if MACH_SUN7I
  136. default 4145117 if MACH_SUN9I
  137. ---help---
  138. Set the dram zq value.
  139. config DRAM_ODT_EN
  140. bool "sunxi dram odt enable"
  141. default n if !MACH_SUN8I_A23
  142. default y if MACH_SUN8I_A23
  143. ---help---
  144. Select this to enable dram odt (on die termination).
  145. if MACH_SUN4I || MACH_SUN5I || MACH_SUN7I
  146. config DRAM_EMR1
  147. int "sunxi dram emr1 value"
  148. default 0 if MACH_SUN4I
  149. default 4 if MACH_SUN5I || MACH_SUN7I
  150. ---help---
  151. Set the dram controller emr1 value.
  152. config DRAM_TPR3
  153. hex "sunxi dram tpr3 value"
  154. default 0
  155. ---help---
  156. Set the dram controller tpr3 parameter. This parameter configures
  157. the delay on the command lane and also phase shifts, which are
  158. applied for sampling incoming read data. The default value 0
  159. means that no phase/delay adjustments are necessary. Properly
  160. configuring this parameter increases reliability at high DRAM
  161. clock speeds.
  162. config DRAM_DQS_GATING_DELAY
  163. hex "sunxi dram dqs_gating_delay value"
  164. default 0
  165. ---help---
  166. Set the dram controller dqs_gating_delay parmeter. Each byte
  167. encodes the DQS gating delay for each byte lane. The delay
  168. granularity is 1/4 cycle. For example, the value 0x05060606
  169. means that the delay is 5 quarter-cycles for one lane (1.25
  170. cycles) and 6 quarter-cycles (1.5 cycles) for 3 other lanes.
  171. The default value 0 means autodetection. The results of hardware
  172. autodetection are not very reliable and depend on the chip
  173. temperature (sometimes producing different results on cold start
  174. and warm reboot). But the accuracy of hardware autodetection
  175. is usually good enough, unless running at really high DRAM
  176. clocks speeds (up to 600MHz). If unsure, keep as 0.
  177. choice
  178. prompt "sunxi dram timings"
  179. default DRAM_TIMINGS_VENDOR_MAGIC
  180. ---help---
  181. Select the timings of the DDR3 chips.
  182. config DRAM_TIMINGS_VENDOR_MAGIC
  183. bool "Magic vendor timings from Android"
  184. ---help---
  185. The same DRAM timings as in the Allwinner boot0 bootloader.
  186. config DRAM_TIMINGS_DDR3_1066F_1333H
  187. bool "JEDEC DDR3-1333H with down binning to DDR3-1066F"
  188. ---help---
  189. Use the timings of the standard JEDEC DDR3-1066F speed bin for
  190. DRAM_CLK <= 533MHz and the timings of the DDR3-1333H speed bin
  191. for DRAM_CLK > 533MHz. This covers the majority of DDR3 chips
  192. used in Allwinner A10/A13/A20 devices. In the case of DDR3-1333
  193. or DDR3-1600 chips, be sure to check the DRAM datasheet to confirm
  194. that down binning to DDR3-1066F is supported (because DDR3-1066F
  195. uses a bit faster timings than DDR3-1333H).
  196. config DRAM_TIMINGS_DDR3_800E_1066G_1333J
  197. bool "JEDEC DDR3-800E / DDR3-1066G / DDR3-1333J"
  198. ---help---
  199. Use the timings of the slowest possible JEDEC speed bin for the
  200. selected DRAM_CLK. Depending on the DRAM_CLK value, it may be
  201. DDR3-800E, DDR3-1066G or DDR3-1333J.
  202. endchoice
  203. endif
  204. if MACH_SUN8I_A23
  205. config DRAM_ODT_CORRECTION
  206. int "sunxi dram odt correction value"
  207. default 0
  208. ---help---
  209. Set the dram odt correction value (range -255 - 255). In allwinner
  210. fex files, this option is found in bits 8-15 of the u32 odt_en variable
  211. in the [dram] section. When bit 31 of the odt_en variable is set
  212. then the correction is negative. Usually the value for this is 0.
  213. endif
  214. config SYS_CLK_FREQ
  215. default 816000000 if MACH_SUN50I
  216. default 912000000 if MACH_SUN7I
  217. default 1008000000 if MACH_SUN4I || MACH_SUN5I || MACH_SUN6I || MACH_SUN8I || MACH_SUN9I
  218. config SYS_CONFIG_NAME
  219. default "sun4i" if MACH_SUN4I
  220. default "sun5i" if MACH_SUN5I
  221. default "sun6i" if MACH_SUN6I
  222. default "sun7i" if MACH_SUN7I
  223. default "sun8i" if MACH_SUN8I
  224. default "sun9i" if MACH_SUN9I
  225. default "sun50i" if MACH_SUN50I
  226. config SYS_BOARD
  227. default "sunxi"
  228. config SYS_SOC
  229. default "sunxi"
  230. config UART0_PORT_F
  231. bool "UART0 on MicroSD breakout board"
  232. default n
  233. ---help---
  234. Repurpose the SD card slot for getting access to the UART0 serial
  235. console. Primarily useful only for low level u-boot debugging on
  236. tablets, where normal UART0 is difficult to access and requires
  237. device disassembly and/or soldering. As the SD card can't be used
  238. at the same time, the system can be only booted in the FEL mode.
  239. Only enable this if you really know what you are doing.
  240. config OLD_SUNXI_KERNEL_COMPAT
  241. bool "Enable workarounds for booting old kernels"
  242. default n
  243. ---help---
  244. Set this to enable various workarounds for old kernels, this results in
  245. sub-optimal settings for newer kernels, only enable if needed.
  246. config MMC
  247. depends on !UART0_PORT_F
  248. default y if ARCH_SUNXI
  249. config MMC0_CD_PIN
  250. string "Card detect pin for mmc0"
  251. default "PF6" if MACH_SUN8I_A83T || MACH_SUN8I_H3 || MACH_SUN50I
  252. default ""
  253. ---help---
  254. Set the card detect pin for mmc0, leave empty to not use cd. This
  255. takes a string in the format understood by sunxi_name_to_gpio, e.g.
  256. PH1 for pin 1 of port H.
  257. config MMC1_CD_PIN
  258. string "Card detect pin for mmc1"
  259. default ""
  260. ---help---
  261. See MMC0_CD_PIN help text.
  262. config MMC2_CD_PIN
  263. string "Card detect pin for mmc2"
  264. default ""
  265. ---help---
  266. See MMC0_CD_PIN help text.
  267. config MMC3_CD_PIN
  268. string "Card detect pin for mmc3"
  269. default ""
  270. ---help---
  271. See MMC0_CD_PIN help text.
  272. config MMC1_PINS
  273. string "Pins for mmc1"
  274. default ""
  275. ---help---
  276. Set the pins used for mmc1, when applicable. This takes a string in the
  277. format understood by sunxi_name_to_gpio_bank, e.g. PH for port H.
  278. config MMC2_PINS
  279. string "Pins for mmc2"
  280. default ""
  281. ---help---
  282. See MMC1_PINS help text.
  283. config MMC3_PINS
  284. string "Pins for mmc3"
  285. default ""
  286. ---help---
  287. See MMC1_PINS help text.
  288. config MMC_SUNXI_SLOT_EXTRA
  289. int "mmc extra slot number"
  290. default -1
  291. ---help---
  292. sunxi builds always enable mmc0, some boards also have a second sdcard
  293. slot or emmc on mmc1 - mmc3. Setting this to 1, 2 or 3 will enable
  294. support for this.
  295. config INITIAL_USB_SCAN_DELAY
  296. int "delay initial usb scan by x ms to allow builtin devices to init"
  297. default 0
  298. ---help---
  299. Some boards have on board usb devices which need longer than the
  300. USB spec's 1 second to connect from board powerup. Set this config
  301. option to a non 0 value to add an extra delay before the first usb
  302. bus scan.
  303. config USB0_VBUS_PIN
  304. string "Vbus enable pin for usb0 (otg)"
  305. default ""
  306. ---help---
  307. Set the Vbus enable pin for usb0 (otg). This takes a string in the
  308. format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of port H.
  309. config USB0_VBUS_DET
  310. string "Vbus detect pin for usb0 (otg)"
  311. default ""
  312. ---help---
  313. Set the Vbus detect pin for usb0 (otg). This takes a string in the
  314. format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of port H.
  315. config USB0_ID_DET
  316. string "ID detect pin for usb0 (otg)"
  317. default ""
  318. ---help---
  319. Set the ID detect pin for usb0 (otg). This takes a string in the
  320. format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of port H.
  321. config USB1_VBUS_PIN
  322. string "Vbus enable pin for usb1 (ehci0)"
  323. default "PH6" if MACH_SUN4I || MACH_SUN7I
  324. default "PH27" if MACH_SUN6I
  325. ---help---
  326. Set the Vbus enable pin for usb1 (ehci0, usb0 is the otg). This takes
  327. a string in the format understood by sunxi_name_to_gpio, e.g.
  328. PH1 for pin 1 of port H.
  329. config USB2_VBUS_PIN
  330. string "Vbus enable pin for usb2 (ehci1)"
  331. default "PH3" if MACH_SUN4I || MACH_SUN7I
  332. default "PH24" if MACH_SUN6I
  333. ---help---
  334. See USB1_VBUS_PIN help text.
  335. config USB3_VBUS_PIN
  336. string "Vbus enable pin for usb3 (ehci2)"
  337. default ""
  338. ---help---
  339. See USB1_VBUS_PIN help text.
  340. config I2C0_ENABLE
  341. bool "Enable I2C/TWI controller 0"
  342. default y if MACH_SUN4I || MACH_SUN5I || MACH_SUN7I
  343. default n if MACH_SUN6I || MACH_SUN8I
  344. select CMD_I2C
  345. ---help---
  346. This allows enabling I2C/TWI controller 0 by muxing its pins, enabling
  347. its clock and setting up the bus. This is especially useful on devices
  348. with slaves connected to the bus or with pins exposed through e.g. an
  349. expansion port/header.
  350. config I2C1_ENABLE
  351. bool "Enable I2C/TWI controller 1"
  352. default n
  353. select CMD_I2C
  354. ---help---
  355. See I2C0_ENABLE help text.
  356. config I2C2_ENABLE
  357. bool "Enable I2C/TWI controller 2"
  358. default n
  359. select CMD_I2C
  360. ---help---
  361. See I2C0_ENABLE help text.
  362. if MACH_SUN6I || MACH_SUN7I
  363. config I2C3_ENABLE
  364. bool "Enable I2C/TWI controller 3"
  365. default n
  366. select CMD_I2C
  367. ---help---
  368. See I2C0_ENABLE help text.
  369. endif
  370. if SUNXI_GEN_SUN6I
  371. config R_I2C_ENABLE
  372. bool "Enable the PRCM I2C/TWI controller"
  373. # This is used for the pmic on H3
  374. default y if SY8106A_POWER
  375. select CMD_I2C
  376. ---help---
  377. Set this to y to enable the I2C controller which is part of the PRCM.
  378. endif
  379. if MACH_SUN7I
  380. config I2C4_ENABLE
  381. bool "Enable I2C/TWI controller 4"
  382. default n
  383. select CMD_I2C
  384. ---help---
  385. See I2C0_ENABLE help text.
  386. endif
  387. config AXP_GPIO
  388. bool "Enable support for gpio-s on axp PMICs"
  389. default n
  390. ---help---
  391. Say Y here to enable support for the gpio pins of the axp PMIC ICs.
  392. config VIDEO
  393. bool "Enable graphical uboot console on HDMI, LCD or VGA"
  394. depends on !MACH_SUN8I_A83T && !MACH_SUN8I_H3 && !MACH_SUN9I && !MACH_SUN50I
  395. default y
  396. ---help---
  397. Say Y here to add support for using a cfb console on the HDMI, LCD
  398. or VGA output found on most sunxi devices. See doc/README.video for
  399. info on how to select the video output and mode.
  400. config VIDEO_HDMI
  401. bool "HDMI output support"
  402. depends on VIDEO && !MACH_SUN8I
  403. default y
  404. ---help---
  405. Say Y here to add support for outputting video over HDMI.
  406. config VIDEO_VGA
  407. bool "VGA output support"
  408. depends on VIDEO && (MACH_SUN4I || MACH_SUN7I)
  409. default n
  410. ---help---
  411. Say Y here to add support for outputting video over VGA.
  412. config VIDEO_VGA_VIA_LCD
  413. bool "VGA via LCD controller support"
  414. depends on VIDEO && (MACH_SUN5I || MACH_SUN6I || MACH_SUN8I)
  415. default n
  416. ---help---
  417. Say Y here to add support for external DACs connected to the parallel
  418. LCD interface driving a VGA connector, such as found on the
  419. Olimex A13 boards.
  420. config VIDEO_VGA_VIA_LCD_FORCE_SYNC_ACTIVE_HIGH
  421. bool "Force sync active high for VGA via LCD controller support"
  422. depends on VIDEO_VGA_VIA_LCD
  423. default n
  424. ---help---
  425. Say Y here if you've a board which uses opendrain drivers for the vga
  426. hsync and vsync signals. Opendrain drivers cannot generate steep enough
  427. positive edges for a stable video output, so on boards with opendrain
  428. drivers the sync signals must always be active high.
  429. config VIDEO_VGA_EXTERNAL_DAC_EN
  430. string "LCD panel power enable pin"
  431. depends on VIDEO_VGA_VIA_LCD
  432. default ""
  433. ---help---
  434. Set the enable pin for the external VGA DAC. This takes a string in the
  435. format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of port H.
  436. config VIDEO_COMPOSITE
  437. bool "Composite video output support"
  438. depends on VIDEO && (MACH_SUN4I || MACH_SUN5I || MACH_SUN7I)
  439. default n
  440. ---help---
  441. Say Y here to add support for outputting composite video.
  442. config VIDEO_LCD_MODE
  443. string "LCD panel timing details"
  444. depends on VIDEO
  445. default ""
  446. ---help---
  447. LCD panel timing details string, leave empty if there is no LCD panel.
  448. This is in drivers/video/videomodes.c: video_get_params() format, e.g.
  449. 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
  450. Also see: http://linux-sunxi.org/LCD
  451. config VIDEO_LCD_DCLK_PHASE
  452. int "LCD panel display clock phase"
  453. depends on VIDEO
  454. default 1
  455. ---help---
  456. Select LCD panel display clock phase shift, range 0-3.
  457. config VIDEO_LCD_POWER
  458. string "LCD panel power enable pin"
  459. depends on VIDEO
  460. default ""
  461. ---help---
  462. Set the power enable pin for the LCD panel. This takes a string in the
  463. format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of port H.
  464. config VIDEO_LCD_RESET
  465. string "LCD panel reset pin"
  466. depends on VIDEO
  467. default ""
  468. ---help---
  469. Set the reset pin for the LCD panel. 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 VIDEO_LCD_BL_EN
  472. string "LCD panel backlight enable pin"
  473. depends on VIDEO
  474. default ""
  475. ---help---
  476. Set the backlight enable pin for the LCD panel. This takes a string in the
  477. the format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of
  478. port H.
  479. config VIDEO_LCD_BL_PWM
  480. string "LCD panel backlight pwm pin"
  481. depends on VIDEO
  482. default ""
  483. ---help---
  484. Set the backlight pwm pin for the LCD panel. This takes a string in the
  485. format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of port H.
  486. config VIDEO_LCD_BL_PWM_ACTIVE_LOW
  487. bool "LCD panel backlight pwm is inverted"
  488. depends on VIDEO
  489. default y
  490. ---help---
  491. Set this if the backlight pwm output is active low.
  492. config VIDEO_LCD_PANEL_I2C
  493. bool "LCD panel needs to be configured via i2c"
  494. depends on VIDEO
  495. default n
  496. select CMD_I2C
  497. ---help---
  498. Say y here if the LCD panel needs to be configured via i2c. This
  499. will add a bitbang i2c controller using gpios to talk to the LCD.
  500. config VIDEO_LCD_PANEL_I2C_SDA
  501. string "LCD panel i2c interface SDA pin"
  502. depends on VIDEO_LCD_PANEL_I2C
  503. default "PG12"
  504. ---help---
  505. Set the SDA pin for the LCD i2c interface. This takes a string in the
  506. format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of port H.
  507. config VIDEO_LCD_PANEL_I2C_SCL
  508. string "LCD panel i2c interface SCL pin"
  509. depends on VIDEO_LCD_PANEL_I2C
  510. default "PG10"
  511. ---help---
  512. Set the SCL pin for the LCD i2c interface. This takes a string in the
  513. format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of port H.
  514. # Note only one of these may be selected at a time! But hidden choices are
  515. # not supported by Kconfig
  516. config VIDEO_LCD_IF_PARALLEL
  517. bool
  518. config VIDEO_LCD_IF_LVDS
  519. bool
  520. choice
  521. prompt "LCD panel support"
  522. depends on VIDEO
  523. ---help---
  524. Select which type of LCD panel to support.
  525. config VIDEO_LCD_PANEL_PARALLEL
  526. bool "Generic parallel interface LCD panel"
  527. select VIDEO_LCD_IF_PARALLEL
  528. config VIDEO_LCD_PANEL_LVDS
  529. bool "Generic lvds interface LCD panel"
  530. select VIDEO_LCD_IF_LVDS
  531. config VIDEO_LCD_PANEL_MIPI_4_LANE_513_MBPS_VIA_SSD2828
  532. bool "MIPI 4-lane, 513Mbps LCD panel via SSD2828 bridge chip"
  533. select VIDEO_LCD_SSD2828
  534. select VIDEO_LCD_IF_PARALLEL
  535. ---help---
  536. 7.85" 768x1024 LCD panels, such as LG LP079X01 or AUO B079XAN01.0
  537. config VIDEO_LCD_PANEL_EDP_4_LANE_1620M_VIA_ANX9804
  538. bool "eDP 4-lane, 1.62G LCD panel via ANX9804 bridge chip"
  539. select VIDEO_LCD_ANX9804
  540. select VIDEO_LCD_IF_PARALLEL
  541. select VIDEO_LCD_PANEL_I2C
  542. ---help---
  543. Select this for eDP LCD panels with 4 lanes running at 1.62G,
  544. connected via an ANX9804 bridge chip.
  545. config VIDEO_LCD_PANEL_HITACHI_TX18D42VM
  546. bool "Hitachi tx18d42vm LCD panel"
  547. select VIDEO_LCD_HITACHI_TX18D42VM
  548. select VIDEO_LCD_IF_LVDS
  549. ---help---
  550. 7.85" 1024x768 Hitachi tx18d42vm LCD panel support
  551. config VIDEO_LCD_TL059WV5C0
  552. bool "tl059wv5c0 LCD panel"
  553. select VIDEO_LCD_PANEL_I2C
  554. select VIDEO_LCD_IF_PARALLEL
  555. ---help---
  556. 6" 480x800 tl059wv5c0 panel support, as used on the Utoo P66 and
  557. Aigo M60/M608/M606 tablets.
  558. endchoice
  559. config GMAC_TX_DELAY
  560. int "GMAC Transmit Clock Delay Chain"
  561. default 0
  562. ---help---
  563. Set the GMAC Transmit Clock Delay Chain value.
  564. config SPL_STACK_R_ADDR
  565. default 0x4fe00000 if MACH_SUN4I || MACH_SUN5I || MACH_SUN6I || MACH_SUN7I || MACH_SUN8I || MACH_SUN50I
  566. default 0x2fe00000 if MACH_SUN9I
  567. endif