Kconfig 18 KB

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