Kconfig 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # For a description of the syntax of this configuration file,
  4. # see Documentation/kbuild/kconfig-language.txt.
  5. #
  6. # Auxiliary display drivers configuration.
  7. #
  8. menuconfig AUXDISPLAY
  9. bool "Auxiliary Display support"
  10. ---help---
  11. Say Y here to get to see options for auxiliary display drivers.
  12. This option alone does not add any kernel code.
  13. If you say N, all options in this submenu will be skipped and disabled.
  14. if AUXDISPLAY
  15. config HD44780
  16. tristate "HD44780 Character LCD support"
  17. depends on GPIOLIB || COMPILE_TEST
  18. select CHARLCD
  19. ---help---
  20. Enable support for Character LCDs using a HD44780 controller.
  21. The LCD is accessible through the /dev/lcd char device (10, 156).
  22. This code can either be compiled as a module, or linked into the
  23. kernel and started at boot.
  24. If you don't understand what all this is about, say N.
  25. config KS0108
  26. tristate "KS0108 LCD Controller"
  27. depends on PARPORT_PC
  28. default n
  29. ---help---
  30. If you have a LCD controlled by one or more KS0108
  31. controllers, say Y. You will need also another more specific
  32. driver for your LCD.
  33. Depends on Parallel Port support. If you say Y at
  34. parport, you will be able to compile this as a module (M)
  35. and built-in as well (Y).
  36. To compile this as a module, choose M here:
  37. the module will be called ks0108.
  38. If unsure, say N.
  39. config KS0108_PORT
  40. hex "Parallel port where the LCD is connected"
  41. depends on KS0108
  42. default 0x378
  43. ---help---
  44. The address of the parallel port where the LCD is connected.
  45. The first standard parallel port address is 0x378.
  46. The second standard parallel port address is 0x278.
  47. The third standard parallel port address is 0x3BC.
  48. You can specify a different address if you need.
  49. If you don't know what I'm talking about, load the parport module,
  50. and execute "dmesg" or "cat /proc/ioports". You can see there how
  51. many parallel ports are present and which address each one has.
  52. Usually you only need to use 0x378.
  53. If you compile this as a module, you can still override this
  54. using the module parameters.
  55. config KS0108_DELAY
  56. int "Delay between each control writing (microseconds)"
  57. depends on KS0108
  58. default "2"
  59. ---help---
  60. Amount of time the ks0108 should wait between each control write
  61. to the parallel port.
  62. If your LCD seems to miss random writings, increment this.
  63. If you don't know what I'm talking about, ignore it.
  64. If you compile this as a module, you can still override this
  65. value using the module parameters.
  66. config CFAG12864B
  67. tristate "CFAG12864B LCD"
  68. depends on X86
  69. depends on FB
  70. depends on KS0108
  71. select FB_SYS_FILLRECT
  72. select FB_SYS_COPYAREA
  73. select FB_SYS_IMAGEBLIT
  74. select FB_SYS_FOPS
  75. default n
  76. ---help---
  77. If you have a Crystalfontz 128x64 2-color LCD, cfag12864b Series,
  78. say Y. You also need the ks0108 LCD Controller driver.
  79. For help about how to wire your LCD to the parallel port,
  80. check Documentation/auxdisplay/cfag12864b
  81. Depends on the x86 arch and the framebuffer support.
  82. The LCD framebuffer driver can be attached to a console.
  83. It will work fine. However, you can't attach it to the fbdev driver
  84. of the xorg server.
  85. To compile this as a module, choose M here:
  86. the modules will be called cfag12864b and cfag12864bfb.
  87. If unsure, say N.
  88. config CFAG12864B_RATE
  89. int "Refresh rate (hertz)"
  90. depends on CFAG12864B
  91. default "20"
  92. ---help---
  93. Refresh rate of the LCD.
  94. As the LCD is not memory mapped, the driver has to make the work by
  95. software. This means you should be careful setting this value higher.
  96. If your CPUs are really slow or you feel the system is slowed down,
  97. decrease the value.
  98. Be careful modifying this value to a very high value:
  99. You can freeze the computer, or the LCD maybe can't draw as fast as you
  100. are requesting.
  101. If you don't know what I'm talking about, ignore it.
  102. If you compile this as a module, you can still override this
  103. value using the module parameters.
  104. config IMG_ASCII_LCD
  105. tristate "Imagination Technologies ASCII LCD Display"
  106. depends on HAS_IOMEM
  107. default y if MIPS_MALTA
  108. select MFD_SYSCON
  109. help
  110. Enable this to support the simple ASCII LCD displays found on
  111. development boards such as the MIPS Boston, MIPS Malta & MIPS SEAD3
  112. from Imagination Technologies.
  113. config HT16K33
  114. tristate "Holtek Ht16K33 LED controller with keyscan"
  115. depends on FB && OF && I2C && INPUT
  116. select FB_SYS_FOPS
  117. select FB_SYS_FILLRECT
  118. select FB_SYS_COPYAREA
  119. select FB_SYS_IMAGEBLIT
  120. select INPUT_MATRIXKMAP
  121. select FB_BACKLIGHT
  122. help
  123. Say yes here to add support for Holtek HT16K33, RAM mapping 16*8
  124. LED controller driver with keyscan.
  125. config ARM_CHARLCD
  126. bool "ARM Ltd. Character LCD Driver"
  127. depends on PLAT_VERSATILE
  128. help
  129. This is a driver for the character LCD found on the ARM Ltd.
  130. Versatile and RealView Platform Baseboards. It doesn't do
  131. very much more than display the text "ARM Linux" on the first
  132. line and the Linux version on the second line, but that's
  133. still useful.
  134. endif # AUXDISPLAY
  135. menuconfig PANEL
  136. tristate "Parallel port LCD/Keypad Panel support"
  137. depends on PARPORT
  138. select CHARLCD
  139. ---help---
  140. Say Y here if you have an HD44780 or KS-0074 LCD connected to your
  141. parallel port. This driver also features 4 and 6-key keypads. The LCD
  142. is accessible through the /dev/lcd char device (10, 156), and the
  143. keypad through /dev/keypad (10, 185). This code can either be
  144. compiled as a module, or linked into the kernel and started at boot.
  145. If you don't understand what all this is about, say N.
  146. if PANEL
  147. config PANEL_PARPORT
  148. int "Default parallel port number (0=LPT1)"
  149. range 0 255
  150. default "0"
  151. ---help---
  152. This is the index of the parallel port the panel is connected to. One
  153. driver instance only supports one parallel port, so if your keypad
  154. and LCD are connected to two separate ports, you have to start two
  155. modules with different arguments. Numbering starts with '0' for LPT1,
  156. and so on.
  157. config PANEL_PROFILE
  158. int "Default panel profile (0-5, 0=custom)"
  159. range 0 5
  160. default "5"
  161. ---help---
  162. To ease configuration, the driver supports different configuration
  163. profiles for past and recent wirings. These profiles can also be
  164. used to define an approximative configuration, completed by a few
  165. other options. Here are the profiles :
  166. 0 = custom (see further)
  167. 1 = 2x16 parallel LCD, old keypad
  168. 2 = 2x16 serial LCD (KS-0074), new keypad
  169. 3 = 2x16 parallel LCD (Hantronix), no keypad
  170. 4 = 2x16 parallel LCD (Nexcom NSA1045) with Nexcom's keypad
  171. 5 = 2x40 parallel LCD (old one), with old keypad
  172. Custom configurations allow you to define how your display is
  173. wired to the parallel port, and how it works. This is only intended
  174. for experts.
  175. config PANEL_KEYPAD
  176. depends on PANEL_PROFILE="0"
  177. int "Keypad type (0=none, 1=old 6 keys, 2=new 6 keys, 3=Nexcom 4 keys)"
  178. range 0 3
  179. default 0
  180. ---help---
  181. This enables and configures a keypad connected to the parallel port.
  182. The keys will be read from character device 10,185. Valid values are :
  183. 0 : do not enable this driver
  184. 1 : old 6 keys keypad
  185. 2 : new 6 keys keypad, as used on the server at www.ant-computing.com
  186. 3 : Nexcom NSA1045's 4 keys keypad
  187. New profiles can be described in the driver source. The driver also
  188. supports simultaneous keys pressed when the keypad supports them.
  189. config PANEL_LCD
  190. depends on PANEL_PROFILE="0"
  191. int "LCD type (0=none, 1=custom, 2=old //, 3=ks0074, 4=hantronix, 5=Nexcom)"
  192. range 0 5
  193. default 0
  194. ---help---
  195. This enables and configures an LCD connected to the parallel port.
  196. The driver includes an interpreter for escape codes starting with
  197. '\e[L' which are specific to the LCD, and a few ANSI codes. The
  198. driver will be registered as character device 10,156, usually
  199. under the name '/dev/lcd'. There are a total of 6 supported types :
  200. 0 : do not enable the driver
  201. 1 : custom configuration and wiring (see further)
  202. 2 : 2x16 & 2x40 parallel LCD (old wiring)
  203. 3 : 2x16 serial LCD (KS-0074 based)
  204. 4 : 2x16 parallel LCD (Hantronix wiring)
  205. 5 : 2x16 parallel LCD (Nexcom wiring)
  206. When type '1' is specified, other options will appear to configure
  207. more precise aspects (wiring, dimensions, protocol, ...). Please note
  208. that those values changed from the 2.4 driver for better consistency.
  209. config PANEL_LCD_HEIGHT
  210. depends on PANEL_PROFILE="0" && PANEL_LCD="1"
  211. int "Number of lines on the LCD (1-2)"
  212. range 1 2
  213. default 2
  214. ---help---
  215. This is the number of visible character lines on the LCD in custom profile.
  216. It can either be 1 or 2.
  217. config PANEL_LCD_WIDTH
  218. depends on PANEL_PROFILE="0" && PANEL_LCD="1"
  219. int "Number of characters per line on the LCD (1-40)"
  220. range 1 40
  221. default 40
  222. ---help---
  223. This is the number of characters per line on the LCD in custom profile.
  224. Common values are 16,20,24,40.
  225. config PANEL_LCD_BWIDTH
  226. depends on PANEL_PROFILE="0" && PANEL_LCD="1"
  227. int "Internal LCD line width (1-40, 40 by default)"
  228. range 1 40
  229. default 40
  230. ---help---
  231. Most LCDs use a standard controller which supports hardware lines of 40
  232. characters, although sometimes only 16, 20 or 24 of them are really wired
  233. to the terminal. This results in some non-visible but addressable characters,
  234. and is the case for most parallel LCDs. Other LCDs, and some serial ones,
  235. however, use the same line width internally as what is visible. The KS0074
  236. for example, uses 16 characters per line for 16 visible characters per line.
  237. This option lets you configure the value used by your LCD in 'custom' profile.
  238. If you don't know, put '40' here.
  239. config PANEL_LCD_HWIDTH
  240. depends on PANEL_PROFILE="0" && PANEL_LCD="1"
  241. int "Hardware LCD line width (1-64, 64 by default)"
  242. range 1 64
  243. default 64
  244. ---help---
  245. Most LCDs use a single address bit to differentiate line 0 and line 1. Since
  246. some of them need to be able to address 40 chars with the lower bits, they
  247. often use the immediately superior power of 2, which is 64, to address the
  248. next line.
  249. If you don't know what your LCD uses, in doubt let 16 here for a 2x16, and
  250. 64 here for a 2x40.
  251. config PANEL_LCD_CHARSET
  252. depends on PANEL_PROFILE="0" && PANEL_LCD="1"
  253. int "LCD character set (0=normal, 1=KS0074)"
  254. range 0 1
  255. default 0
  256. ---help---
  257. Some controllers such as the KS0074 use a somewhat strange character set
  258. where many symbols are at unusual places. The driver knows how to map
  259. 'standard' ASCII characters to the character sets used by these controllers.
  260. Valid values are :
  261. 0 : normal (untranslated) character set
  262. 1 : KS0074 character set
  263. If you don't know, use the normal one (0).
  264. config PANEL_LCD_PROTO
  265. depends on PANEL_PROFILE="0" && PANEL_LCD="1"
  266. int "LCD communication mode (0=parallel 8 bits, 1=serial)"
  267. range 0 1
  268. default 0
  269. ---help---
  270. This driver now supports any serial or parallel LCD wired to a parallel
  271. port. But before assigning signals, the driver needs to know if it will
  272. be driving a serial LCD or a parallel one. Serial LCDs only use 2 wires
  273. (SDA/SCL), while parallel ones use 2 or 3 wires for the control signals
  274. (E, RS, sometimes RW), and 4 or 8 for the data. Use 0 here for a 8 bits
  275. parallel LCD, and 1 for a serial LCD.
  276. config PANEL_LCD_PIN_E
  277. depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO="0"
  278. int "Parallel port pin number & polarity connected to the LCD E signal (-17...17) "
  279. range -17 17
  280. default 14
  281. ---help---
  282. This describes the number of the parallel port pin to which the LCD 'E'
  283. signal has been connected. It can be :
  284. 0 : no connection (eg: connected to ground)
  285. 1..17 : directly connected to any of these pins on the DB25 plug
  286. -1..-17 : connected to the same pin through an inverter (eg: transistor).
  287. Default for the 'E' pin in custom profile is '14' (AUTOFEED).
  288. config PANEL_LCD_PIN_RS
  289. depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO="0"
  290. int "Parallel port pin number & polarity connected to the LCD RS signal (-17...17) "
  291. range -17 17
  292. default 17
  293. ---help---
  294. This describes the number of the parallel port pin to which the LCD 'RS'
  295. signal has been connected. It can be :
  296. 0 : no connection (eg: connected to ground)
  297. 1..17 : directly connected to any of these pins on the DB25 plug
  298. -1..-17 : connected to the same pin through an inverter (eg: transistor).
  299. Default for the 'RS' pin in custom profile is '17' (SELECT IN).
  300. config PANEL_LCD_PIN_RW
  301. depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO="0"
  302. int "Parallel port pin number & polarity connected to the LCD RW signal (-17...17) "
  303. range -17 17
  304. default 16
  305. ---help---
  306. This describes the number of the parallel port pin to which the LCD 'RW'
  307. signal has been connected. It can be :
  308. 0 : no connection (eg: connected to ground)
  309. 1..17 : directly connected to any of these pins on the DB25 plug
  310. -1..-17 : connected to the same pin through an inverter (eg: transistor).
  311. Default for the 'RW' pin in custom profile is '16' (INIT).
  312. config PANEL_LCD_PIN_SCL
  313. depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO!="0"
  314. int "Parallel port pin number & polarity connected to the LCD SCL signal (-17...17) "
  315. range -17 17
  316. default 1
  317. ---help---
  318. This describes the number of the parallel port pin to which the serial
  319. LCD 'SCL' signal has been connected. It can be :
  320. 0 : no connection (eg: connected to ground)
  321. 1..17 : directly connected to any of these pins on the DB25 plug
  322. -1..-17 : connected to the same pin through an inverter (eg: transistor).
  323. Default for the 'SCL' pin in custom profile is '1' (STROBE).
  324. config PANEL_LCD_PIN_SDA
  325. depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO!="0"
  326. int "Parallel port pin number & polarity connected to the LCD SDA signal (-17...17) "
  327. range -17 17
  328. default 2
  329. ---help---
  330. This describes the number of the parallel port pin to which the serial
  331. LCD 'SDA' signal has been connected. It can be :
  332. 0 : no connection (eg: connected to ground)
  333. 1..17 : directly connected to any of these pins on the DB25 plug
  334. -1..-17 : connected to the same pin through an inverter (eg: transistor).
  335. Default for the 'SDA' pin in custom profile is '2' (D0).
  336. config PANEL_LCD_PIN_BL
  337. depends on PANEL_PROFILE="0" && PANEL_LCD="1"
  338. int "Parallel port pin number & polarity connected to the LCD backlight signal (-17...17) "
  339. range -17 17
  340. default 0
  341. ---help---
  342. This describes the number of the parallel port pin to which the LCD 'BL' signal
  343. has been connected. It can be :
  344. 0 : no connection (eg: connected to ground)
  345. 1..17 : directly connected to any of these pins on the DB25 plug
  346. -1..-17 : connected to the same pin through an inverter (eg: transistor).
  347. Default for the 'BL' pin in custom profile is '0' (uncontrolled).
  348. config PANEL_CHANGE_MESSAGE
  349. bool "Change LCD initialization message ?"
  350. default "n"
  351. ---help---
  352. This allows you to replace the boot message indicating the kernel version
  353. and the driver version with a custom message. This is useful on appliances
  354. where a simple 'Starting system' message can be enough to stop a customer
  355. from worrying.
  356. If you say 'Y' here, you'll be able to choose a message yourself. Otherwise,
  357. say 'N' and keep the default message with the version.
  358. config PANEL_BOOT_MESSAGE
  359. depends on PANEL_CHANGE_MESSAGE="y"
  360. string "New initialization message"
  361. default ""
  362. ---help---
  363. This allows you to replace the boot message indicating the kernel version
  364. and the driver version with a custom message. This is useful on appliances
  365. where a simple 'Starting system' message can be enough to stop a customer
  366. from worrying.
  367. An empty message will only clear the display at driver init time. Any other
  368. printf()-formatted message is valid with newline and escape codes.
  369. endif # PANEL
  370. config CHARLCD
  371. tristate "Character LCD core support" if COMPILE_TEST