Kconfig 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484
  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.rst.
  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/admin-guide/auxdisplay/cfag12864b.rst
  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. menuconfig PARPORT_PANEL
  135. tristate "Parallel port LCD/Keypad Panel support"
  136. depends on PARPORT
  137. select CHARLCD
  138. ---help---
  139. Say Y here if you have an HD44780 or KS-0074 LCD connected to your
  140. parallel port. This driver also features 4 and 6-key keypads. The LCD
  141. is accessible through the /dev/lcd char device (10, 156), and the
  142. keypad through /dev/keypad (10, 185). This code can either be
  143. compiled as a module, or linked into the kernel and started at boot.
  144. If you don't understand what all this is about, say N.
  145. if PARPORT_PANEL
  146. config PANEL_PARPORT
  147. int "Default parallel port number (0=LPT1)"
  148. range 0 255
  149. default "0"
  150. ---help---
  151. This is the index of the parallel port the panel is connected to. One
  152. driver instance only supports one parallel port, so if your keypad
  153. and LCD are connected to two separate ports, you have to start two
  154. modules with different arguments. Numbering starts with '0' for LPT1,
  155. and so on.
  156. config PANEL_PROFILE
  157. int "Default panel profile (0-5, 0=custom)"
  158. range 0 5
  159. default "5"
  160. ---help---
  161. To ease configuration, the driver supports different configuration
  162. profiles for past and recent wirings. These profiles can also be
  163. used to define an approximative configuration, completed by a few
  164. other options. Here are the profiles :
  165. 0 = custom (see further)
  166. 1 = 2x16 parallel LCD, old keypad
  167. 2 = 2x16 serial LCD (KS-0074), new keypad
  168. 3 = 2x16 parallel LCD (Hantronix), no keypad
  169. 4 = 2x16 parallel LCD (Nexcom NSA1045) with Nexcom's keypad
  170. 5 = 2x40 parallel LCD (old one), with old keypad
  171. Custom configurations allow you to define how your display is
  172. wired to the parallel port, and how it works. This is only intended
  173. for experts.
  174. config PANEL_KEYPAD
  175. depends on PANEL_PROFILE="0"
  176. int "Keypad type (0=none, 1=old 6 keys, 2=new 6 keys, 3=Nexcom 4 keys)"
  177. range 0 3
  178. default 0
  179. ---help---
  180. This enables and configures a keypad connected to the parallel port.
  181. The keys will be read from character device 10,185. Valid values are :
  182. 0 : do not enable this driver
  183. 1 : old 6 keys keypad
  184. 2 : new 6 keys keypad, as used on the server at www.ant-computing.com
  185. 3 : Nexcom NSA1045's 4 keys keypad
  186. New profiles can be described in the driver source. The driver also
  187. supports simultaneous keys pressed when the keypad supports them.
  188. config PANEL_LCD
  189. depends on PANEL_PROFILE="0"
  190. int "LCD type (0=none, 1=custom, 2=old //, 3=ks0074, 4=hantronix, 5=Nexcom)"
  191. range 0 5
  192. default 0
  193. ---help---
  194. This enables and configures an LCD connected to the parallel port.
  195. The driver includes an interpreter for escape codes starting with
  196. '\e[L' which are specific to the LCD, and a few ANSI codes. The
  197. driver will be registered as character device 10,156, usually
  198. under the name '/dev/lcd'. There are a total of 6 supported types :
  199. 0 : do not enable the driver
  200. 1 : custom configuration and wiring (see further)
  201. 2 : 2x16 & 2x40 parallel LCD (old wiring)
  202. 3 : 2x16 serial LCD (KS-0074 based)
  203. 4 : 2x16 parallel LCD (Hantronix wiring)
  204. 5 : 2x16 parallel LCD (Nexcom wiring)
  205. When type '1' is specified, other options will appear to configure
  206. more precise aspects (wiring, dimensions, protocol, ...). Please note
  207. that those values changed from the 2.4 driver for better consistency.
  208. config PANEL_LCD_HEIGHT
  209. depends on PANEL_PROFILE="0" && PANEL_LCD="1"
  210. int "Number of lines on the LCD (1-2)"
  211. range 1 2
  212. default 2
  213. ---help---
  214. This is the number of visible character lines on the LCD in custom profile.
  215. It can either be 1 or 2.
  216. config PANEL_LCD_WIDTH
  217. depends on PANEL_PROFILE="0" && PANEL_LCD="1"
  218. int "Number of characters per line on the LCD (1-40)"
  219. range 1 40
  220. default 40
  221. ---help---
  222. This is the number of characters per line on the LCD in custom profile.
  223. Common values are 16,20,24,40.
  224. config PANEL_LCD_BWIDTH
  225. depends on PANEL_PROFILE="0" && PANEL_LCD="1"
  226. int "Internal LCD line width (1-40, 40 by default)"
  227. range 1 40
  228. default 40
  229. ---help---
  230. Most LCDs use a standard controller which supports hardware lines of 40
  231. characters, although sometimes only 16, 20 or 24 of them are really wired
  232. to the terminal. This results in some non-visible but addressable characters,
  233. and is the case for most parallel LCDs. Other LCDs, and some serial ones,
  234. however, use the same line width internally as what is visible. The KS0074
  235. for example, uses 16 characters per line for 16 visible characters per line.
  236. This option lets you configure the value used by your LCD in 'custom' profile.
  237. If you don't know, put '40' here.
  238. config PANEL_LCD_HWIDTH
  239. depends on PANEL_PROFILE="0" && PANEL_LCD="1"
  240. int "Hardware LCD line width (1-64, 64 by default)"
  241. range 1 64
  242. default 64
  243. ---help---
  244. Most LCDs use a single address bit to differentiate line 0 and line 1. Since
  245. some of them need to be able to address 40 chars with the lower bits, they
  246. often use the immediately superior power of 2, which is 64, to address the
  247. next line.
  248. If you don't know what your LCD uses, in doubt let 16 here for a 2x16, and
  249. 64 here for a 2x40.
  250. config PANEL_LCD_CHARSET
  251. depends on PANEL_PROFILE="0" && PANEL_LCD="1"
  252. int "LCD character set (0=normal, 1=KS0074)"
  253. range 0 1
  254. default 0
  255. ---help---
  256. Some controllers such as the KS0074 use a somewhat strange character set
  257. where many symbols are at unusual places. The driver knows how to map
  258. 'standard' ASCII characters to the character sets used by these controllers.
  259. Valid values are :
  260. 0 : normal (untranslated) character set
  261. 1 : KS0074 character set
  262. If you don't know, use the normal one (0).
  263. config PANEL_LCD_PROTO
  264. depends on PANEL_PROFILE="0" && PANEL_LCD="1"
  265. int "LCD communication mode (0=parallel 8 bits, 1=serial)"
  266. range 0 1
  267. default 0
  268. ---help---
  269. This driver now supports any serial or parallel LCD wired to a parallel
  270. port. But before assigning signals, the driver needs to know if it will
  271. be driving a serial LCD or a parallel one. Serial LCDs only use 2 wires
  272. (SDA/SCL), while parallel ones use 2 or 3 wires for the control signals
  273. (E, RS, sometimes RW), and 4 or 8 for the data. Use 0 here for a 8 bits
  274. parallel LCD, and 1 for a serial LCD.
  275. config PANEL_LCD_PIN_E
  276. depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO="0"
  277. int "Parallel port pin number & polarity connected to the LCD E signal (-17...17) "
  278. range -17 17
  279. default 14
  280. ---help---
  281. This describes the number of the parallel port pin to which the LCD 'E'
  282. signal has been connected. It can be :
  283. 0 : no connection (eg: connected to ground)
  284. 1..17 : directly connected to any of these pins on the DB25 plug
  285. -1..-17 : connected to the same pin through an inverter (eg: transistor).
  286. Default for the 'E' pin in custom profile is '14' (AUTOFEED).
  287. config PANEL_LCD_PIN_RS
  288. depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO="0"
  289. int "Parallel port pin number & polarity connected to the LCD RS signal (-17...17) "
  290. range -17 17
  291. default 17
  292. ---help---
  293. This describes the number of the parallel port pin to which the LCD 'RS'
  294. signal has been connected. It can be :
  295. 0 : no connection (eg: connected to ground)
  296. 1..17 : directly connected to any of these pins on the DB25 plug
  297. -1..-17 : connected to the same pin through an inverter (eg: transistor).
  298. Default for the 'RS' pin in custom profile is '17' (SELECT IN).
  299. config PANEL_LCD_PIN_RW
  300. depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO="0"
  301. int "Parallel port pin number & polarity connected to the LCD RW signal (-17...17) "
  302. range -17 17
  303. default 16
  304. ---help---
  305. This describes the number of the parallel port pin to which the LCD 'RW'
  306. signal has been connected. It can be :
  307. 0 : no connection (eg: connected to ground)
  308. 1..17 : directly connected to any of these pins on the DB25 plug
  309. -1..-17 : connected to the same pin through an inverter (eg: transistor).
  310. Default for the 'RW' pin in custom profile is '16' (INIT).
  311. config PANEL_LCD_PIN_SCL
  312. depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO!="0"
  313. int "Parallel port pin number & polarity connected to the LCD SCL signal (-17...17) "
  314. range -17 17
  315. default 1
  316. ---help---
  317. This describes the number of the parallel port pin to which the serial
  318. LCD 'SCL' signal has been connected. It can be :
  319. 0 : no connection (eg: connected to ground)
  320. 1..17 : directly connected to any of these pins on the DB25 plug
  321. -1..-17 : connected to the same pin through an inverter (eg: transistor).
  322. Default for the 'SCL' pin in custom profile is '1' (STROBE).
  323. config PANEL_LCD_PIN_SDA
  324. depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO!="0"
  325. int "Parallel port pin number & polarity connected to the LCD SDA signal (-17...17) "
  326. range -17 17
  327. default 2
  328. ---help---
  329. This describes the number of the parallel port pin to which the serial
  330. LCD 'SDA' signal has been connected. It can be :
  331. 0 : no connection (eg: connected to ground)
  332. 1..17 : directly connected to any of these pins on the DB25 plug
  333. -1..-17 : connected to the same pin through an inverter (eg: transistor).
  334. Default for the 'SDA' pin in custom profile is '2' (D0).
  335. config PANEL_LCD_PIN_BL
  336. depends on PANEL_PROFILE="0" && PANEL_LCD="1"
  337. int "Parallel port pin number & polarity connected to the LCD backlight signal (-17...17) "
  338. range -17 17
  339. default 0
  340. ---help---
  341. This describes the number of the parallel port pin to which the LCD 'BL' signal
  342. has been connected. It can be :
  343. 0 : no connection (eg: connected to ground)
  344. 1..17 : directly connected to any of these pins on the DB25 plug
  345. -1..-17 : connected to the same pin through an inverter (eg: transistor).
  346. Default for the 'BL' pin in custom profile is '0' (uncontrolled).
  347. endif # PARPORT_PANEL
  348. config PANEL_CHANGE_MESSAGE
  349. bool "Change LCD initialization message ?"
  350. depends on CHARLCD
  351. default "n"
  352. ---help---
  353. This allows you to replace the boot message indicating the kernel version
  354. and the driver version with a custom message. This is useful on appliances
  355. where a simple 'Starting system' message can be enough to stop a customer
  356. from worrying.
  357. If you say 'Y' here, you'll be able to choose a message yourself. Otherwise,
  358. say 'N' and keep the default message with the version.
  359. config PANEL_BOOT_MESSAGE
  360. depends on PANEL_CHANGE_MESSAGE="y"
  361. string "New initialization message"
  362. default ""
  363. ---help---
  364. This allows you to replace the boot message indicating the kernel version
  365. and the driver version with a custom message. This is useful on appliances
  366. where a simple 'Starting system' message can be enough to stop a customer
  367. from worrying.
  368. An empty message will only clear the display at driver init time. Any other
  369. printf()-formatted message is valid with newline and escape codes.
  370. choice
  371. prompt "Backlight initial state"
  372. default CHARLCD_BL_FLASH
  373. ---help---
  374. Select the initial backlight state on boot or module load.
  375. Previously, there was no option for this: the backlight flashed
  376. briefly on init. Now you can also turn it off/on.
  377. config CHARLCD_BL_OFF
  378. bool "Off"
  379. help
  380. Backlight is initially turned off
  381. config CHARLCD_BL_ON
  382. bool "On"
  383. help
  384. Backlight is initially turned on
  385. config CHARLCD_BL_FLASH
  386. bool "Flash"
  387. help
  388. Backlight is flashed briefly on init
  389. endchoice
  390. endif # AUXDISPLAY
  391. config PANEL
  392. tristate "Parallel port LCD/Keypad Panel support (OLD OPTION)"
  393. depends on PARPORT
  394. select AUXDISPLAY
  395. select PARPORT_PANEL
  396. config CHARLCD
  397. tristate "Character LCD core support" if COMPILE_TEST