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