162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci#
362306a36Sopenharmony_ci# For a description of the syntax of this configuration file,
462306a36Sopenharmony_ci# see Documentation/kbuild/kconfig-language.rst.
562306a36Sopenharmony_ci#
662306a36Sopenharmony_ci# Auxiliary display drivers configuration.
762306a36Sopenharmony_ci#
862306a36Sopenharmony_ci
962306a36Sopenharmony_cimenuconfig AUXDISPLAY
1062306a36Sopenharmony_ci	bool "Auxiliary Display support"
1162306a36Sopenharmony_ci	help
1262306a36Sopenharmony_ci	  Say Y here to get to see options for auxiliary display drivers.
1362306a36Sopenharmony_ci	  This option alone does not add any kernel code.
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ci	  If you say N, all options in this submenu will be skipped and disabled.
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ciif AUXDISPLAY
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ciconfig CHARLCD
2062306a36Sopenharmony_ci	tristate "Character LCD core support" if COMPILE_TEST
2162306a36Sopenharmony_ci	help
2262306a36Sopenharmony_ci	  This is the base system for character-based LCD displays.
2362306a36Sopenharmony_ci	  It makes no sense to have this alone, you select your display driver
2462306a36Sopenharmony_ci	  and if it needs the charlcd core, it will select it automatically.
2562306a36Sopenharmony_ci	  This is some character LCD core interface that multiple drivers can
2662306a36Sopenharmony_ci	  use.
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ciconfig LINEDISP
2962306a36Sopenharmony_ci	tristate "Character line display core support" if COMPILE_TEST
3062306a36Sopenharmony_ci	help
3162306a36Sopenharmony_ci	  This is the core support for single-line character displays, to be
3262306a36Sopenharmony_ci	  selected by drivers that use it.
3362306a36Sopenharmony_ci
3462306a36Sopenharmony_ciconfig HD44780_COMMON
3562306a36Sopenharmony_ci	tristate "Common functions for HD44780 (and compatibles) LCD displays" if COMPILE_TEST
3662306a36Sopenharmony_ci	select CHARLCD
3762306a36Sopenharmony_ci	help
3862306a36Sopenharmony_ci	  This is a module with the common symbols for HD44780 (and compatibles)
3962306a36Sopenharmony_ci	  displays. This is the code that multiple other modules use. It is not
4062306a36Sopenharmony_ci	  useful alone. If you have some sort of HD44780 compatible display,
4162306a36Sopenharmony_ci	  you very likely use this. It is selected automatically by selecting
4262306a36Sopenharmony_ci	  your concrete display.
4362306a36Sopenharmony_ci
4462306a36Sopenharmony_ciconfig HD44780
4562306a36Sopenharmony_ci	tristate "HD44780 Character LCD support"
4662306a36Sopenharmony_ci	depends on GPIOLIB || COMPILE_TEST
4762306a36Sopenharmony_ci	select HD44780_COMMON
4862306a36Sopenharmony_ci	help
4962306a36Sopenharmony_ci	  Enable support for Character LCDs using a HD44780 controller.
5062306a36Sopenharmony_ci	  The LCD is accessible through the /dev/lcd char device (10, 156).
5162306a36Sopenharmony_ci	  This code can either be compiled as a module, or linked into the
5262306a36Sopenharmony_ci	  kernel and started at boot.
5362306a36Sopenharmony_ci	  If you don't understand what all this is about, say N.
5462306a36Sopenharmony_ci
5562306a36Sopenharmony_ciconfig KS0108
5662306a36Sopenharmony_ci	tristate "KS0108 LCD Controller"
5762306a36Sopenharmony_ci	depends on PARPORT_PC
5862306a36Sopenharmony_ci	default n
5962306a36Sopenharmony_ci	help
6062306a36Sopenharmony_ci	  If you have a LCD controlled by one or more KS0108
6162306a36Sopenharmony_ci	  controllers, say Y. You will need also another more specific
6262306a36Sopenharmony_ci	  driver for your LCD.
6362306a36Sopenharmony_ci
6462306a36Sopenharmony_ci	  Depends on Parallel Port support. If you say Y at
6562306a36Sopenharmony_ci	  parport, you will be able to compile this as a module (M)
6662306a36Sopenharmony_ci	  and built-in as well (Y).
6762306a36Sopenharmony_ci
6862306a36Sopenharmony_ci	  To compile this as a module, choose M here:
6962306a36Sopenharmony_ci	  the module will be called ks0108.
7062306a36Sopenharmony_ci
7162306a36Sopenharmony_ci	  If unsure, say N.
7262306a36Sopenharmony_ci
7362306a36Sopenharmony_ciconfig KS0108_PORT
7462306a36Sopenharmony_ci	hex "Parallel port where the LCD is connected"
7562306a36Sopenharmony_ci	depends on KS0108
7662306a36Sopenharmony_ci	default 0x378
7762306a36Sopenharmony_ci	help
7862306a36Sopenharmony_ci	  The address of the parallel port where the LCD is connected.
7962306a36Sopenharmony_ci
8062306a36Sopenharmony_ci	  The first  standard parallel port address is 0x378.
8162306a36Sopenharmony_ci	  The second standard parallel port address is 0x278.
8262306a36Sopenharmony_ci	  The third  standard parallel port address is 0x3BC.
8362306a36Sopenharmony_ci
8462306a36Sopenharmony_ci	  You can specify a different address if you need.
8562306a36Sopenharmony_ci
8662306a36Sopenharmony_ci	  If you don't know what I'm talking about, load the parport module,
8762306a36Sopenharmony_ci	  and execute "dmesg" or "cat /proc/ioports". You can see there how
8862306a36Sopenharmony_ci	  many parallel ports are present and which address each one has.
8962306a36Sopenharmony_ci
9062306a36Sopenharmony_ci	  Usually you only need to use 0x378.
9162306a36Sopenharmony_ci
9262306a36Sopenharmony_ci	  If you compile this as a module, you can still override this
9362306a36Sopenharmony_ci	  using the module parameters.
9462306a36Sopenharmony_ci
9562306a36Sopenharmony_ciconfig KS0108_DELAY
9662306a36Sopenharmony_ci	int "Delay between each control writing (microseconds)"
9762306a36Sopenharmony_ci	depends on KS0108
9862306a36Sopenharmony_ci	default "2"
9962306a36Sopenharmony_ci	help
10062306a36Sopenharmony_ci	  Amount of time the ks0108 should wait between each control write
10162306a36Sopenharmony_ci	  to the parallel port.
10262306a36Sopenharmony_ci
10362306a36Sopenharmony_ci	  If your LCD seems to miss random writings, increment this.
10462306a36Sopenharmony_ci
10562306a36Sopenharmony_ci	  If you don't know what I'm talking about, ignore it.
10662306a36Sopenharmony_ci
10762306a36Sopenharmony_ci	  If you compile this as a module, you can still override this
10862306a36Sopenharmony_ci	  value using the module parameters.
10962306a36Sopenharmony_ci
11062306a36Sopenharmony_ciconfig CFAG12864B
11162306a36Sopenharmony_ci	tristate "CFAG12864B LCD"
11262306a36Sopenharmony_ci	depends on X86
11362306a36Sopenharmony_ci	depends on FB
11462306a36Sopenharmony_ci	depends on KS0108
11562306a36Sopenharmony_ci	select FB_SYS_FILLRECT
11662306a36Sopenharmony_ci	select FB_SYS_COPYAREA
11762306a36Sopenharmony_ci	select FB_SYS_IMAGEBLIT
11862306a36Sopenharmony_ci	select FB_SYS_FOPS
11962306a36Sopenharmony_ci	default n
12062306a36Sopenharmony_ci	help
12162306a36Sopenharmony_ci	  If you have a Crystalfontz 128x64 2-color LCD, cfag12864b Series,
12262306a36Sopenharmony_ci	  say Y. You also need the ks0108 LCD Controller driver.
12362306a36Sopenharmony_ci
12462306a36Sopenharmony_ci	  For help about how to wire your LCD to the parallel port,
12562306a36Sopenharmony_ci	  check Documentation/admin-guide/auxdisplay/cfag12864b.rst
12662306a36Sopenharmony_ci
12762306a36Sopenharmony_ci	  Depends on the x86 arch and the framebuffer support.
12862306a36Sopenharmony_ci
12962306a36Sopenharmony_ci	  The LCD framebuffer driver can be attached to a console.
13062306a36Sopenharmony_ci	  It will work fine. However, you can't attach it to the fbdev driver
13162306a36Sopenharmony_ci	  of the xorg server.
13262306a36Sopenharmony_ci
13362306a36Sopenharmony_ci	  To compile this as a module, choose M here:
13462306a36Sopenharmony_ci	  the modules will be called cfag12864b and cfag12864bfb.
13562306a36Sopenharmony_ci
13662306a36Sopenharmony_ci	  If unsure, say N.
13762306a36Sopenharmony_ci
13862306a36Sopenharmony_ciconfig CFAG12864B_RATE
13962306a36Sopenharmony_ci	int "Refresh rate (hertz)"
14062306a36Sopenharmony_ci	depends on CFAG12864B
14162306a36Sopenharmony_ci	default "20"
14262306a36Sopenharmony_ci	help
14362306a36Sopenharmony_ci	  Refresh rate of the LCD.
14462306a36Sopenharmony_ci
14562306a36Sopenharmony_ci	  As the LCD is not memory mapped, the driver has to make the work by
14662306a36Sopenharmony_ci	  software. This means you should be careful setting this value higher.
14762306a36Sopenharmony_ci	  If your CPUs are really slow or you feel the system is slowed down,
14862306a36Sopenharmony_ci	  decrease the value.
14962306a36Sopenharmony_ci
15062306a36Sopenharmony_ci	  Be careful modifying this value to a very high value:
15162306a36Sopenharmony_ci	  You can freeze the computer, or the LCD maybe can't draw as fast as you
15262306a36Sopenharmony_ci	  are requesting.
15362306a36Sopenharmony_ci
15462306a36Sopenharmony_ci	  If you don't know what I'm talking about, ignore it.
15562306a36Sopenharmony_ci
15662306a36Sopenharmony_ci	  If you compile this as a module, you can still override this
15762306a36Sopenharmony_ci	  value using the module parameters.
15862306a36Sopenharmony_ci
15962306a36Sopenharmony_ciconfig IMG_ASCII_LCD
16062306a36Sopenharmony_ci	tristate "Imagination Technologies ASCII LCD Display"
16162306a36Sopenharmony_ci	depends on HAS_IOMEM
16262306a36Sopenharmony_ci	default y if MIPS_MALTA
16362306a36Sopenharmony_ci	select MFD_SYSCON
16462306a36Sopenharmony_ci	select LINEDISP
16562306a36Sopenharmony_ci	help
16662306a36Sopenharmony_ci	  Enable this to support the simple ASCII LCD displays found on
16762306a36Sopenharmony_ci	  development boards such as the MIPS Boston, MIPS Malta & MIPS SEAD3
16862306a36Sopenharmony_ci	  from Imagination Technologies.
16962306a36Sopenharmony_ci
17062306a36Sopenharmony_ciconfig HT16K33
17162306a36Sopenharmony_ci	tristate "Holtek Ht16K33 LED controller with keyscan"
17262306a36Sopenharmony_ci	depends on FB && I2C && INPUT
17362306a36Sopenharmony_ci	select FB_SYS_FOPS
17462306a36Sopenharmony_ci	select FB_SYS_FILLRECT
17562306a36Sopenharmony_ci	select FB_SYS_COPYAREA
17662306a36Sopenharmony_ci	select FB_SYS_IMAGEBLIT
17762306a36Sopenharmony_ci	select INPUT_MATRIXKMAP
17862306a36Sopenharmony_ci	select FB_BACKLIGHT
17962306a36Sopenharmony_ci	select NEW_LEDS
18062306a36Sopenharmony_ci	select LEDS_CLASS
18162306a36Sopenharmony_ci	select LINEDISP
18262306a36Sopenharmony_ci	help
18362306a36Sopenharmony_ci	  Say yes here to add support for Holtek HT16K33, RAM mapping 16*8
18462306a36Sopenharmony_ci	  LED controller driver with keyscan.
18562306a36Sopenharmony_ci
18662306a36Sopenharmony_ciconfig LCD2S
18762306a36Sopenharmony_ci	tristate "lcd2s 20x4 character display over I2C console"
18862306a36Sopenharmony_ci	depends on I2C
18962306a36Sopenharmony_ci	select CHARLCD
19062306a36Sopenharmony_ci	help
19162306a36Sopenharmony_ci	  This is a driver that lets you use the lcd2s 20x4 character display
19262306a36Sopenharmony_ci	  from Modtronix engineering as a console output device. The display
19362306a36Sopenharmony_ci	  is a simple single color character display. You have to connect it
19462306a36Sopenharmony_ci	  to an I2C bus.
19562306a36Sopenharmony_ci
19662306a36Sopenharmony_ciconfig ARM_CHARLCD
19762306a36Sopenharmony_ci	bool "ARM Ltd. Character LCD Driver"
19862306a36Sopenharmony_ci	depends on PLAT_VERSATILE
19962306a36Sopenharmony_ci	help
20062306a36Sopenharmony_ci	  This is a driver for the character LCD found on the ARM Ltd.
20162306a36Sopenharmony_ci	  Versatile and RealView Platform Baseboards. It doesn't do
20262306a36Sopenharmony_ci	  very much more than display the text "ARM Linux" on the first
20362306a36Sopenharmony_ci	  line and the Linux version on the second line, but that's
20462306a36Sopenharmony_ci	  still useful.
20562306a36Sopenharmony_ci
20662306a36Sopenharmony_cimenuconfig PARPORT_PANEL
20762306a36Sopenharmony_ci	tristate "Parallel port LCD/Keypad Panel support"
20862306a36Sopenharmony_ci	depends on PARPORT
20962306a36Sopenharmony_ci	select HD44780_COMMON
21062306a36Sopenharmony_ci	help
21162306a36Sopenharmony_ci	  Say Y here if you have an HD44780 or KS-0074 LCD connected to your
21262306a36Sopenharmony_ci	  parallel port. This driver also features 4 and 6-key keypads. The LCD
21362306a36Sopenharmony_ci	  is accessible through the /dev/lcd char device (10, 156), and the
21462306a36Sopenharmony_ci	  keypad through /dev/keypad (10, 185). This code can either be
21562306a36Sopenharmony_ci	  compiled as a module, or linked into the kernel and started at boot.
21662306a36Sopenharmony_ci	  If you don't understand what all this is about, say N.
21762306a36Sopenharmony_ci
21862306a36Sopenharmony_ciif PARPORT_PANEL
21962306a36Sopenharmony_ci
22062306a36Sopenharmony_ciconfig PANEL_PARPORT
22162306a36Sopenharmony_ci	int "Default parallel port number (0=LPT1)"
22262306a36Sopenharmony_ci	range 0 255
22362306a36Sopenharmony_ci	default "0"
22462306a36Sopenharmony_ci	help
22562306a36Sopenharmony_ci	  This is the index of the parallel port the panel is connected to. One
22662306a36Sopenharmony_ci	  driver instance only supports one parallel port, so if your keypad
22762306a36Sopenharmony_ci	  and LCD are connected to two separate ports, you have to start two
22862306a36Sopenharmony_ci	  modules with different arguments. Numbering starts with '0' for LPT1,
22962306a36Sopenharmony_ci	  and so on.
23062306a36Sopenharmony_ci
23162306a36Sopenharmony_ciconfig PANEL_PROFILE
23262306a36Sopenharmony_ci	int "Default panel profile (0-5, 0=custom)"
23362306a36Sopenharmony_ci	range 0 5
23462306a36Sopenharmony_ci	default "5"
23562306a36Sopenharmony_ci	help
23662306a36Sopenharmony_ci	  To ease configuration, the driver supports different configuration
23762306a36Sopenharmony_ci	  profiles for past and recent wirings. These profiles can also be
23862306a36Sopenharmony_ci	  used to define an approximative configuration, completed by a few
23962306a36Sopenharmony_ci	  other options. Here are the profiles :
24062306a36Sopenharmony_ci
24162306a36Sopenharmony_ci	    0 = custom (see further)
24262306a36Sopenharmony_ci	    1 = 2x16 parallel LCD, old keypad
24362306a36Sopenharmony_ci	    2 = 2x16 serial LCD (KS-0074), new keypad
24462306a36Sopenharmony_ci	    3 = 2x16 parallel LCD (Hantronix), no keypad
24562306a36Sopenharmony_ci	    4 = 2x16 parallel LCD (Nexcom NSA1045) with Nexcom's keypad
24662306a36Sopenharmony_ci	    5 = 2x40 parallel LCD (old one), with old keypad
24762306a36Sopenharmony_ci
24862306a36Sopenharmony_ci	  Custom configurations allow you to define how your display is
24962306a36Sopenharmony_ci	  wired to the parallel port, and how it works. This is only intended
25062306a36Sopenharmony_ci	  for experts.
25162306a36Sopenharmony_ci
25262306a36Sopenharmony_ciconfig PANEL_KEYPAD
25362306a36Sopenharmony_ci	depends on PANEL_PROFILE="0"
25462306a36Sopenharmony_ci	int "Keypad type (0=none, 1=old 6 keys, 2=new 6 keys, 3=Nexcom 4 keys)"
25562306a36Sopenharmony_ci	range 0 3
25662306a36Sopenharmony_ci	default 0
25762306a36Sopenharmony_ci	help
25862306a36Sopenharmony_ci	  This enables and configures a keypad connected to the parallel port.
25962306a36Sopenharmony_ci	  The keys will be read from character device 10,185. Valid values are :
26062306a36Sopenharmony_ci
26162306a36Sopenharmony_ci	    0 : do not enable this driver
26262306a36Sopenharmony_ci	    1 : old 6 keys keypad
26362306a36Sopenharmony_ci	    2 : new 6 keys keypad, as used on the server at www.ant-computing.com
26462306a36Sopenharmony_ci	    3 : Nexcom NSA1045's 4 keys keypad
26562306a36Sopenharmony_ci
26662306a36Sopenharmony_ci	  New profiles can be described in the driver source. The driver also
26762306a36Sopenharmony_ci	  supports simultaneous keys pressed when the keypad supports them.
26862306a36Sopenharmony_ci
26962306a36Sopenharmony_ciconfig PANEL_LCD
27062306a36Sopenharmony_ci	depends on PANEL_PROFILE="0"
27162306a36Sopenharmony_ci	int "LCD type (0=none, 1=custom, 2=old //, 3=ks0074, 4=hantronix, 5=Nexcom)"
27262306a36Sopenharmony_ci	range 0 5
27362306a36Sopenharmony_ci	default 0
27462306a36Sopenharmony_ci	help
27562306a36Sopenharmony_ci	   This enables and configures an LCD connected to the parallel port.
27662306a36Sopenharmony_ci	   The driver includes an interpreter for escape codes starting with
27762306a36Sopenharmony_ci	   '\e[L' which are specific to the LCD, and a few ANSI codes. The
27862306a36Sopenharmony_ci	   driver will be registered as character device 10,156, usually
27962306a36Sopenharmony_ci	   under the name '/dev/lcd'. There are a total of 6 supported types :
28062306a36Sopenharmony_ci
28162306a36Sopenharmony_ci	     0 : do not enable the driver
28262306a36Sopenharmony_ci	     1 : custom configuration and wiring (see further)
28362306a36Sopenharmony_ci	     2 : 2x16 & 2x40 parallel LCD (old wiring)
28462306a36Sopenharmony_ci	     3 : 2x16 serial LCD (KS-0074 based)
28562306a36Sopenharmony_ci	     4 : 2x16 parallel LCD (Hantronix wiring)
28662306a36Sopenharmony_ci	     5 : 2x16 parallel LCD (Nexcom wiring)
28762306a36Sopenharmony_ci
28862306a36Sopenharmony_ci	   When type '1' is specified, other options will appear to configure
28962306a36Sopenharmony_ci	   more precise aspects (wiring, dimensions, protocol, ...). Please note
29062306a36Sopenharmony_ci	   that those values changed from the 2.4 driver for better consistency.
29162306a36Sopenharmony_ci
29262306a36Sopenharmony_ciconfig PANEL_LCD_HEIGHT
29362306a36Sopenharmony_ci	depends on PANEL_PROFILE="0" && PANEL_LCD="1"
29462306a36Sopenharmony_ci	int "Number of lines on the LCD (1-2)"
29562306a36Sopenharmony_ci	range 1 2
29662306a36Sopenharmony_ci	default 2
29762306a36Sopenharmony_ci	help
29862306a36Sopenharmony_ci	  This is the number of visible character lines on the LCD in custom profile.
29962306a36Sopenharmony_ci	  It can either be 1 or 2.
30062306a36Sopenharmony_ci
30162306a36Sopenharmony_ciconfig PANEL_LCD_WIDTH
30262306a36Sopenharmony_ci	depends on PANEL_PROFILE="0" && PANEL_LCD="1"
30362306a36Sopenharmony_ci	int "Number of characters per line on the LCD (1-40)"
30462306a36Sopenharmony_ci	range 1 40
30562306a36Sopenharmony_ci	default 40
30662306a36Sopenharmony_ci	help
30762306a36Sopenharmony_ci	  This is the number of characters per line on the LCD in custom profile.
30862306a36Sopenharmony_ci	  Common values are 16,20,24,40.
30962306a36Sopenharmony_ci
31062306a36Sopenharmony_ciconfig PANEL_LCD_BWIDTH
31162306a36Sopenharmony_ci	depends on PANEL_PROFILE="0" && PANEL_LCD="1"
31262306a36Sopenharmony_ci	int "Internal LCD line width (1-40, 40 by default)"
31362306a36Sopenharmony_ci	range 1 40
31462306a36Sopenharmony_ci	default 40
31562306a36Sopenharmony_ci	help
31662306a36Sopenharmony_ci	  Most LCDs use a standard controller which supports hardware lines of 40
31762306a36Sopenharmony_ci	  characters, although sometimes only 16, 20 or 24 of them are really wired
31862306a36Sopenharmony_ci	  to the terminal. This results in some non-visible but addressable characters,
31962306a36Sopenharmony_ci	  and is the case for most parallel LCDs. Other LCDs, and some serial ones,
32062306a36Sopenharmony_ci	  however, use the same line width internally as what is visible. The KS0074
32162306a36Sopenharmony_ci	  for example, uses 16 characters per line for 16 visible characters per line.
32262306a36Sopenharmony_ci
32362306a36Sopenharmony_ci	  This option lets you configure the value used by your LCD in 'custom' profile.
32462306a36Sopenharmony_ci	  If you don't know, put '40' here.
32562306a36Sopenharmony_ci
32662306a36Sopenharmony_ciconfig PANEL_LCD_HWIDTH
32762306a36Sopenharmony_ci	depends on PANEL_PROFILE="0" && PANEL_LCD="1"
32862306a36Sopenharmony_ci	int "Hardware LCD line width (1-64, 64 by default)"
32962306a36Sopenharmony_ci	range 1 64
33062306a36Sopenharmony_ci	default 64
33162306a36Sopenharmony_ci	help
33262306a36Sopenharmony_ci	  Most LCDs use a single address bit to differentiate line 0 and line 1. Since
33362306a36Sopenharmony_ci	  some of them need to be able to address 40 chars with the lower bits, they
33462306a36Sopenharmony_ci	  often use the immediately superior power of 2, which is 64, to address the
33562306a36Sopenharmony_ci	  next line.
33662306a36Sopenharmony_ci
33762306a36Sopenharmony_ci	  If you don't know what your LCD uses, in doubt let 16 here for a 2x16, and
33862306a36Sopenharmony_ci	  64 here for a 2x40.
33962306a36Sopenharmony_ci
34062306a36Sopenharmony_ciconfig PANEL_LCD_CHARSET
34162306a36Sopenharmony_ci	depends on PANEL_PROFILE="0" && PANEL_LCD="1"
34262306a36Sopenharmony_ci	int "LCD character set (0=normal, 1=KS0074)"
34362306a36Sopenharmony_ci	range 0 1
34462306a36Sopenharmony_ci	default 0
34562306a36Sopenharmony_ci	help
34662306a36Sopenharmony_ci	  Some controllers such as the KS0074 use a somewhat strange character set
34762306a36Sopenharmony_ci	  where many symbols are at unusual places. The driver knows how to map
34862306a36Sopenharmony_ci	  'standard' ASCII characters to the character sets used by these controllers.
34962306a36Sopenharmony_ci	  Valid values are :
35062306a36Sopenharmony_ci
35162306a36Sopenharmony_ci	     0 : normal (untranslated) character set
35262306a36Sopenharmony_ci	     1 : KS0074 character set
35362306a36Sopenharmony_ci
35462306a36Sopenharmony_ci	  If you don't know, use the normal one (0).
35562306a36Sopenharmony_ci
35662306a36Sopenharmony_ciconfig PANEL_LCD_PROTO
35762306a36Sopenharmony_ci	depends on PANEL_PROFILE="0" && PANEL_LCD="1"
35862306a36Sopenharmony_ci	int "LCD communication mode (0=parallel 8 bits, 1=serial)"
35962306a36Sopenharmony_ci	range 0 1
36062306a36Sopenharmony_ci	default 0
36162306a36Sopenharmony_ci	help
36262306a36Sopenharmony_ci	  This driver now supports any serial or parallel LCD wired to a parallel
36362306a36Sopenharmony_ci	  port. But before assigning signals, the driver needs to know if it will
36462306a36Sopenharmony_ci	  be driving a serial LCD or a parallel one. Serial LCDs only use 2 wires
36562306a36Sopenharmony_ci	  (SDA/SCL), while parallel ones use 2 or 3 wires for the control signals
36662306a36Sopenharmony_ci	  (E, RS, sometimes RW), and 4 or 8 for the data. Use 0 here for a 8 bits
36762306a36Sopenharmony_ci	  parallel LCD, and 1 for a serial LCD.
36862306a36Sopenharmony_ci
36962306a36Sopenharmony_ciconfig PANEL_LCD_PIN_E
37062306a36Sopenharmony_ci	depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO="0"
37162306a36Sopenharmony_ci	int "Parallel port pin number & polarity connected to the LCD E signal (-17...17) "
37262306a36Sopenharmony_ci	range -17 17
37362306a36Sopenharmony_ci	default 14
37462306a36Sopenharmony_ci	help
37562306a36Sopenharmony_ci	  This describes the number of the parallel port pin to which the LCD 'E'
37662306a36Sopenharmony_ci	  signal has been connected. It can be :
37762306a36Sopenharmony_ci
37862306a36Sopenharmony_ci	          0 : no connection (eg: connected to ground)
37962306a36Sopenharmony_ci	      1..17 : directly connected to any of these pins on the DB25 plug
38062306a36Sopenharmony_ci	    -1..-17 : connected to the same pin through an inverter (eg: transistor).
38162306a36Sopenharmony_ci
38262306a36Sopenharmony_ci	  Default for the 'E' pin in custom profile is '14' (AUTOFEED).
38362306a36Sopenharmony_ci
38462306a36Sopenharmony_ciconfig PANEL_LCD_PIN_RS
38562306a36Sopenharmony_ci	depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO="0"
38662306a36Sopenharmony_ci	int "Parallel port pin number & polarity connected to the LCD RS signal (-17...17) "
38762306a36Sopenharmony_ci	range -17 17
38862306a36Sopenharmony_ci	default 17
38962306a36Sopenharmony_ci	help
39062306a36Sopenharmony_ci	  This describes the number of the parallel port pin to which the LCD 'RS'
39162306a36Sopenharmony_ci	  signal has been connected. It can be :
39262306a36Sopenharmony_ci
39362306a36Sopenharmony_ci	          0 : no connection (eg: connected to ground)
39462306a36Sopenharmony_ci	      1..17 : directly connected to any of these pins on the DB25 plug
39562306a36Sopenharmony_ci	    -1..-17 : connected to the same pin through an inverter (eg: transistor).
39662306a36Sopenharmony_ci
39762306a36Sopenharmony_ci	  Default for the 'RS' pin in custom profile is '17' (SELECT IN).
39862306a36Sopenharmony_ci
39962306a36Sopenharmony_ciconfig PANEL_LCD_PIN_RW
40062306a36Sopenharmony_ci	depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO="0"
40162306a36Sopenharmony_ci	int "Parallel port pin number & polarity connected to the LCD RW signal (-17...17) "
40262306a36Sopenharmony_ci	range -17 17
40362306a36Sopenharmony_ci	default 16
40462306a36Sopenharmony_ci	help
40562306a36Sopenharmony_ci	  This describes the number of the parallel port pin to which the LCD 'RW'
40662306a36Sopenharmony_ci	  signal has been connected. It can be :
40762306a36Sopenharmony_ci
40862306a36Sopenharmony_ci	          0 : no connection (eg: connected to ground)
40962306a36Sopenharmony_ci	      1..17 : directly connected to any of these pins on the DB25 plug
41062306a36Sopenharmony_ci	    -1..-17 : connected to the same pin through an inverter (eg: transistor).
41162306a36Sopenharmony_ci
41262306a36Sopenharmony_ci	  Default for the 'RW' pin in custom profile is '16' (INIT).
41362306a36Sopenharmony_ci
41462306a36Sopenharmony_ciconfig PANEL_LCD_PIN_SCL
41562306a36Sopenharmony_ci	depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO!="0"
41662306a36Sopenharmony_ci	int "Parallel port pin number & polarity connected to the LCD SCL signal (-17...17) "
41762306a36Sopenharmony_ci	range -17 17
41862306a36Sopenharmony_ci	default 1
41962306a36Sopenharmony_ci	help
42062306a36Sopenharmony_ci	  This describes the number of the parallel port pin to which the serial
42162306a36Sopenharmony_ci	  LCD 'SCL' signal has been connected. It can be :
42262306a36Sopenharmony_ci
42362306a36Sopenharmony_ci	          0 : no connection (eg: connected to ground)
42462306a36Sopenharmony_ci	      1..17 : directly connected to any of these pins on the DB25 plug
42562306a36Sopenharmony_ci	    -1..-17 : connected to the same pin through an inverter (eg: transistor).
42662306a36Sopenharmony_ci
42762306a36Sopenharmony_ci	  Default for the 'SCL' pin in custom profile is '1' (STROBE).
42862306a36Sopenharmony_ci
42962306a36Sopenharmony_ciconfig PANEL_LCD_PIN_SDA
43062306a36Sopenharmony_ci	depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO!="0"
43162306a36Sopenharmony_ci	int "Parallel port pin number & polarity connected to the LCD SDA signal (-17...17) "
43262306a36Sopenharmony_ci	range -17 17
43362306a36Sopenharmony_ci	default 2
43462306a36Sopenharmony_ci	help
43562306a36Sopenharmony_ci	  This describes the number of the parallel port pin to which the serial
43662306a36Sopenharmony_ci	  LCD 'SDA' signal has been connected. It can be :
43762306a36Sopenharmony_ci
43862306a36Sopenharmony_ci	          0 : no connection (eg: connected to ground)
43962306a36Sopenharmony_ci	      1..17 : directly connected to any of these pins on the DB25 plug
44062306a36Sopenharmony_ci	    -1..-17 : connected to the same pin through an inverter (eg: transistor).
44162306a36Sopenharmony_ci
44262306a36Sopenharmony_ci	  Default for the 'SDA' pin in custom profile is '2' (D0).
44362306a36Sopenharmony_ci
44462306a36Sopenharmony_ciconfig PANEL_LCD_PIN_BL
44562306a36Sopenharmony_ci	depends on PANEL_PROFILE="0" && PANEL_LCD="1"
44662306a36Sopenharmony_ci	int "Parallel port pin number & polarity connected to the LCD backlight signal (-17...17) "
44762306a36Sopenharmony_ci	range -17 17
44862306a36Sopenharmony_ci	default 0
44962306a36Sopenharmony_ci	help
45062306a36Sopenharmony_ci	  This describes the number of the parallel port pin to which the LCD 'BL' signal
45162306a36Sopenharmony_ci	  has been connected. It can be :
45262306a36Sopenharmony_ci
45362306a36Sopenharmony_ci	          0 : no connection (eg: connected to ground)
45462306a36Sopenharmony_ci	      1..17 : directly connected to any of these pins on the DB25 plug
45562306a36Sopenharmony_ci	    -1..-17 : connected to the same pin through an inverter (eg: transistor).
45662306a36Sopenharmony_ci
45762306a36Sopenharmony_ci	  Default for the 'BL' pin in custom profile is '0' (uncontrolled).
45862306a36Sopenharmony_ci
45962306a36Sopenharmony_ciendif # PARPORT_PANEL
46062306a36Sopenharmony_ci
46162306a36Sopenharmony_ciconfig PANEL_CHANGE_MESSAGE
46262306a36Sopenharmony_ci	bool "Change LCD initialization message ?"
46362306a36Sopenharmony_ci	depends on CHARLCD
46462306a36Sopenharmony_ci	default "n"
46562306a36Sopenharmony_ci	help
46662306a36Sopenharmony_ci	  This allows you to replace the boot message indicating the kernel version
46762306a36Sopenharmony_ci	  and the driver version with a custom message. This is useful on appliances
46862306a36Sopenharmony_ci	  where a simple 'Starting system' message can be enough to stop a customer
46962306a36Sopenharmony_ci	  from worrying.
47062306a36Sopenharmony_ci
47162306a36Sopenharmony_ci	  If you say 'Y' here, you'll be able to choose a message yourself. Otherwise,
47262306a36Sopenharmony_ci	  say 'N' and keep the default message with the version.
47362306a36Sopenharmony_ci
47462306a36Sopenharmony_ciconfig PANEL_BOOT_MESSAGE
47562306a36Sopenharmony_ci	depends on PANEL_CHANGE_MESSAGE="y"
47662306a36Sopenharmony_ci	string "New initialization message"
47762306a36Sopenharmony_ci	default ""
47862306a36Sopenharmony_ci	help
47962306a36Sopenharmony_ci	  This allows you to replace the boot message indicating the kernel version
48062306a36Sopenharmony_ci	  and the driver version with a custom message. This is useful on appliances
48162306a36Sopenharmony_ci	  where a simple 'Starting system' message can be enough to stop a customer
48262306a36Sopenharmony_ci	  from worrying.
48362306a36Sopenharmony_ci
48462306a36Sopenharmony_ci	  An empty message will only clear the display at driver init time. Any other
48562306a36Sopenharmony_ci	  printf()-formatted message is valid with newline and escape codes.
48662306a36Sopenharmony_ci
48762306a36Sopenharmony_cichoice
48862306a36Sopenharmony_ci	prompt "Backlight initial state"
48962306a36Sopenharmony_ci	default CHARLCD_BL_FLASH
49062306a36Sopenharmony_ci	help
49162306a36Sopenharmony_ci	  Select the initial backlight state on boot or module load.
49262306a36Sopenharmony_ci
49362306a36Sopenharmony_ci	  Previously, there was no option for this: the backlight flashed
49462306a36Sopenharmony_ci	  briefly on init. Now you can also turn it off/on.
49562306a36Sopenharmony_ci
49662306a36Sopenharmony_ci	config CHARLCD_BL_OFF
49762306a36Sopenharmony_ci		bool "Off"
49862306a36Sopenharmony_ci		help
49962306a36Sopenharmony_ci		  Backlight is initially turned off
50062306a36Sopenharmony_ci
50162306a36Sopenharmony_ci	config CHARLCD_BL_ON
50262306a36Sopenharmony_ci		bool "On"
50362306a36Sopenharmony_ci		help
50462306a36Sopenharmony_ci		  Backlight is initially turned on
50562306a36Sopenharmony_ci
50662306a36Sopenharmony_ci	config CHARLCD_BL_FLASH
50762306a36Sopenharmony_ci		bool "Flash"
50862306a36Sopenharmony_ci		help
50962306a36Sopenharmony_ci		  Backlight is flashed briefly on init
51062306a36Sopenharmony_ci
51162306a36Sopenharmony_ciendchoice
51262306a36Sopenharmony_ci
51362306a36Sopenharmony_ciendif # AUXDISPLAY
51462306a36Sopenharmony_ci
51562306a36Sopenharmony_ciconfig PANEL
51662306a36Sopenharmony_ci	tristate "Parallel port LCD/Keypad Panel support (OLD OPTION)"
51762306a36Sopenharmony_ci	depends on PARPORT
51862306a36Sopenharmony_ci	select AUXDISPLAY
51962306a36Sopenharmony_ci	select PARPORT_PANEL
520