.. | .. |
---|
1 | 1 | # SPDX-License-Identifier: GPL-2.0 |
---|
2 | 2 | # |
---|
3 | 3 | # For a description of the syntax of this configuration file, |
---|
4 | | -# see Documentation/kbuild/kconfig-language.txt. |
---|
| 4 | +# see Documentation/kbuild/kconfig-language.rst. |
---|
5 | 5 | # |
---|
6 | 6 | # Auxiliary display drivers configuration. |
---|
7 | 7 | # |
---|
8 | 8 | |
---|
9 | 9 | menuconfig AUXDISPLAY |
---|
10 | 10 | bool "Auxiliary Display support" |
---|
11 | | - ---help--- |
---|
| 11 | + help |
---|
12 | 12 | Say Y here to get to see options for auxiliary display drivers. |
---|
13 | 13 | This option alone does not add any kernel code. |
---|
14 | 14 | |
---|
.. | .. |
---|
20 | 20 | tristate "HD44780 Character LCD support" |
---|
21 | 21 | depends on GPIOLIB || COMPILE_TEST |
---|
22 | 22 | select CHARLCD |
---|
23 | | - ---help--- |
---|
| 23 | + help |
---|
24 | 24 | Enable support for Character LCDs using a HD44780 controller. |
---|
25 | 25 | The LCD is accessible through the /dev/lcd char device (10, 156). |
---|
26 | 26 | This code can either be compiled as a module, or linked into the |
---|
.. | .. |
---|
31 | 31 | tristate "KS0108 LCD Controller" |
---|
32 | 32 | depends on PARPORT_PC |
---|
33 | 33 | default n |
---|
34 | | - ---help--- |
---|
| 34 | + help |
---|
35 | 35 | If you have a LCD controlled by one or more KS0108 |
---|
36 | 36 | controllers, say Y. You will need also another more specific |
---|
37 | 37 | driver for your LCD. |
---|
.. | .. |
---|
49 | 49 | hex "Parallel port where the LCD is connected" |
---|
50 | 50 | depends on KS0108 |
---|
51 | 51 | default 0x378 |
---|
52 | | - ---help--- |
---|
| 52 | + help |
---|
53 | 53 | The address of the parallel port where the LCD is connected. |
---|
54 | 54 | |
---|
55 | 55 | The first standard parallel port address is 0x378. |
---|
.. | .. |
---|
71 | 71 | int "Delay between each control writing (microseconds)" |
---|
72 | 72 | depends on KS0108 |
---|
73 | 73 | default "2" |
---|
74 | | - ---help--- |
---|
| 74 | + help |
---|
75 | 75 | Amount of time the ks0108 should wait between each control write |
---|
76 | 76 | to the parallel port. |
---|
77 | 77 | |
---|
.. | .. |
---|
92 | 92 | select FB_SYS_IMAGEBLIT |
---|
93 | 93 | select FB_SYS_FOPS |
---|
94 | 94 | default n |
---|
95 | | - ---help--- |
---|
| 95 | + help |
---|
96 | 96 | If you have a Crystalfontz 128x64 2-color LCD, cfag12864b Series, |
---|
97 | 97 | say Y. You also need the ks0108 LCD Controller driver. |
---|
98 | 98 | |
---|
99 | 99 | For help about how to wire your LCD to the parallel port, |
---|
100 | | - check Documentation/auxdisplay/cfag12864b |
---|
| 100 | + check Documentation/admin-guide/auxdisplay/cfag12864b.rst |
---|
101 | 101 | |
---|
102 | 102 | Depends on the x86 arch and the framebuffer support. |
---|
103 | 103 | |
---|
.. | .. |
---|
111 | 111 | If unsure, say N. |
---|
112 | 112 | |
---|
113 | 113 | config CFAG12864B_RATE |
---|
114 | | - int "Refresh rate (hertz)" |
---|
| 114 | + int "Refresh rate (hertz)" |
---|
115 | 115 | depends on CFAG12864B |
---|
116 | 116 | default "20" |
---|
117 | | - ---help--- |
---|
| 117 | + help |
---|
118 | 118 | Refresh rate of the LCD. |
---|
119 | 119 | |
---|
120 | 120 | As the LCD is not memory mapped, the driver has to make the work by |
---|
.. | .. |
---|
164 | 164 | line and the Linux version on the second line, but that's |
---|
165 | 165 | still useful. |
---|
166 | 166 | |
---|
167 | | -endif # AUXDISPLAY |
---|
168 | | - |
---|
169 | | -menuconfig PANEL |
---|
| 167 | +menuconfig PARPORT_PANEL |
---|
170 | 168 | tristate "Parallel port LCD/Keypad Panel support" |
---|
171 | 169 | depends on PARPORT |
---|
172 | 170 | select CHARLCD |
---|
173 | | - ---help--- |
---|
| 171 | + help |
---|
174 | 172 | Say Y here if you have an HD44780 or KS-0074 LCD connected to your |
---|
175 | 173 | parallel port. This driver also features 4 and 6-key keypads. The LCD |
---|
176 | 174 | is accessible through the /dev/lcd char device (10, 156), and the |
---|
.. | .. |
---|
178 | 176 | compiled as a module, or linked into the kernel and started at boot. |
---|
179 | 177 | If you don't understand what all this is about, say N. |
---|
180 | 178 | |
---|
181 | | -if PANEL |
---|
| 179 | +if PARPORT_PANEL |
---|
182 | 180 | |
---|
183 | 181 | config PANEL_PARPORT |
---|
184 | 182 | int "Default parallel port number (0=LPT1)" |
---|
185 | 183 | range 0 255 |
---|
186 | 184 | default "0" |
---|
187 | | - ---help--- |
---|
| 185 | + help |
---|
188 | 186 | This is the index of the parallel port the panel is connected to. One |
---|
189 | 187 | driver instance only supports one parallel port, so if your keypad |
---|
190 | 188 | and LCD are connected to two separate ports, you have to start two |
---|
.. | .. |
---|
195 | 193 | int "Default panel profile (0-5, 0=custom)" |
---|
196 | 194 | range 0 5 |
---|
197 | 195 | default "5" |
---|
198 | | - ---help--- |
---|
| 196 | + help |
---|
199 | 197 | To ease configuration, the driver supports different configuration |
---|
200 | 198 | profiles for past and recent wirings. These profiles can also be |
---|
201 | 199 | used to define an approximative configuration, completed by a few |
---|
.. | .. |
---|
217 | 215 | int "Keypad type (0=none, 1=old 6 keys, 2=new 6 keys, 3=Nexcom 4 keys)" |
---|
218 | 216 | range 0 3 |
---|
219 | 217 | default 0 |
---|
220 | | - ---help--- |
---|
| 218 | + help |
---|
221 | 219 | This enables and configures a keypad connected to the parallel port. |
---|
222 | 220 | The keys will be read from character device 10,185. Valid values are : |
---|
223 | 221 | |
---|
.. | .. |
---|
234 | 232 | int "LCD type (0=none, 1=custom, 2=old //, 3=ks0074, 4=hantronix, 5=Nexcom)" |
---|
235 | 233 | range 0 5 |
---|
236 | 234 | default 0 |
---|
237 | | - ---help--- |
---|
| 235 | + help |
---|
238 | 236 | This enables and configures an LCD connected to the parallel port. |
---|
239 | 237 | The driver includes an interpreter for escape codes starting with |
---|
240 | 238 | '\e[L' which are specific to the LCD, and a few ANSI codes. The |
---|
.. | .. |
---|
257 | 255 | int "Number of lines on the LCD (1-2)" |
---|
258 | 256 | range 1 2 |
---|
259 | 257 | default 2 |
---|
260 | | - ---help--- |
---|
| 258 | + help |
---|
261 | 259 | This is the number of visible character lines on the LCD in custom profile. |
---|
262 | 260 | It can either be 1 or 2. |
---|
263 | 261 | |
---|
.. | .. |
---|
266 | 264 | int "Number of characters per line on the LCD (1-40)" |
---|
267 | 265 | range 1 40 |
---|
268 | 266 | default 40 |
---|
269 | | - ---help--- |
---|
| 267 | + help |
---|
270 | 268 | This is the number of characters per line on the LCD in custom profile. |
---|
271 | 269 | Common values are 16,20,24,40. |
---|
272 | 270 | |
---|
.. | .. |
---|
275 | 273 | int "Internal LCD line width (1-40, 40 by default)" |
---|
276 | 274 | range 1 40 |
---|
277 | 275 | default 40 |
---|
278 | | - ---help--- |
---|
| 276 | + help |
---|
279 | 277 | Most LCDs use a standard controller which supports hardware lines of 40 |
---|
280 | 278 | characters, although sometimes only 16, 20 or 24 of them are really wired |
---|
281 | 279 | to the terminal. This results in some non-visible but addressable characters, |
---|
.. | .. |
---|
291 | 289 | int "Hardware LCD line width (1-64, 64 by default)" |
---|
292 | 290 | range 1 64 |
---|
293 | 291 | default 64 |
---|
294 | | - ---help--- |
---|
| 292 | + help |
---|
295 | 293 | Most LCDs use a single address bit to differentiate line 0 and line 1. Since |
---|
296 | 294 | some of them need to be able to address 40 chars with the lower bits, they |
---|
297 | 295 | often use the immediately superior power of 2, which is 64, to address the |
---|
.. | .. |
---|
305 | 303 | int "LCD character set (0=normal, 1=KS0074)" |
---|
306 | 304 | range 0 1 |
---|
307 | 305 | default 0 |
---|
308 | | - ---help--- |
---|
| 306 | + help |
---|
309 | 307 | Some controllers such as the KS0074 use a somewhat strange character set |
---|
310 | 308 | where many symbols are at unusual places. The driver knows how to map |
---|
311 | 309 | 'standard' ASCII characters to the character sets used by these controllers. |
---|
.. | .. |
---|
321 | 319 | int "LCD communication mode (0=parallel 8 bits, 1=serial)" |
---|
322 | 320 | range 0 1 |
---|
323 | 321 | default 0 |
---|
324 | | - ---help--- |
---|
| 322 | + help |
---|
325 | 323 | This driver now supports any serial or parallel LCD wired to a parallel |
---|
326 | 324 | port. But before assigning signals, the driver needs to know if it will |
---|
327 | 325 | be driving a serial LCD or a parallel one. Serial LCDs only use 2 wires |
---|
.. | .. |
---|
331 | 329 | |
---|
332 | 330 | config PANEL_LCD_PIN_E |
---|
333 | 331 | depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO="0" |
---|
334 | | - int "Parallel port pin number & polarity connected to the LCD E signal (-17...17) " |
---|
| 332 | + int "Parallel port pin number & polarity connected to the LCD E signal (-17...17) " |
---|
335 | 333 | range -17 17 |
---|
336 | 334 | default 14 |
---|
337 | | - ---help--- |
---|
| 335 | + help |
---|
338 | 336 | This describes the number of the parallel port pin to which the LCD 'E' |
---|
339 | 337 | signal has been connected. It can be : |
---|
340 | 338 | |
---|
.. | .. |
---|
346 | 344 | |
---|
347 | 345 | config PANEL_LCD_PIN_RS |
---|
348 | 346 | depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO="0" |
---|
349 | | - int "Parallel port pin number & polarity connected to the LCD RS signal (-17...17) " |
---|
| 347 | + int "Parallel port pin number & polarity connected to the LCD RS signal (-17...17) " |
---|
350 | 348 | range -17 17 |
---|
351 | 349 | default 17 |
---|
352 | | - ---help--- |
---|
| 350 | + help |
---|
353 | 351 | This describes the number of the parallel port pin to which the LCD 'RS' |
---|
354 | 352 | signal has been connected. It can be : |
---|
355 | 353 | |
---|
.. | .. |
---|
361 | 359 | |
---|
362 | 360 | config PANEL_LCD_PIN_RW |
---|
363 | 361 | depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO="0" |
---|
364 | | - int "Parallel port pin number & polarity connected to the LCD RW signal (-17...17) " |
---|
| 362 | + int "Parallel port pin number & polarity connected to the LCD RW signal (-17...17) " |
---|
365 | 363 | range -17 17 |
---|
366 | 364 | default 16 |
---|
367 | | - ---help--- |
---|
| 365 | + help |
---|
368 | 366 | This describes the number of the parallel port pin to which the LCD 'RW' |
---|
369 | 367 | signal has been connected. It can be : |
---|
370 | 368 | |
---|
.. | .. |
---|
376 | 374 | |
---|
377 | 375 | config PANEL_LCD_PIN_SCL |
---|
378 | 376 | depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO!="0" |
---|
379 | | - int "Parallel port pin number & polarity connected to the LCD SCL signal (-17...17) " |
---|
| 377 | + int "Parallel port pin number & polarity connected to the LCD SCL signal (-17...17) " |
---|
380 | 378 | range -17 17 |
---|
381 | 379 | default 1 |
---|
382 | | - ---help--- |
---|
| 380 | + help |
---|
383 | 381 | This describes the number of the parallel port pin to which the serial |
---|
384 | 382 | LCD 'SCL' signal has been connected. It can be : |
---|
385 | 383 | |
---|
.. | .. |
---|
391 | 389 | |
---|
392 | 390 | config PANEL_LCD_PIN_SDA |
---|
393 | 391 | depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO!="0" |
---|
394 | | - int "Parallel port pin number & polarity connected to the LCD SDA signal (-17...17) " |
---|
| 392 | + int "Parallel port pin number & polarity connected to the LCD SDA signal (-17...17) " |
---|
395 | 393 | range -17 17 |
---|
396 | 394 | default 2 |
---|
397 | | - ---help--- |
---|
| 395 | + help |
---|
398 | 396 | This describes the number of the parallel port pin to which the serial |
---|
399 | 397 | LCD 'SDA' signal has been connected. It can be : |
---|
400 | 398 | |
---|
.. | .. |
---|
406 | 404 | |
---|
407 | 405 | config PANEL_LCD_PIN_BL |
---|
408 | 406 | depends on PANEL_PROFILE="0" && PANEL_LCD="1" |
---|
409 | | - int "Parallel port pin number & polarity connected to the LCD backlight signal (-17...17) " |
---|
| 407 | + int "Parallel port pin number & polarity connected to the LCD backlight signal (-17...17) " |
---|
410 | 408 | range -17 17 |
---|
411 | 409 | default 0 |
---|
412 | | - ---help--- |
---|
| 410 | + help |
---|
413 | 411 | This describes the number of the parallel port pin to which the LCD 'BL' signal |
---|
414 | | - has been connected. It can be : |
---|
| 412 | + has been connected. It can be : |
---|
415 | 413 | |
---|
416 | 414 | 0 : no connection (eg: connected to ground) |
---|
417 | 415 | 1..17 : directly connected to any of these pins on the DB25 plug |
---|
.. | .. |
---|
419 | 417 | |
---|
420 | 418 | Default for the 'BL' pin in custom profile is '0' (uncontrolled). |
---|
421 | 419 | |
---|
| 420 | +endif # PARPORT_PANEL |
---|
| 421 | + |
---|
422 | 422 | config PANEL_CHANGE_MESSAGE |
---|
423 | 423 | bool "Change LCD initialization message ?" |
---|
| 424 | + depends on CHARLCD |
---|
424 | 425 | default "n" |
---|
425 | | - ---help--- |
---|
| 426 | + help |
---|
426 | 427 | This allows you to replace the boot message indicating the kernel version |
---|
427 | 428 | and the driver version with a custom message. This is useful on appliances |
---|
428 | 429 | where a simple 'Starting system' message can be enough to stop a customer |
---|
.. | .. |
---|
435 | 436 | depends on PANEL_CHANGE_MESSAGE="y" |
---|
436 | 437 | string "New initialization message" |
---|
437 | 438 | default "" |
---|
438 | | - ---help--- |
---|
| 439 | + help |
---|
439 | 440 | This allows you to replace the boot message indicating the kernel version |
---|
440 | 441 | and the driver version with a custom message. This is useful on appliances |
---|
441 | 442 | where a simple 'Starting system' message can be enough to stop a customer |
---|
.. | .. |
---|
444 | 445 | An empty message will only clear the display at driver init time. Any other |
---|
445 | 446 | printf()-formatted message is valid with newline and escape codes. |
---|
446 | 447 | |
---|
447 | | -endif # PANEL |
---|
| 448 | +choice |
---|
| 449 | + prompt "Backlight initial state" |
---|
| 450 | + default CHARLCD_BL_FLASH |
---|
| 451 | + help |
---|
| 452 | + Select the initial backlight state on boot or module load. |
---|
| 453 | + |
---|
| 454 | + Previously, there was no option for this: the backlight flashed |
---|
| 455 | + briefly on init. Now you can also turn it off/on. |
---|
| 456 | + |
---|
| 457 | + config CHARLCD_BL_OFF |
---|
| 458 | + bool "Off" |
---|
| 459 | + help |
---|
| 460 | + Backlight is initially turned off |
---|
| 461 | + |
---|
| 462 | + config CHARLCD_BL_ON |
---|
| 463 | + bool "On" |
---|
| 464 | + help |
---|
| 465 | + Backlight is initially turned on |
---|
| 466 | + |
---|
| 467 | + config CHARLCD_BL_FLASH |
---|
| 468 | + bool "Flash" |
---|
| 469 | + help |
---|
| 470 | + Backlight is flashed briefly on init |
---|
| 471 | + |
---|
| 472 | +endchoice |
---|
| 473 | + |
---|
| 474 | +endif # AUXDISPLAY |
---|
| 475 | + |
---|
| 476 | +config PANEL |
---|
| 477 | + tristate "Parallel port LCD/Keypad Panel support (OLD OPTION)" |
---|
| 478 | + depends on PARPORT |
---|
| 479 | + select AUXDISPLAY |
---|
| 480 | + select PARPORT_PANEL |
---|
448 | 481 | |
---|
449 | 482 | config CHARLCD |
---|
450 | 483 | tristate "Character LCD core support" if COMPILE_TEST |
---|